Built a simple 'World 1-1' level to test platforming

This commit is contained in:
2026-03-13 16:36:58 +11:00
parent aea1b4a97d
commit 84cb13e717
18 changed files with 131 additions and 45 deletions

View File

@@ -1,6 +1,5 @@
class_name ArrowGirl extends Area2D
@onready var _dialogController = $/root/Scene/DialogController
@onready var _sprite = $AnimatedSprite2D
#boilerplate
@@ -16,8 +15,8 @@ func _on_animation_finished() -> void:
func _on_body_entered(body) -> void:
if body is BoxBoy:
_dialogController.set_dialog("Hello.", 0.2)
%DialogController.set_dialog("Hello flowers!", 0.2)
func _on_body_exited(body) -> void:
if body is BoxBoy:
_dialogController.set_dialog("")
%DialogController.set_dialog("")