Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
use a database for unit & building parameters. #40
Shouldn't it be easier to create a unitManager and buildingManager object that create the units and buildings using db files?
This could be part of the level editor which is also planned I believe. In order to really support this there would need to be a lot of restructuring of the code though to make all objects a bit more generic. Right now vehicles/infantry/etc all are completely their own objects and don't inherit from a base object. As well the draw functions need to be standardized and their needs to be a way to support special objects that aren't just a single sprite with that (like tanks which have swiveling turrets).
I think the best way to start down this path would be to make a generic "sprite" class that all the other objects build on top of. It would include all the basic draw functions and such, and then we could just a provide a standard way of overriding those when necessary.
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
And that should be the eventual destination... But writing it in JS for the
Once the design gets stable, and we are ready to extend to all
This is just a reasonable intermediate stepping stone :)