forked from jaildesigner-jailgames/jaildoctors_dilemma
Ya sed puede saltar la sección de credits/instrucciones con cualquier tecla
This commit is contained in:
@@ -104,13 +104,10 @@ void Credits::checkEventHandler()
|
|||||||
section.name = SECTION_PROG_QUIT;
|
section.name = SECTION_PROG_QUIT;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SDL_SCANCODE_RETURN:
|
default:
|
||||||
section.name = SECTION_PROG_TITLE;
|
section.name = SECTION_PROG_TITLE;
|
||||||
section.subsection = 0;
|
section.subsection = 0;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -227,8 +224,8 @@ void Credits::render()
|
|||||||
SDL_Rect rect = {0, offset * 2, 256, 192};
|
SDL_Rect rect = {0, offset * 2, 256, 192};
|
||||||
SDL_RenderCopy(renderer, coverTexture, nullptr, &rect);
|
SDL_RenderCopy(renderer, coverTexture, nullptr, &rect);
|
||||||
|
|
||||||
//text->write(0,0,std::to_string(counter));
|
// text->write(0,0,std::to_string(counter));
|
||||||
//text->write(0,8,std::to_string(counterEnabled));
|
// text->write(0,8,std::to_string(counterEnabled));
|
||||||
|
|
||||||
// Vuelca el contenido del renderizador en pantalla
|
// Vuelca el contenido del renderizador en pantalla
|
||||||
screen->blit();
|
screen->blit();
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ Director::Director(std::string path)
|
|||||||
section.name = SECTION_PROG_LOGO;
|
section.name = SECTION_PROG_LOGO;
|
||||||
section.subsection = SUBSECTION_LOGO_TO_INTRO;
|
section.subsection = SUBSECTION_LOGO_TO_INTRO;
|
||||||
|
|
||||||
//section.name = SECTION_PROG_GAME;
|
section.name = SECTION_PROG_GAME;
|
||||||
|
|
||||||
// Crea el objeto que controla los ficheros de recursos
|
// Crea el objeto que controla los ficheros de recursos
|
||||||
asset = new Asset(path.substr(0, path.find_last_of("\\/")));
|
asset = new Asset(path.substr(0, path.find_last_of("\\/")));
|
||||||
|
|||||||
Reference in New Issue
Block a user