|
Today there we’re some massive rehauling of the project, the state-problem was solved with the states being virtual machine-states that don’t have a physical class attached to them.
There was also the creating of the actual GameState, and subsequently me moving all the code into its proper place with functioning transitions between the states and classes.
I expect to have a functioning game either later today or tomorrow.
Edit: I now have a crosshair following the mouse and an “explosion” occuring when you click on the screen. Next up is spawning random missiles going down.
Edit 2: The “explosion” is now an actual explosion with a circle expanding from the position clicked, starting to work on the missiles for real this time.
Edit 3: I now have the program creating a random start and end-point for the missiles, now the only thing that remains for the missiles is to calculate a straight path (curved and splitting missiles are up next tomorrow, along with a UI) and finally to draw the whole thing in the correct order. There is also the matter of the collision with the circular explosion (which is actually a square with a circular sprite).

|