Add a "created by" screen

This commit is contained in:
Lucas S. Vieira 2025-01-01 13:53:39 -03:00
parent 9adffe3da5
commit 23498b7f53
6 changed files with 17 additions and 7 deletions

BIN
assets/misc/CREATED.TIM Normal file

Binary file not shown.

BIN
assets/misc/createdby.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

View file

@ -5,8 +5,9 @@ typedef enum {
SLIDE_COMINGSOON = 0,
SLIDE_PS30YRS = 1,
SLIDE_SEGALOGO = 2,
SLIDE_CREATEDBY = 3,
SLIDE_NUM_SLIDES = (SLIDE_SEGALOGO + 1),
SLIDE_NUM_SLIDES = (SLIDE_CREATEDBY + 1),
} SlideOption;
void screen_slide_load();

View file

@ -262,6 +262,9 @@
<file name="SEGALOGO.TIM"
type="data"
source="${PROJECT_SOURCE_DIR}/assets/misc/SEGALOGO.TIM" />
<file name="CREATED.TIM"
type="data"
source="${PROJECT_SOURCE_DIR}/assets/misc/CREATED.TIM" />
<file name="LVLSEL.TIM"
type="data"
source="${PROJECT_SOURCE_DIR}/assets/misc/LVLSEL.TIM" />

View file

@ -69,6 +69,9 @@ static const char *menutext[] = {
"SLIDE TEST *??*",
"\n",
"\n",
"\n",
"\n",
"\n",
"MODELTEST",
"TITLESCREEN",
"CREDITS",
@ -291,10 +294,6 @@ screen_levelselect_draw(void *d)
x = CENTERX - (strlen(title) * 4);
font_draw_big(title, x, 12);
const char *subtitle = "*luksamuk.codes*";
x = SCREEN_XRES - (strlen(subtitle) * 8) - 8;
font_draw_sm(subtitle, x, SCREEN_YRES - 24);
// Draw text
uint8_t txtidx = 0;
uint8_t cursel = 0;

View file

@ -32,8 +32,8 @@ static volatile const struct {
{
.image = "\\MISC\\PS30YRS.TIM;1",
.bgm = 0xff,
.next = SCREEN_TITLE,
.next_slide = 0xff,
.next = SCREEN_SLIDE,
.next_slide = SLIDE_CREATEDBY,
.duration = 180
},
{
@ -43,6 +43,13 @@ static volatile const struct {
.next_slide = SLIDE_PS30YRS,
.duration = 180
},
{
.image = "\\MISC\\CREATED.TIM;1",
.bgm = 0xff,
.next = SCREEN_TITLE,
.next_slide = 0xff,
.duration = 180
},
};
typedef struct {