Creación de nuevos tiles

This commit is contained in:
JailDesigner committed 2022-07-11 19:29:29 +02:00
1 parent 8101c33526
commit 6d7f8035bb
4 files changed
+35 -32

No files matched your search

+3
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;