Creación de nuevos tiles

This commit is contained in:
2022-07-11 19:29:29 +02:00
parent 8101c33526
commit 6d7f8035bb
4 changed files with 35 additions and 32 deletions

View File

@@ -243,6 +243,9 @@ void Game::checkPlayerOnFloor()
// *** POSIBLE SOLUCION. Comprobar si el tile actual del pie es diferente al tile del pie previo.
// Esto indica que se ha saltado la comprobacion cada 8 pixeles.
// En este caso habría que recolocar al jugador en el sitio
// *** PARECE RESUELTO
const int a = (mPlayer->lastPosition.y + 16) / 8;
const int b = mPlayer->getLeftFoot().y / 8;
const bool tile_change = a != b;