Sustituyendo todos los defines de const.h

This commit is contained in:
2022-08-29 21:07:52 +02:00
parent 0d27774c74
commit add7e5201a
12 changed files with 19 additions and 24 deletions

View File

@@ -5,7 +5,7 @@ Game::Game(SDL_Renderer *renderer, Screen *screen, Asset *asset, Input *input)
{
// Inicia variables
currentRoom = "01.room";
spawnPoint = {2 * BLOCK, 12 * BLOCK, 0, 0, 0, STATUS_STANDING, SDL_FLIP_NONE};
spawnPoint = {2 * 8, 12 * 8, 0, 0, 0, STATUS_STANDING, SDL_FLIP_NONE};
debug = false;
// Copia los punteros
@@ -26,7 +26,7 @@ Game::Game(SDL_Renderer *renderer, Screen *screen, Asset *asset, Input *input)
ticksSpeed = 15;
section.name = SECTION_PROG_GAME;
section.subsection = SECTION_GAME_PLAY;
section.subsection = SUBSECTION_GAME_PLAY;
}
Game::~Game()
@@ -62,7 +62,7 @@ section_t Game::run()
while (section.name == SECTION_PROG_GAME)
{
// Sección juego jugando
if (section.subsection == SECTION_GAME_PLAY)
if (section.subsection == SUBSECTION_GAME_PLAY)
{
update();
render();