Hey Guys,
So Ive been moving along pretty well lately, and I think its time to take my games to the next step. Im trying to figure out how to implement a level structure. For instance right now Im working on a shooter kind of like space invaders. I want there to be a level structure, so for instance the first few levels increase in alien ship count and speed, and then every 5th level is some sort of boss battle. Im having trouble figuring out how to achieve this. Is this a technique that I should save until Ive gotten better at this? I mean I know how to increase the difficulty and make a boss battle, but I can only understand how to implement them as totally separate games. How can I create a flow that carries through the entire game experience?
I was thinking of doing it with states. So Like each level is a state, and if the game is in a certain state, code is executed that pertains to that state. So if level5 is the current state, some boss code will run… does that make sense, or way too complicated?