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:
Clear the inventory
Enable player actions
Start timer
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.
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.