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,4 @@
event_inherited();
get_damaged_create(100);
global.totalEnemiesSpawned++;
global.total_enemies_spawned++;

View File

@@ -1,11 +1,17 @@
if sprite_index == sprites[4] {
global.enemyKillCount++;
global.kill_count++;
global.current_score++;
// Drop healing milk
var _drop_chance = 10;
if global.infinite_mode {
_drop_chance = 5;
}
var _chance = irandom(100);
if global.enemyKillCount mod 20 == 0 || _chance <= _drop_chance {
if ((!global.infinite_mode && global.kill_count mod 20 == 0) || _chance <= _drop_chance) {
instance_create_depth(x, y, -600, o_potion);
}