Added: Mines now explode and hurt the player, added new makefile and made more mines spawn on game start.

This commit is contained in:
Foxar
2020-12-10 13:52:45 +01:00
parent 1c9351e5e9
commit e7aa4d13cc
5 changed files with 57 additions and 7 deletions
+4
View File
@@ -21,6 +21,7 @@
#include "./camera.hpp"
#include "./objects/player.hpp"
#include "./objects/collectible.hpp"
#include "./objects/mine.hpp"
class Dolphin : public Game
{
@@ -51,8 +52,11 @@ private:
Mesh water;
Mesh waterbox;
Sprite lifeSprites[3];
Sprite gameOver;
audsrv_adpcm_t *underwaterAmbient, *surfaceAmbient;
audsrv_adpcm_t *pickupSound;
audsrv_adpcm_t *boomSound;
Mine *mines;
};
#endif