Add more menus and endless mode

This commit is contained in:
Andrew Trieu
2025-04-20 22:37:10 +03:00
committed by Andrew Trieu
parent d2beb3540a
commit 2f75df211f
44 changed files with 651 additions and 65 deletions

View File

@@ -1,4 +1,8 @@
if sprite_index == sprites[4] {
if (global.current_score >= global.high_score) {
global.high_score = global.current_score;
save_high_score();
}
instance_create_depth(0, 0, -10000, o_game_over);
instance_destroy();
}

View File

@@ -9,6 +9,11 @@ var pause_key_pressed = global.pause_key_pressed;
// Pause game
if pause_key_pressed {
if (global.current_score >= global.high_score) {
global.high_score = global.current_score;
save_high_score();
}
if !instance_exists(o_pause_menu) {
instance_create_depth(0, 0, -10000, o_pause_menu);
} else {