Añadidas físicas al movimiento y salto
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user