Change tinygl_text to have pos

This commit is contained in:
Michael Hayes
2011-09-24 10:42:33 +00:00
parent 691778132b
commit c1fef5ff4c
27 changed files with 238 additions and 238 deletions
+6 -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_text (buffer, tinygl_point (0, TINYGL_HEIGHT - 1));
}
@@ -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_text (buffer, tinygl_point (0, TINYGL_HEIGHT - 1));
}
@@ -304,7 +304,8 @@ static void game_task (__unused__ void *data)
break;
case STATE_INIT:
tinygl_text ("SPACEY READY V" VERSION " BY MPH ");
tinygl_text ("SPACEY READY V" VERSION " BY MPH ",
tinygl_point (0, TINYGL_HEIGHT - 1));
mmelody_play (melody, game_intro_tune);
state = STATE_READY;
break;
@@ -344,7 +345,8 @@ static void display_task (__unused__ void *data)
tinygl_init (DISPLAY_TASK_RATE);
tinygl_font_set (&font3x5_1);
tinygl_text_mode_set (TINYGL_TEXT_MODE_ROTATE_SCROLL_DOWN);
tinygl_text_mode_set (TINYGL_TEXT_MODE_SCROLL);
tinygl_text_dir_set (TINYGL_TEXT_DIR_ROTATE);
tinygl_text_speed_set (10);
for (i = 0; i < ARRAY_SIZE (flashers); i++)