Rev 5298 | Rev 5316 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5298 | Rev 5315 | ||
---|---|---|---|
Line 146... | Line 146... | ||
146 | texture_draw(&game.framebuffer, &game.tex_ship[2], game.player_x, game.player_y-4, DRAW_MODE_ALPHA); |
146 | texture_draw(&game.framebuffer, &game.tex_ship[2], game.player_x, game.player_y-4, DRAW_MODE_ALPHA); |
147 | texture_draw(&game.framebuffer, &game.tex_ship[3], game.player_x, game.player_y-4, DRAW_MODE_ALPHA); |
147 | texture_draw(&game.framebuffer, &game.tex_ship[3], game.player_x, game.player_y-4, DRAW_MODE_ALPHA); |
Line 148... | Line 148... | ||
148 | 148 | ||
- | 149 | ||
- | 150 | if ( game.stage == 0 ) { |
|
- | 151 | ||
149 | 152 | int stage_label_y = GAME_HEIGHT/3 - (game.stage_timer - 25)*(game.stage_timer - 25)*(game.stage_timer - 25)/100; |
|
- | 153 | ||
- | 154 | //game_textout_at_center( 0, GAME_HEIGHT + 50 - game.stage_timer*(GAME_HEIGHT+50)/50, 1, "LEVEL 1" ); |
|
- | 155 | ||
- | 156 | char stage_str[] = "5TAGE xx"; |
|
- | 157 | char *stage_num = &stage_str[6]; |
|
150 | if ( game.stage == 0 ) { |
158 | |
- | 159 | if ( (game.stage_level+1) > 9 ) { |
|
151 | game_textout_at_center( 0, GAME_HEIGHT + 50 - game.stage_timer*(GAME_HEIGHT+50)/50, 1, "LEVEL 1" ); |
160 | stage_num[0] = '0' + (game.stage_level+1)/10; |
152 | game_textout_at_center( 0, GAME_HEIGHT*2/3, 2, L_TECHDEMO_LINE1 ); |
161 | stage_num[1] = '0' + (game.stage_level+1)%10; |
- | 162 | } |
|
- | 163 | else { |
|
- | 164 | stage_num[0] = '0' + (game.stage_level+1)%10; |
|
Line 153... | Line -... | ||
153 | } |
- | |
154 | else { |
- | |
155 | - | ||
156 | char s_score[] = "000"; |
165 | stage_num[1] = 0; |
Line -... | Line 166... | ||
- | 166 | }; |
|
157 | s_score[0] += game.score / 100; |
167 | |
- | 168 | game_textout_at_center( -10, stage_label_y, 1, stage_str ); |
|
- | 169 | ||
Line -... | Line 170... | ||
- | 170 | if ( IS_BIT_CLEARED ( game.flags, GAME_FLAG_INSTRUCTIONS_PASSED ) ) { |
|
- | 171 | game_textout_at_center( 0, GAME_HEIGHT*3/4, 2, L_TECHDEMO_LINE1 ); |
|
- | 172 | }; |
|
- | 173 | } |
|
- | 174 | ||
Line 158... | Line 175... | ||
158 | s_score[1] += (game.score / 10) % 10; |
175 | char s_score[] = "0000"; |
Line 159... | Line 176... | ||
159 | s_score[2] += (game.score / 1) % 10; |
176 | s_score[0] += (game.score / 1000) % 10; |