summaryrefslogtreecommitdiff
path: root/green_greens.gd
diff options
context:
space:
mode:
Diffstat (limited to 'green_greens.gd')
-rw-r--r--green_greens.gd6
1 files changed, 5 insertions, 1 deletions
diff --git a/green_greens.gd b/green_greens.gd
index af9ea37..2f35176 100644
--- a/green_greens.gd
+++ b/green_greens.gd
@@ -11,7 +11,7 @@ func _ready() -> void:
SoundManager.play_background("GreenGreens")
if starting_position:
- player.position = starting_position
+ player.visual_position = starting_position
player.get_node("Camera2D").limit_top = $Wall.get_wall_limits().top
player.get_node("Camera2D").limit_bottom = $Wall.get_wall_limits().bottom
@@ -35,3 +35,7 @@ func _on_area_2d_body_entered(body: Node2D) -> void:
if body is Player:
SoundManager.fade_out(SoundManager.current_background)
Game.transition_to_scene("res://FloatIslandsIntro.tscn")
+func _on_area_2d_2_body_entered(_body: Node2D) -> void:
+ Game.boss_initialized.emit(3)
+ await get_tree().create_timer(1.0).timeout
+ get_tree().current_scene.get_node("HUD").get_node("%BossHPBar").get_child(0).get_child(3-1).set_empty()