Hashtag-helpfindgabby / final-game

0 stars 1 forks source link

Pictures #6

Closed GMazzeo closed 10 years ago

GMazzeo commented 10 years ago

In order to tell the story of our game, it is necessary to have pictures displayed that describe what is going on in the game, in between the levels. After many attempts to use a timer to display these pictures, we decided to use Booleans instead. When the mouse or the key is pressed, the picture is supposed to be replaced with the next level. There are two issues with this. For the first level, the character does not display until the mouse is clicked again. For the second level picture, the lions of level one do not disappear until the mouse is pressed and level 2 starts.

GMazzeo commented 10 years ago

In order to fix the major issues in our game (including this one) we had to reorganize our code. We created a Boolean for each level and for each "story." We created a function called "key pressed" so that pressing the space bar would move from the stories to the next level. We also had to check where we placed our if statements because we had some information that would only run when the start screen was true, which stopped the rest of the game from running.