Tuesday, June 24, 2014

Day 5 - June 24, 2014

Goal for the day: fix all the problems identified last week! 

The first thing I did today was to set the points back to 0 when the player dies. I also programmed the game to reset the points after the player completes the level. Therefore, the maximum number of points a player can score per game is 30.

Using a bool, I tackled the next of my problems and made the time stop when the player completed the game and had this time display on the pop-up screen at the end of the game.

Finally, I created a variable called finalScore (data type = float) which would be responsible for creating a finalScore out of the time elapsed in the 2nd level and the number of points scored. This involved transforming strings into floats and basic operators such as + and -.




No comments:

Post a Comment