Added: collectibles class. Collectibles are strewn around the level and can be 'picked up' (deactivated, won't be rendered), when the player gets close and jumps.

This commit is contained in:
Foxar
2020-12-05 22:04:38 +01:00
parent b547de9cbb
commit c0ab97585c
7 changed files with 122 additions and 1 deletions
+2 -1
View File
@@ -11,7 +11,6 @@
#ifndef _DRIVER_
#define _DRIVER_
#include <tamtypes.h>
#include <audsrv.h>
#include <game.hpp>
@@ -21,6 +20,7 @@
#include <modules/texture_repository.hpp>
#include "./camera.hpp"
#include "./objects/player.hpp"
#include "./objects/collectible.hpp"
class Dolphin : public Game
{
@@ -39,6 +39,7 @@ private:
Player player;
Camera camera;
Mesh island, skybox, water, waterbox;
Collectible *oysters;
TextureRepository *texRepo;
Sprite waterOverlay;
};