Added: Sprites representing lifes player has left, and life variable.

This commit is contained in:
Foxar
2020-12-08 19:27:30 +01:00
parent 70efbcad46
commit c4fc52b043
4 changed files with 18 additions and 0 deletions
+1
View File
@@ -25,6 +25,7 @@ Player::Player()
mesh.rotation.x = -1.6F;
mesh.setAnimSpeed(0.05F);
bIsJumping = false;
lifes = 3;
}
Player::~Player()
+2
View File
@@ -27,10 +27,12 @@ public:
~Player();
void update(Pad &t_pad);
const u8 &isJumping() { return bIsJumping; }
const u8 &getLifes() { return lifes; }
private:
u8 bIsJumping;
Vector3 playerNextPosition;
u8 lifes;
};
#endif