Last week, I created the ability to restart the game. Eventually, this will be an option that will be prompted when the user fails a level. For now, there is no way for the player to lose the game, but you can still restart the game if you’d like to. Although the player can’t lose right now and the restart won’t be prompted, this will be a vital feature in the game. Without it, the player would have to close the game and reopen it to start again after losing.
My biggest challenge last week was not being able to test the prompting of the restart in my game. As mentioned before, the player currently has no way to actually lose the game. Because of this, I am not able to make a lose condition prompt a restart and allow it to happen. However, I was able to test restarting without a prompt, which worked well. There is no menu or key that shows how to restart the game, so it only works if you already know the controls.
I learned that it is good to take baby steps with my code and make sure everything works before continuing on. This method has helped me with figuring out which part of my code is causing errors. If I had written a lot of code and features before testing, and got an error, I would have to go through everything and figure out exactly what portion was giving me problems. Overall, I think the method I have been using has been helpful for debugging.
Leave a Reply