Add more menus and endless mode
This commit is contained in:
@@ -13,6 +13,10 @@ draw_set_font(fnt_Special_Elite);
|
||||
draw_text_transformed(_cam_x + (_cam_w / 2), _cam_y + (_cam_h / 2) - 20, "YOU DIED", 4, 4, 0);
|
||||
draw_set_font(fnt_Tiny5);
|
||||
draw_text_transformed(_cam_x + (_cam_w / 2), _cam_y + (_cam_h / 2) + 50, "-< Press any key to resurrect >-", 1, 1, 0);
|
||||
|
||||
draw_set_valign(fa_bottom);
|
||||
draw_text_transformed(_cam_x + (_cam_w / 2) - 120, _cam_y + _cam_h - 30, "Current Score: " + string(global.current_score), 0.5, 0.5, 0);
|
||||
draw_text_transformed(_cam_x + (_cam_w / 2) + 120, _cam_y + _cam_h - 30, "High Score: " + string(global.high_score), 0.5, 0.5, 0);
|
||||
draw_set_halign(fa_left);
|
||||
draw_set_valign(fa_top);
|
||||
draw_set_alpha(1);
|
||||
|
||||
@@ -3,5 +3,13 @@ alpha = clamp(alpha, 0, 1);
|
||||
|
||||
if keyboard_check_pressed(vk_anykey) && alpha >= 1 {
|
||||
global.first_start = false;
|
||||
|
||||
if (global.current_score >= global.high_score) {
|
||||
global.high_score = global.current_score;
|
||||
save_high_score();
|
||||
}
|
||||
|
||||
global.current_score = 0;
|
||||
|
||||
room_restart()
|
||||
}
|
||||
5
objects/o_game_over/o_game_over.yy
generated
5
objects/o_game_over/o_game_over.yy
generated
@@ -13,7 +13,10 @@
|
||||
"name":"Controllers",
|
||||
"path":"folders/Controllers.yy",
|
||||
},
|
||||
"parentObjectId":null,
|
||||
"parentObjectId":{
|
||||
"name":"o_screen_pause",
|
||||
"path":"objects/o_screen_pause/o_screen_pause.yy",
|
||||
},
|
||||
"persistent":false,
|
||||
"physicsAngularDamping":0.1,
|
||||
"physicsDensity":0.5,
|
||||
|
||||
Reference in New Issue
Block a user