Updated pattern for boss; trying to get it to spawn bullets.

This commit is contained in:
Henry 2026-03-04 01:07:40 +00:00
parent caf2bffb0c
commit e608652170
24 changed files with 606 additions and 28 deletions

View file

@ -25,7 +25,7 @@ func _ready():
func spawn_enemies():
if wave_count == 3: #This is for CHICKENS
if wave_count == 2: #This is for CHICKENS
print("Enemy Wave: ", wave_count)
enemy = CHICKEN
for x in range(COLS):
@ -38,7 +38,7 @@ 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 == 2: #This is for CRTs
if wave_count == 3: #This is for CRTs
print("Enemy Wave: ", wave_count)
enemy = CRT
var cols_mod = COLS - 1
@ -53,7 +53,7 @@ func spawn_enemies():
enemy_count = rows_mod * cols_mod
await get_tree().process_frame
if wave_count == 1: #This if for Mirror
if wave_count == 0 : #This if for Mirror
print("Enemy Wave: ", wave_count)
# Spawn Table
@ -89,8 +89,9 @@ func spawn_enemies():
s.start_all_animations()
if wave_count == 0: #This is for Boss
if wave_count == 1 : #This is for Boss
# Hide the player
# Speed up parallax
EventBus.cloud_speed.emit()
@ -99,7 +100,7 @@ func spawn_enemies():
EventBus.flash_screen.emit(.25)
var b = BOSS.instantiate()
add_child(b)
b.position = Vector2(screensize.x / 2, position.y + 100)
#b.position = Vector2(screensize.x / 2, position.y + 100)