Revert tinygl_text API and add tinygl_draw_message

This commit is contained in:
Michael Hayes
2011-09-24 21:25:49 +00:00
parent cc3347edd4
commit 76665cbc7f
26 changed files with 65 additions and 52 deletions
+3 -4
View File
@@ -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;