Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: Engine/Engine.h
- Revision:
- 12:eb8d30593e95
- Parent:
- 11:b3024ab59fa5
- Child:
- 13:cb5ed2f0cbd5
--- a/Engine/Engine.h Wed May 27 03:52:11 2020 +0000 +++ b/Engine/Engine.h Wed May 27 04:22:47 2020 +0000 @@ -25,9 +25,13 @@ void draw(N5110 &lcd); void floorCollide(); void spawnEnemy(); - bool enemyCollide(); + bool enemyCollide(); + bool fellDown(); + bool koed(); void gameOver(N5110 &lcd); - bool ko; + void coinTaken(); + + private: @@ -39,6 +43,9 @@ Vector2D player; + // coin object + Coin coin; + //gamepad Direction _d; float _mag; @@ -52,6 +59,9 @@ //enemy vector <Enemy> enemies; + bool ko1; + bool ko2; + };