Add project code

This commit is contained in:
Andrew Trieu
2025-04-20 15:57:23 +03:00
committed by Andrew Trieu
commit 3fbd0e4977
612 changed files with 11196 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
if pause_movement() { exit; }
timer++;
// Reset when limit reached
if instance_number(o_parent_enemy) >= global.enemyActiveMax || global.totalEnemiesSpawned >= global.enemyRoomMax {
timer = 0;
}
// Spawn enemy
if timer >= spawn_time && !place_meeting(x, y, o_archer) {
var _inst = instance_create_depth(x, y, -500, o_archer);
with _inst {
image_alpha = 0;
state = -1;
}
timer = 0;
}