'Elroids' Developer Notes.

Source access

There is a, currently private, github repository here.

Alternatly it's all just script. You can 'inspect'/download the code from your browser.

There is also a facebook discussion group here. If you want github access please join this and post a request to be added.

Known bugs

The 'Test Universe'

If the game is launched with parameter 'rockCount="0"' a 'Test Universe' is generated.

This contains a populated Universe and Ship with test versions of most things. Can be used for code testing.

Player ship is conveniently lined up for docking.

Ship will be loaded with some random cargo and have some random damge.

"'Someone else' can add unittests later." ... as 'idiots' like to say :-)

For notes on code operation/stucture see the Developer Code notes..

ToDos (In some sort of priority order)

V12.x Code improvements.

Add hit counter to elroids launch page.

Split Items into

To decrease memory footprint delete non-persisted items when system deactivated.

Modify JSON to store/restore attitudes as Quarterion not Roll, Pitch and Yaw.

V13.x Rework saucers.

Saucers are a cludge left over from early development.

Make them NPShips. For a saucer the 'front' is probably the 'top' ... it moves sideways.

Convert to use regular AI.

Convert makeLoot() to loadRandom().

Modify saucer launch frequency to be based on time ... rather than number of animate cycles.

V14.x Improve NPShips

Remove HP ... use regular damage to systems instead ... if NPShips become too tough multiply the damage by some amount.

Less 'wild' navigation. Modify navigateThroughDest() to add lead. Possibly common code with attack().

Make miners less stupid. Dont charge in before all sub-rocks destroyed.

Don't 'stop' when attacking. Makes attacker an easy target.

V15.x General tidy up.

Make radar and compass components contain their own displays (like Huds).

Allow >1 ship to dock at the same time.

Add station aproach lights. Green - OK. Red - No docking. Yellow - Bad approach.

Don't show existing hull type in purchace list.

Convert GoodsList and ComponentsList to use classes ... like shipTypes in NPShipFactory.

Do a sweep of use of null. In most cases change to undefned.

Modify flame cones to grow/shrink when pulsed. Not flicker.

Possibly don't need extra 2D layer for lables ... make them part of HUD layer.

V16.x Fix game launch problems.

Add 'loading' screen.

Add a hit counter to lauch screen.

V17.x Add extra ship components.

V18.x Bulk up.

Add many more:

Documentation.

Add screen shot with various display panels labled.

Add images (screen shots) of Items in place of game logo.

General 'good stuff' ... Post V18.0

Avoiding rocks were supposed to be a major part of this game. However it turns out that, in a 3D universe, the chance of getting hit is pretty small. I am told this is the case in real asteroid fields ... Maybe do something about it.