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
|
// 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())
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user