1 |
draw_set_color(c_white); |
2 |
draw_set_font(fnt_arcade); |
3 |
draw_text_transformed(85, 50, string_hash_to_newline(arcade_score), 0.5, 0.5, 0); |
4 |
var lives_x = 210; |
5 |
var lives_y = 58; |
6 |
if (arcade_lives > 0) |
7 |
draw_sprite(spr_arcade_health, 0, lives_x + 14, lives_y); |
8 |
if (arcade_lives > 1) |
9 |
draw_sprite(spr_arcade_health, 0, lives_x + 7, lives_y); |
10 |
if (arcade_lives > 2) |
11 |
draw_sprite(spr_arcade_health, 0, lives_x, lives_y); |
12 |
if (arcade_intro == true) |
13 |
{ |
14 |
draw_set_alpha(arcade_intro_alpha); |
15 |
draw_sprite(spr_arcade_tutorial, 0, room_width / 2, room_height / 2); |
16 |
draw_set_alpha(1); |
17 |
} |
18 |
if (arcade_start_screen) |
19 |
draw_sprite(spr_arcade_start, 0, room_width / 2, room_height / 2); |
20 |
if (arcade_game_over) |
21 |
{ |
22 |
draw_set_halign(fa_center); |
23 |
draw_sprite(spr_arcade_game_over, 0, room_width / 2, room_height / 2); |
24 |
draw_text_transformed(160, 60, string_hash_to_newline("SCORE: " + string(arcade_score)), 0.5, 0.5, 0); |
25 |
draw_text_transformed(160, 160, string_hash_to_newline("GAME OVER"), 0.5, 0.5, 0); |
26 |
draw_set_halign(fa_left); |
27 |
} |
28 |
if (arcade_game_win) |
29 |
{ |
30 |
draw_set_halign(fa_center); |
31 |
draw_sprite(spr_arcade_game_win, 0, room_width / 2, room_height / 2); |
32 |
draw_text_transformed(160, 60, string_hash_to_newline("SCORE: " + string(arcade_score)), 0.5, 0.5, 0); |
33 |
draw_text_transformed(160, 160, string_hash_to_newline("YOU WIN!"), 0.5, 0.5, 0); |
34 |
draw_set_halign(fa_left); |
35 |
} |