Added: Sprites representing lifes player has left, and life variable.
This commit is contained in:
@@ -25,6 +25,7 @@ Player::Player()
|
||||
mesh.rotation.x = -1.6F;
|
||||
mesh.setAnimSpeed(0.05F);
|
||||
bIsJumping = false;
|
||||
lifes = 3;
|
||||
}
|
||||
|
||||
Player::~Player()
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user