4 Commits

Author SHA1 Message Date
944784b329 Actualizado el número de versión 2024-02-22 16:58:16 +01:00
df4c1366fe Corregidos dos pequeños errores de sintaxis 2024-02-15 13:18:33 +01:00
1ee1ea560b Aumentado el tiempo que se muestra la pantalla de carga.
Posibilidad de saltar la pantalla ya cargada en el menu de titulo
2024-02-07 18:51:00 +01:00
5c7f72253c El gamestate_title ya puede empezar en diferentes estados 2024-02-07 18:34:19 +01:00
6 changed files with 10 additions and 10 deletions

View File

@@ -2,7 +2,7 @@ executable = jaildoctors_dilemma
source = source/*.cpp source/jail_engine/*.cpp
appName = JailDoctor's Dilemma
releaseFolder = jdd_release
version = v1.09
version = v1.08
# Release names
windowsRelease = $(executable)-$(version)-win32-x64.zip

View File

@@ -23,11 +23,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0.9</string>
<string>1.08</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0.8</string>
<string>1.08</string>
<key>CSResourcesFileMapped</key>
<true/>
<key>LSMinimumSystemVersion</key>

View File

@@ -62,6 +62,8 @@ const int GAMECANVAS_THIRD_QUARTER_Y = (GAMECANVAS_HEIGHT / 4) * 3;
// Subsecciones
#define SUBSECTION_LOGO_TO_INTRO 0
#define SUBSECTION_LOGO_TO_TITLE 1
#define SUBSECTION_TITLE_WITH_LOADING_SCREEN 2
#define SUBSECTION_TITLE_WITHOUT_LOADING_SCREEN 3
// Colores
const color_t borderColor = {0x27, 0x27, 0x36};

View File

@@ -173,7 +173,7 @@ void LoadingScreen::updateLoad()
if (loadCounter >= 768)
{
section->name = SECTION_TITLE;
section->subsection = 0;
section->subsection = SUBSECTION_TITLE_WITH_LOADING_SCREEN;
JA_StopMusic();
}
}

View File

@@ -47,6 +47,7 @@ Title::Title(SDL_Renderer *renderer, Screen *screen, Resource *resource, Asset *
// Inicializa variables
counter = 0;
state = section->subsection == SUBSECTION_TITLE_WITH_LOADING_SCREEN ? show_loading_screen : show_menu;
section->name = SECTION_TITLE;
section->subsection = 0;
ticks = 0;
@@ -54,7 +55,6 @@ Title::Title(SDL_Renderer *renderer, Screen *screen, Resource *resource, Asset *
marqueeSpeed = 3;
initMarquee();
showCheevos = false;
state = show_loading_screen;
// Crea y rellena la textura para mostrar los logros
createCheevosTexture();
@@ -200,10 +200,9 @@ void Title::checkInput()
else if (input->checkInput(input_accept, REPEAT_FALSE) || input->checkInput(input_pause, REPEAT_FALSE))
{
if (!showCheevos)
if (state == show_loading_screen)
{
// section->name = SECTION_GAME;
// section->subsection = 0;
state = fade_loading_screen;
}
}
}
@@ -281,7 +280,7 @@ void Title::update()
switch (state)
{
case show_loading_screen:
if (counter == 200)
if (counter == 500)
{
counter = 0;
state = fade_loading_screen;

View File

@@ -46,7 +46,6 @@ private:
SDL_Event *eventHandler; // Manejador de eventos
Texture *texture; // Textura con los graficos
Sprite *sprite; // Sprite para manejar la textura
Texture *titleLogo; // Textura con el logo del título del juego
SDL_Texture *bgTexture; // Textura para dibujar el fondo de la pantalla
Text *text; // Objeto para escribir texto en pantalla
Text *infoText; // Objeto para escribir texto en pantalla