Trabajando en las colisiones con plataformas moviles

This commit is contained in:
2022-08-26 21:25:51 +02:00
parent dda1e049c6
commit 6b7c49aecd
7 changed files with 49 additions and 3 deletions

View File

@@ -185,6 +185,8 @@ void Game::renderDebugInfo()
//text = "checkCollision = " + std::to_string(checkCollision(p, r));
debugText->write(0, line += 6, text, -1);
text = std::to_string(map->getActorCollider(0)) + " " + std::to_string(map->getActorCollider(1));
debugText->write(0, line += 6, text, -1);
// Pinta mascaras
SDL_SetRenderDrawColor(renderer, 0, 255, 0, 128);
SDL_Rect rect = player->sprite->getRect();