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
@@ -0,0 +1,33 @@
/*
# ______ ____ ___
# | \/ ____| |___|
# | | | \ | |
#-----------------------------------------------------------------------
# Copyright 2020, tyra - https://github.com/h4570/tyra
# Licenced under Apache License 2.0
# Michał Mostowik <mostek3pl@gmail.com>
*/
#ifndef _COLLECTIBLE_
#define _COLLECTIBLE_
#include "../camera.hpp"
#include <tamtypes.h>
class Collectible
{
public:
float rotation;
Mesh mesh;
Collectible();
~Collectible();
void update();
void setActive(u8 b);
u8 isActive();
private:
u8 bActive;
};
#endif