diff --git a/Main/Main.gd b/Main/Main.gd new file mode 100644 index 0000000..cd0fa7c --- /dev/null +++ b/Main/Main.gd @@ -0,0 +1,7 @@ +extends Node + +func _process(_delta): + $Label.text = $EuphRoom.status() + +func _on_euph_room_packet(packet: EuphPacket): + print("| ", packet.json_stringify()) diff --git a/Main/Main.tscn b/Main/Main.tscn new file mode 100644 index 0000000..50be89e --- /dev/null +++ b/Main/Main.tscn @@ -0,0 +1,16 @@ +[gd_scene load_steps=3 format=3 uid="uid://cl80lss8ol1g8"] + +[ext_resource type="Script" path="res://Main/Main.gd" id="1_4ppmd"] +[ext_resource type="PackedScene" uid="uid://dmuubcbriw7uu" path="res://EuphRoom/EuphRoom.tscn" id="2_wfewt"] + +[node name="Main" type="Node"] +script = ExtResource("1_4ppmd") + +[node name="EuphRoom" parent="." instance=ExtResource("2_wfewt")] +autoconnect = true + +[node name="Label" type="Label" parent="."] +offset_right = 40.0 +offset_bottom = 23.0 + +[connection signal="packet" from="EuphRoom" to="." method="_on_euph_room_packet"] diff --git a/project.godot b/project.godot index aef46db..567be95 100644 --- a/project.godot +++ b/project.godot @@ -11,5 +11,6 @@ config_version=5 [application] config/name="euphoria.gd" +run/main_scene="res://Main/Main.tscn" config/features=PackedStringArray("4.2", "Forward Plus") config/icon="res://icon.svg"