json dialog implementation progression

This commit is contained in:
2022-11-29 20:06:42 +01:00
parent 8e63ba5207
commit b719aae87d
4 changed files with 42 additions and 10 deletions

View File

@@ -1,10 +1,14 @@
[gd_scene load_steps=3 format=3 uid="uid://h8na2j1qthm4"]
[gd_scene load_steps=5 format=3 uid="uid://h8na2j1qthm4"]
[ext_resource type="Texture2D" uid="uid://p5ubildre2tg" path="res://assets/textures/debug/cupcake.png" id="1_imilm"]
[ext_resource type="PackedScene" uid="uid://hkcebwbua6wm" path="res://scenes/gui/dialog_trigger_area.tscn" id="2_blpmd"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_pchpi"]
size = Vector2(64, 58.5)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_d78tr"]
size = Vector2(64, 58)
[node name="dialogdebug_cupcake" type="StaticBody2D"]
[node name="Sprite2D" type="Sprite2D" parent="."]
@@ -12,3 +16,11 @@ texture = ExtResource("1_imilm")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_pchpi")
[node name="dialog_trigger_area" parent="." instance=ExtResource("2_blpmd")]
dialogFile = "res://dialog/npcs/villagers.json"
[node name="collision_shape_2d" parent="dialog_trigger_area" index="0"]
shape = SubResource("RectangleShape2D_d78tr")
[editable path="dialog_trigger_area"]