diff --git a/01_text_adventure/intro.c b/01_text_adventure/intro.c index 6260027..d569109 100644 --- a/01_text_adventure/intro.c +++ b/01_text_adventure/intro.c @@ -14,7 +14,7 @@ void display_loading(void) { Intro *load_intro(void) { Intro *i = malloc(sizeof(Intro)); - i->textures = malloc(sizeof(Texture) * 2); + i->textures = malloc(sizeof(Texture) * 3); Image bgb = LoadImage("img/made_by_bgb.png"); i->textures[0] = LoadTextureFromImage(bgb); @@ -24,12 +24,16 @@ Intro *load_intro(void) { i->textures[1] = LoadTextureFromImage(ray); UnloadImage(ray); - i->texture_count = 2; + Image title = LoadImage("img/title.png"); + i->textures[2] = LoadTextureFromImage(title); + UnloadImage(title); + + i->texture_count = 3; i->timer = 0.; return i; } -#define SLIDE_TIME 2.0 +#define SLIDE_TIME 3.0 #define FADE_IN_TIME 0.5 #define FADE_OUT_TIME 0.5 void intro_display(Intro *intro) {