jheredia / pack-it-up

Frantic packing action game about a group of backpackers working together to complete their trip while trying to keep their luggage and sanity.
1 stars 1 forks source link

Game State Manager #4

Closed jheredia closed 2 weeks ago

jheredia commented 2 weeks ago

As a player, I want to be able to start and finish a game.

The game state manager should be the one in charge of starting a new game and ending it once the player has reached the end zone within the given time or when the timer expires.

If the player has reached the end zone, the game state manager should check the player's inventory to see if all mandatory items are present, if so, then the player can exit the level with a success state.

If the player reaches the end zone but not every mandatory item is in its inventory, do nothing.

If the timer expires, player exits the level in a failed state.

When the game starts, we need to:

When the game ends, we move the player to an end game screen and there the player can either leave the game, restart or move to the next level if it successfully completed the last one.