Well, I ended up with this idea for a game, where you would control a space ship that could be upgraded with segments and stuff..
Well, anyways, I got around to starting SOMETHING.
In the process, I learned about working with multiple files, pusging and poping opengl transformation matrixes, and most importantly, textures and transparency.
The end result currently looks a lot likr battleships forever, at least partly.
Download, full source. You will need to edit compile.bat's filepath, and it is compiled with minGW.
Currently, A and D change the rotation speed of the main segment.
I am planning a rewrite of the rendering and updating functions to use a loop instead of recursion, and linked lists for parts, as well as a modified addpart function.
Edit: Well, I did all that and added a simple editing interface.
New downloadThe cryptic editing controls:
m and n cycle through the parts sharing the same parent.
j and k move to the parent/child of the current part.
h creates a new part, disabling the editing controls until you place the part with enter. During this time you are able to select what side of the current part to place it on with the arrow keys.
Edit again: I have a newer version, where A and D rotate the currently selected part instead of the whole thing, and it won't skip a selection, but I am not going to update it tonight.