Jump and Shoot! 🎶

This commit is contained in:
MarcEricMartel
2023-12-07 12:32:36 -05:00
parent e9e2a56be6
commit 74b808f46b
4 changed files with 9 additions and 7 deletions

View File

@@ -276,11 +276,9 @@ void Player::Teleport(int& x, int& z) {
m_position.x -= x * CHUNK_SIZE_X;
m_position.z -= z * CHUNK_SIZE_Z;
}
bool Player::AmIDead()
{
return m_hp <= 0;
}
bool Player::GetIsAirborne() const { return m_airborne; }
bool Player::AmIDead() { return m_hp <= 0; }
void Player::InflictDamage(float hitPoints) {
m_hp -= hitPoints;