This commit is contained in:
MarcEricMartel
2023-12-13 14:06:22 -05:00
parent f509b01827
commit e31e670720
4 changed files with 12 additions and 6 deletions

View File

@@ -272,6 +272,10 @@ std::string Player::GetUsername() const { return m_username; }
float Player::GetHP() const { return m_hp; }
void Player::SetHP(float hp) {
m_hp = hp;
}
void Player::Teleport(int& x, int& z) {
m_position.x -= x * CHUNK_SIZE_X;
m_position.z -= z * CHUNK_SIZE_Z;