Trabajando en las colisiones con el mapeado
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user