Revert tinygl_text API and add tinygl_draw_message
This commit is contained in:
@@ -152,7 +152,7 @@ game_over_display (char *buffer)
|
||||
*str++ = '/';
|
||||
uint8toa (spacey_shells_fired_get (), str, 0);
|
||||
tinygl_clear ();
|
||||
tinygl_text (buffer, tinygl_point (0, TINYGL_HEIGHT - 1));
|
||||
tinygl_text (buffer);
|
||||
}
|
||||
|
||||
|
||||
@@ -165,7 +165,7 @@ game_text_display (uint8_t num, char *buffer, char *msg)
|
||||
*str++ = *msg++;
|
||||
uint8toa (num, str, 0);
|
||||
tinygl_clear ();
|
||||
tinygl_text (buffer, tinygl_point (0, TINYGL_HEIGHT - 1));
|
||||
tinygl_text (buffer);
|
||||
}
|
||||
|
||||
|
||||
@@ -304,8 +304,7 @@ static void game_task (__unused__ void *data)
|
||||
break;
|
||||
|
||||
case STATE_INIT:
|
||||
tinygl_text ("SPACEY READY V" VERSION " BY MPH ",
|
||||
tinygl_point (0, TINYGL_HEIGHT - 1));
|
||||
tinygl_text ("SPACEY READY V" VERSION " BY MPH ");
|
||||
mmelody_play (melody, game_intro_tune);
|
||||
state = STATE_READY;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user