Skip to content

Commit

Permalink
Faster intro.
Browse files Browse the repository at this point in the history
  • Loading branch information
alxm committed May 25, 2018
1 parent 6ce208c commit a42cdf3
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions DefendPluto/state_intro.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ void z_state_intro_init(void)

void z_state_intro_tick(bool Active)
{
if(!Active) {
return;
}
Z_UNUSED(Active);

if(z_timer_expired(Z_TIMER_G1)) {
switch(g_stage) {
Expand All @@ -52,12 +50,13 @@ void z_state_intro_tick(bool Active)
if(++g_height == Z_LOGO_WAIT_DS) {
g_stage = 2;
g_height = 0;
z_state_set(Z_STATE_TITLE, true);
}
} break;

case 2: {
if(++g_height > z_sprite_getHeight(Z_SPRITE_ALXM)) {
z_state_set(Z_STATE_TITLE, true);
if(g_height <= z_sprite_getHeight(Z_SPRITE_ALXM)) {
g_height = i16(g_height + 2);
}
} break;
}
Expand Down

0 comments on commit a42cdf3

Please sign in to comment.