forked from jaildesigner-jailgames/jaildoctors_dilemma
Clase screen actualizada a la última versión
This commit is contained in:
@@ -24,7 +24,7 @@ Director::Director(std::string path)
|
||||
// Crea el puntero a la estructura y carga el fichero de configuración
|
||||
options = new options_t;
|
||||
options->fullScreenMode = 0;
|
||||
options->windowSize = 2;
|
||||
options->windowSize = 3;
|
||||
options->filter = FILTER_NEAREST;
|
||||
options->vSync = true;
|
||||
options->screenWidth = GAMECANVAS_WIDTH * options->windowSize;
|
||||
@@ -201,7 +201,7 @@ Uint8 Director::getSection()
|
||||
// Establece el valor de la variable
|
||||
void Director::setSection(section_t section)
|
||||
{
|
||||
section = section;
|
||||
this->section = section;
|
||||
}
|
||||
|
||||
void Director::runLogo()
|
||||
@@ -226,7 +226,7 @@ void Director::runGame()
|
||||
void Director::run()
|
||||
{
|
||||
// Bucle principal
|
||||
while (!(getSection() == SECTION_PROG_QUIT))
|
||||
while (getSection() != SECTION_PROG_QUIT)
|
||||
{
|
||||
switch (getSection())
|
||||
{
|
||||
|
||||
@@ -37,9 +37,6 @@ Game::~Game()
|
||||
input = nullptr;
|
||||
|
||||
// Libera la memoria de los objetos
|
||||
delete screen;
|
||||
screen = nullptr;
|
||||
|
||||
delete itemTracker;
|
||||
itemTracker = nullptr;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user