forked from jaildesigner-jailgames/jaildoctors_dilemma
Borradas clases que no se utilizaban
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#include "game.h"
|
||||
|
||||
// Constructor
|
||||
Game::Game(SDL_Window *window, SDL_Renderer *renderer, Asset *asset, Lang *lang, Input *input)
|
||||
Game::Game(SDL_Window *window, SDL_Renderer *renderer, Asset *asset, Input *input)
|
||||
{
|
||||
// Inicia variables
|
||||
currentRoom = "01.room";
|
||||
@@ -65,7 +65,7 @@ section_t Game::run()
|
||||
if (section.subsection == SECTION_GAME_PLAY)
|
||||
{
|
||||
update();
|
||||
draw();
|
||||
render();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -104,16 +104,16 @@ void Game::update()
|
||||
}
|
||||
|
||||
// Pinta los objetos en pantalla
|
||||
void Game::draw()
|
||||
void Game::render()
|
||||
{
|
||||
// Prepara para dibujar el frame
|
||||
screen->start();
|
||||
screen->clean(room->getBGColor());
|
||||
|
||||
room->drawMap();
|
||||
room->drawEnemies();
|
||||
room->drawItems();
|
||||
player->draw();
|
||||
room->renderMap();
|
||||
room->renderEnemies();
|
||||
room->renderItems();
|
||||
player->render();
|
||||
|
||||
// Texto en el centro de la pantalla
|
||||
SDL_Rect rect = {0, 16 * 8, PLAY_AREA_RIGHT, 8};
|
||||
|
||||
Reference in New Issue
Block a user