49 while (++i < t->width)
Extended terminal info (for welcome screen pos)
int height
Terminal height.
int center_y
Vertical center row.
static void init_screen(void)
Clear the screen and hide the cursor.
static void cleanup_screen(t_welcome_term *t)
Wait a bit, show the cursor and clear the screen to exit welcome.
static void draw_border_effect(t_welcome_term *t)
Animate top and bottom border sweep across the screen.
void draw_welcome(void)
Draw complete welcome animation sequence and clean up.
void flash_demon_eyes(t_welcome_term *t)
Animate the demon's eyes blinking.
void animate_demon(t_welcome_term *t)
Animate the Demon art with 100ms delay.
void animate_quote(t_welcome_term *t)
Draw the quote inside a decorative box.
void animate_title(t_welcome_term *t)
Animate the title appearing character by character.
void animate_credits(t_welcome_term *t)
Print the credits line centered on the screen.
void animate_loading(t_welcome_term *t)
Animate a progress bar.
Welcome screen structures & prototypes.
void ft_msleep(int ms)
Sleep for approximately ms millisecondes using a little trick.
void print_at_pos(int row, int col, const char *str)
Move the terminal cursor to [row, col] and print str.
void get_welcome_term_size(t_welcome_term *t)
Get the terminal size and calculate centre coordinates.