Finalitzat el Attract Mode
This commit is contained in:
@@ -56,6 +56,7 @@ Director::Director(int argc, const char *argv[])
|
||||
section::name = section::Name::LOGO;
|
||||
#else
|
||||
section::name = section::Name::LOGO;
|
||||
section::attract_mode = section::AttractMode::TITLE_TO_DEMO;
|
||||
#endif
|
||||
|
||||
#ifndef VERBOSE
|
||||
|
||||
@@ -53,6 +53,13 @@ Logo::Logo()
|
||||
color_.push_back(Color(0xFF, 0xFF, 0xFF)); // Bright white
|
||||
}
|
||||
|
||||
// Destructor
|
||||
Logo::~Logo()
|
||||
{
|
||||
jail_texture_->setColor(255, 255, 255);
|
||||
since_texture_->setColor(255, 255, 255);
|
||||
}
|
||||
|
||||
// Recarga todas las texturas
|
||||
void Logo::reloadTextures()
|
||||
{
|
||||
|
||||
@@ -65,7 +65,7 @@ public:
|
||||
Logo();
|
||||
|
||||
// Destructor
|
||||
~Logo() = default;
|
||||
~Logo();
|
||||
|
||||
// Bucle principal
|
||||
void run();
|
||||
|
||||
@@ -4,4 +4,5 @@ namespace section
|
||||
{
|
||||
Name name;
|
||||
Options options;
|
||||
AttractMode attract_mode;
|
||||
}
|
||||
@@ -29,6 +29,14 @@ namespace section
|
||||
NONE = 7,
|
||||
};
|
||||
|
||||
// Variables para el Attract Mode
|
||||
enum class AttractMode
|
||||
{
|
||||
TITLE_TO_DEMO,
|
||||
TITLE_TO_LOGO,
|
||||
};
|
||||
|
||||
extern Name name;
|
||||
extern Options options;
|
||||
extern AttractMode attract_mode;
|
||||
}
|
||||
@@ -46,6 +46,9 @@ Title::Title()
|
||||
|
||||
// Asigna valores a otras variables
|
||||
section::options = section::Options::TITLE_1;
|
||||
const bool is_title_to_demo = (section::attract_mode == section::AttractMode::TITLE_TO_DEMO);
|
||||
next_section_ = is_title_to_demo ? section::Name::GAME_DEMO : section::Name::LOGO;
|
||||
section::attract_mode = is_title_to_demo ? section::AttractMode::TITLE_TO_LOGO : section::AttractMode::TITLE_TO_DEMO;
|
||||
}
|
||||
|
||||
// Destructor
|
||||
|
||||
@@ -49,7 +49,7 @@ private:
|
||||
// Variable
|
||||
int counter_ = 0; // Temporizador para la pantalla de titulo
|
||||
Uint32 ticks_ = 0; // Contador de ticks para ajustar la velocidad del programa
|
||||
section::Name next_section_ = section::Name::GAME_DEMO; // Indica cual es la siguiente sección a cargar cuando termine el contador del titulo
|
||||
section::Name next_section_; // Indica cual es la siguiente sección a cargar cuando termine el contador del titulo
|
||||
int post_fade_ = 0; // Opción a realizar cuando termina el fundido
|
||||
int num_controllers_; // Número de mandos conectados
|
||||
|
||||
|
||||
Reference in New Issue
Block a user