Sustituyendo todos los defines de const.h
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user