Roughed in dynamic CRT enemy movement; tweaked parallax cloud movement

and sprites.
This commit is contained in:
Henry 2026-02-18 00:32:14 +00:00
parent 26803702b1
commit 661098529d
12 changed files with 134 additions and 27 deletions

View file

@ -19,7 +19,7 @@ func _ready():
func spawn_enemies():
if wave_count == 0: #This is for CHICKENS
if wave_count == 1: #This is for CHICKENS
print("Enemy Wave: ", wave_count)
enemy = CHICKEN
for x in range(COLS):
@ -32,18 +32,20 @@ func spawn_enemies():
await get_tree().process_frame
print_debug("Remaining enemies: ", enemy_count, ", ", get_tree().get_nodes_in_group("enemies").size())
if wave_count == 1: #This is for CRTs
if wave_count == 0: #This is for CRTs
print("Enemy Wave: ", wave_count)
enemy = CRT
for x in range(COLS):
for y in range(ROWS):
var cols_mod = COLS - 1
var rows_mod = ROWS - 1
for x in range(cols_mod):
for y in range(rows_mod):
var pos_mod = int (randf_range(-42,32))
var e = enemy.instantiate()
var pos = Vector2(x * (28 + 4) + 56, 28 * 2 + y * 38)
var pos = Vector2(x * (36 + 12) + 56, 28 * 2 + y * 38)
add_child(e)
e.start(pos)
enemy_count = ROWS * COLS
e.start(pos + Vector2(pos_mod, y))
enemy_count = rows_mod * cols_mod
await get_tree().process_frame
print_debug("Remaining enemies: ", enemy_count, ", ", get_tree().get_nodes_in_group("enemies").size())