This is the editor. You can click on a module on the left, and then click on the airship to add the module. It's really basic: I haven't even put in the ability to delete modules yet, and I think there's a bug in the code that determines whether a module placement is valid.
But it's a good first step.
I made the graphics using GIMP, by drawing using a 1-pixel brush of various opacities, and the rectangle tool for bigger things. All put together, these graphics probably took me 3 hours, and they should serve well as an initial set.
In terms of code, airships now know how to draw themselves:
And the editor itself is really just a few lines of code. This is its complete draw function:
So what's next? This is kind of the point where the project explodes outwards in terms of things that need doing, and I'm going to have to be a bit disciplined. Things vying for my attention:
- Upgrading the editor so you can load/save ships, delete modules, and move around.
- Calculating various derived numbers such as the spare lift capacity, crew requirements and speed.
- Completing the data structures for ship modules and implementing basic game rules like taking damage and shooting.
- Cleanly separating out the editor from the main game loop.
Actually, that's a quite reasonable order for my to-do list, so let's do that next!