diff --git a/source/affine_background.c b/source/affine_background.c index 084c3a2..5bfefe3 100644 --- a/source/affine_background.c +++ b/source/affine_background.c @@ -12,6 +12,7 @@ enum AffineBackgroundID background = AFFINE_BG_MAIN_MENU; void affine_background_init() { affine_background_change_background(background); + affine_background_update(); bgaff = bg_aff_default; } diff --git a/source/main.c b/source/main.c index bbee8aa..0c2e703 100644 --- a/source/main.c +++ b/source/main.c @@ -18,6 +18,8 @@ #include "soundbank.h" #include "soundbank_bin.h" +#define SPLASH_DURATION (60 * 10) // FPS * SECONDS + void init() { irq_init(NULL); @@ -71,6 +73,21 @@ void init() REG_DISPCNT = DCNT_MODE1 | DCNT_OBJ_1D | DCNT_BG0 | DCNT_BG1 | DCNT_BG2 | DCNT_OBJ | DCNT_WIN0 | DCNT_WIN1; + // Splash screen + tte_printf("#{P:72,8; cx:0xF000}DISCLAIMER"); + tte_printf("#{P:8,24; cx:0xF000}This project is NOT endorsed \n by or affiliated with \n Playstack or LocalThunk.\n\n If you have paid for this, \n you have been scammed \n and should request a refund \n IMMEDIATELY. \n\n The only official place \n to obtain this is from: \n\n 'github.com/\n cellos51/balatro-gba'"); + tte_printf("#{P:24,144; cx:0xF000}(Press any key to skip)"); + for (int i = 0; i < SPLASH_DURATION; i++) + { + VBlankIntrWait(); + key_poll(); + if (key_hit(KEY_A | KEY_B | KEY_START | KEY_SELECT)) // Skip intro + { + break; + } + } + tte_erase_screen(); + // Initialize subsystems affine_background_init(); sprite_init();