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,11 +1,3 @@
if global.first_start {
menu_inst = instance_create_depth(0, 0, -10000, o_start_menu)
}
if global.start_key_pressed && instance_exists(menu_inst) {
instance_destroy(menu_inst);
}
// Get player's hp
if instance_exists(o_player) {
player_hp = o_player.hp;
@@ -21,6 +13,10 @@ if (global.weapon_notification_timer > 0) {
}
}
if (global.enemyKillCount >= global.enemyRoomMax) {
if (global.kill_count >= global.enemy_room_max) {
if (global.current_score >= global.high_score) {
global.high_score = global.current_score;
save_high_score();
}
instance_create_depth(0, 0, -10000, o_end_screen);
}