After some code mangling and re-factoring i finally managed to get it working the way it was BEFORE i started updating it.
Using states to program a game works great. you put every possible view into an own class and eventually create a very simplistic state machine for your game.
this way adding a menu screen, credits, options, main game view, research view and any other view is no problem and it probably saves on performance because you can control exactly what calculations you want in your update method and which not.
i started implementing the planet view, which will be the actual game view when you are managing your solar systems. I've added a screenshot that just shows a proof of concept. now i just have to figure out this.

No comments:
Post a Comment