Creando tiles y escenarios

This commit is contained in:
2022-10-10 22:14:25 +02:00
parent 41d72d48d5
commit f6a233546e
14 changed files with 215 additions and 81 deletions

View File

@@ -24,10 +24,10 @@ Game::Game(SDL_Renderer *renderer, Screen *screen, Asset *asset, Input *input, D
// currentRoom = "06.room";
// spawnPoint = {14 * 8, 9 * 8, 0, 0, 0, s_standing, SDL_FLIP_HORIZONTAL};
// currentRoom = "60.room";
// const int x = 16;
// const int y = 13;
// spawnPoint = {x * 8, y * 8, 0, 0, 0, s_standing, SDL_FLIP_HORIZONTAL};
currentRoom = "57.room";
const int x = 30;
const int y = 13;
spawnPoint = {x * 8, y * 8, 0, 0, 0, s_standing, SDL_FLIP_HORIZONTAL};
// ****
// Crea los objetos
@@ -390,7 +390,7 @@ void Game::killPlayer()
return;
}
board.lives--;
//board.lives--;
// Destruye la habitacion y el jugador
delete room;