Cambiada la lógica para el carrusel de secciones del modo demo
This commit is contained in:
@@ -395,8 +395,8 @@ void Director::initOptions()
|
||||
// Opciones de video
|
||||
options->video.mode = 0;
|
||||
options->video.window.size = 3;
|
||||
//options->video.window.width = options->video.window.size * param->gameWidth;
|
||||
//options->video.window.height = options->video.window.size * param->gameHeight;
|
||||
// options->video.window.width = options->video.window.size * param->gameWidth;
|
||||
// options->video.window.height = options->video.window.size * param->gameHeight;
|
||||
options->video.filter = FILTER_NEAREST;
|
||||
options->video.vSync = true;
|
||||
options->video.integerScale = true;
|
||||
@@ -638,6 +638,7 @@ bool Director::saveConfigFile()
|
||||
return success;
|
||||
}
|
||||
|
||||
// Ejecuta la seccion de juego con el logo
|
||||
void Director::runLogo()
|
||||
{
|
||||
logo = new Logo(renderer, screen, asset, input, param, section);
|
||||
@@ -645,6 +646,7 @@ void Director::runLogo()
|
||||
delete logo;
|
||||
}
|
||||
|
||||
// Ejecuta la seccion de juego de la introducción
|
||||
void Director::runIntro()
|
||||
{
|
||||
intro = new Intro(renderer, screen, asset, input, lang, param, section);
|
||||
@@ -652,6 +654,7 @@ void Director::runIntro()
|
||||
delete intro;
|
||||
}
|
||||
|
||||
// Ejecuta la seccion de juego con el titulo y los menus
|
||||
void Director::runTitle()
|
||||
{
|
||||
title = new Title(renderer, screen, input, asset, options, lang, param, section);
|
||||
@@ -659,6 +662,7 @@ void Director::runTitle()
|
||||
delete title;
|
||||
}
|
||||
|
||||
// Ejecuta la seccion de juego donde se juega
|
||||
void Director::runGame()
|
||||
{
|
||||
const int numPlayers = section->subsection == SUBSECTION_GAME_PLAY_1P ? 1 : 2;
|
||||
@@ -667,6 +671,30 @@ void Director::runGame()
|
||||
delete game;
|
||||
}
|
||||
|
||||
// Ejecuta la parte donde se muestra la tabla de puntuaciones
|
||||
void Director::runHiScoreTable()
|
||||
{
|
||||
hiScoreTable = new HiScoreTable(renderer, screen, asset, input, lang, param, options, section);
|
||||
hiScoreTable->run();
|
||||
delete hiScoreTable;
|
||||
}
|
||||
|
||||
// Ejecuta la parte donde se muestran las instrucciones
|
||||
void Director::runInstructions()
|
||||
{
|
||||
instructions = new Instructions(renderer, screen, asset, input, lang, param, section);
|
||||
instructions->run();
|
||||
delete instructions;
|
||||
}
|
||||
|
||||
// Ejecuta el juego en modo demo
|
||||
void Director::runDemoGame()
|
||||
{
|
||||
demoGame = new Game(1, 0, renderer, screen, asset, lang, input, true, param, options, section);
|
||||
demoGame->run();
|
||||
delete demoGame;
|
||||
}
|
||||
|
||||
void Director::run()
|
||||
{
|
||||
// Bucle principal
|
||||
@@ -689,6 +717,18 @@ void Director::run()
|
||||
case SECTION_PROG_GAME:
|
||||
runGame();
|
||||
break;
|
||||
|
||||
case SECTION_PROG_HI_SCORE_TABLE:
|
||||
runHiScoreTable();
|
||||
break;
|
||||
|
||||
case SECTION_PROG_GAME_DEMO:
|
||||
runDemoGame();
|
||||
break;
|
||||
|
||||
case SECTION_PROG_INSTRUCTIONS:
|
||||
runInstructions();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user