Added goose_talk() to the global event bus. And a goose.
This commit is contained in:
parent
614c5b5f78
commit
69b3b935ad
10 changed files with 80 additions and 3 deletions
|
|
@ -56,6 +56,7 @@ func _on_enemy_died():
|
|||
if enemy_count == ROWS * COLS / 2:
|
||||
print_debug("Enemy count is 50%")
|
||||
update_enemy_aggression(2,10)
|
||||
EventBus.goose_talk.emit()
|
||||
if enemy_count == ROWS * COLS / 4:
|
||||
print_debug("Enemy count is 25%")
|
||||
update_enemy_aggression(1,1)
|
||||
|
|
@ -113,6 +114,7 @@ func new_game():
|
|||
# Tell the enemies to spawn!
|
||||
#await get_tree().create_timer(.5).timeout
|
||||
spawn_enemies()
|
||||
|
||||
|
||||
# Tell the game we're playing.
|
||||
playing = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue