GBAlatro
A Demake of Balatro for the GBA
Loading...
Searching...
No Matches
splash_screen.h File Reference

Functions and constants for the splash screen intro. More...

#include <tonc.h>

Go to the source code of this file.

Macros

Splash screen timing variables

Constants for timing the duration of the splash screen.

#define SPLASH_FPS   60
 
#define SPLASH_DURATION_SECONDS   10
 
#define SPLASH_DURATION_FRAMES   (SPLASH_FPS * SPLASH_DURATION_SECONDS)
 

Functions

void splash_screen_on_init (void)
 Initialize the splash screen by printing the splash screen text.
 
void splash_screen_on_update (void)
 Update splash screen timers and print the remaining time accordingly.
 
void splash_screen_on_exit (void)
 Exit the splash screen.
 

Detailed Description

Functions and constants for the splash screen intro.

Definition in file splash_screen.h.

Macro Definition Documentation

◆ SPLASH_DURATION_FRAMES

#define SPLASH_DURATION_FRAMES   (SPLASH_FPS * SPLASH_DURATION_SECONDS)

Definition at line 20 of file splash_screen.h.

◆ SPLASH_DURATION_SECONDS

#define SPLASH_DURATION_SECONDS   10

Definition at line 19 of file splash_screen.h.

◆ SPLASH_FPS

#define SPLASH_FPS   60

Definition at line 18 of file splash_screen.h.

Function Documentation

◆ splash_screen_on_exit()

void splash_screen_on_exit ( void  )

Exit the splash screen.

Definition at line 55 of file splash_screen.c.

◆ splash_screen_on_init()

void splash_screen_on_init ( void  )

Initialize the splash screen by printing the splash screen text.

Definition at line 14 of file splash_screen.c.

◆ splash_screen_on_update()

void splash_screen_on_update ( void  )

Update splash screen timers and print the remaining time accordingly.

Definition at line 30 of file splash_screen.c.