Trabajando en las colisiones con el mapeado

This commit is contained in:
2022-07-07 17:44:22 +02:00
parent 90bbe77f39
commit 9ecab3ea59
3 changed files with 70 additions and 15 deletions

View File

@@ -201,10 +201,10 @@ void Game::checkPlayerOnFloor()
// Comprueba ambos pies
if ((mRoom->isFloor(mPlayer->getLeftFoot())) || (mRoom->isFloor(mPlayer->getRightFoot())))
{
mPlayer->setFalling(false);
mPlayer->setStatus(STATUS_STANDING);
}
else
{
mPlayer->setFalling(true);
mPlayer->setStatus(STATUS_FALLING);
}
}