Skip to content

Commit

Permalink
Add gameover feature and screenshot
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickaod committed May 30, 2024
1 parent 2b03cc9 commit 43187d7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,12 @@ The touch controls fat arrow points to a javascript object called changedTouches
});
}
```

- **Game Over**
The game over state is automatically triggered when the player receives X amount of damage or the game time expires. This activates the gameOver varible, which then prevents the next frame from being loaded, and the player is given an option to restart the game as seen below using the `restartGame()` function:

![game over state](documentation/features/gameover-state.jpeg)

### Future Features

- Pixel perfect hitboxes
Expand Down

0 comments on commit 43187d7

Please sign in to comment.