Añadidas físicas al movimiento y salto

This commit is contained in:
2022-08-18 13:42:30 +02:00
parent b1c91d2d0d
commit 4de34c388d
5 changed files with 147 additions and 45 deletions

View File

@@ -116,6 +116,12 @@ void Game::renderDebugInfo()
text = std::to_string((int)player->sprite->getPosX()) + "," + std::to_string((int)player->sprite->getPosY());
debugText->write(0, line, text, -1);
//text = std::to_string(player->checkMapCollisions());
//debugText->write(0, line+=6, text, -1);
text = "VY " + std::to_string(player->vy) + " " + std::to_string(player->jumpStrenght);
debugText->write(0, line+=6, text, -1);
text = "VX " + std::to_string(player->vx);
debugText->write(0, line+=6, text, -1);
text = "jump_pressed " + std::to_string(player->jumpPressed);
debugText->write(0, line+=6, text, -1);
}