Clase screen actualizada a la última versión

This commit is contained in:
2022-08-30 16:45:26 +02:00
parent c5728d0849
commit cbdc7d9fc3
2 changed files with 3 additions and 6 deletions

View File

@@ -24,7 +24,7 @@ Director::Director(std::string path)
// Crea el puntero a la estructura y carga el fichero de configuración // Crea el puntero a la estructura y carga el fichero de configuración
options = new options_t; options = new options_t;
options->fullScreenMode = 0; options->fullScreenMode = 0;
options->windowSize = 2; options->windowSize = 3;
options->filter = FILTER_NEAREST; options->filter = FILTER_NEAREST;
options->vSync = true; options->vSync = true;
options->screenWidth = GAMECANVAS_WIDTH * options->windowSize; options->screenWidth = GAMECANVAS_WIDTH * options->windowSize;
@@ -201,7 +201,7 @@ Uint8 Director::getSection()
// Establece el valor de la variable // Establece el valor de la variable
void Director::setSection(section_t section) void Director::setSection(section_t section)
{ {
section = section; this->section = section;
} }
void Director::runLogo() void Director::runLogo()
@@ -226,7 +226,7 @@ void Director::runGame()
void Director::run() void Director::run()
{ {
// Bucle principal // Bucle principal
while (!(getSection() == SECTION_PROG_QUIT)) while (getSection() != SECTION_PROG_QUIT)
{ {
switch (getSection()) switch (getSection())
{ {

View File

@@ -37,9 +37,6 @@ Game::~Game()
input = nullptr; input = nullptr;
// Libera la memoria de los objetos // Libera la memoria de los objetos
delete screen;
screen = nullptr;
delete itemTracker; delete itemTracker;
itemTracker = nullptr; itemTracker = nullptr;