Closed Kwisses closed 8 years ago
I have created level one which can be used as the level framework.
I don't know if it's best to have a separate class for each level then have a level caller function, or just to add each instance of the levels into the main class App.
It might be better to do the former choice as it saves on code in the class App in main.py. I will attempt to implement it first and if it doesn't work, I will try the latter choice.
I decided to go with a class instance for every level. Each level after level one inherits attributes from the first level. The level instances are initiated in the init of class App and are called upon in the main game loop.
When a player completes a level, a level counter goes up by one. Once the player presses the "Start" button again, if/elif statements check to see what level to call.
This might not be the best way to implement the levels, but it works.
Implement level one. The code for level one which will be used to create all other levels.
Suggestions:
Once it is created, it needs to be called upon a player pressing the "Start" button.