goose_talk function now passes index_frame attribute to set which phrase

will display from the spritesheet.
This commit is contained in:
Henry 2026-02-13 14:30:35 +00:00
parent e3c384c3cd
commit 462b0fc4b0
7 changed files with 16 additions and 13 deletions

View file

@ -34,7 +34,6 @@ func _on_enemy_died():
func update_enemy_aggression(low,high):
var nodes = get_tree().get_nodes_in_group("enemies")
for node in nodes:
if node is Area2D:
node.enemy_move_aggression = randf_range(low,high)
@ -48,7 +47,7 @@ func wave_status():
wave_complete = false
else:
EventBus.goose_talk.emit()
EventBus.goose_talk.emit(1)
wave_initialize()
wave_complete = true
@ -61,11 +60,11 @@ func enemy_aggression_check():
if enemy_count == ROWS * COLS / 2:
print_debug("Enemy count is 50%")
update_enemy_aggression(2,10)
EventBus.goose_talk.emit()
EventBus.goose_talk.emit(0)
if enemy_count == ROWS * COLS / 4:
print_debug("Enemy count is 25%")
update_enemy_aggression(1,1)