Add more menus and endless mode
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
event_inherited();
|
||||
get_damaged_create(100);
|
||||
|
||||
global.totalEnemiesSpawned++;
|
||||
global.total_enemies_spawned++;
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user