Files
RPG-Test/scenes/base_npc.tscn
2023-03-01 18:57:37 +01:00

117 lines
3.1 KiB
Plaintext

[gd_scene load_steps=14 format=3 uid="uid://brh4u8w48v7po"]
[ext_resource type="Texture2D" uid="uid://boewsqe4b5yxm" path="res://assets/textures/debug/dummy-npc-atlas.png" id="1_feq0g"]
[ext_resource type="PackedScene" uid="uid://bu1xkt4xi58ox" path="res://scenes/dialog_trigger_area.tscn" id="2_cjcdi"]
[sub_resource type="AtlasTexture" id="AtlasTexture_dtvay"]
atlas = ExtResource("1_feq0g")
region = Rect2(0, 0, 59, 90)
[sub_resource type="AtlasTexture" id="AtlasTexture_4vo8e"]
atlas = ExtResource("1_feq0g")
region = Rect2(59, 0, 59, 90)
[sub_resource type="AtlasTexture" id="AtlasTexture_qf4lj"]
atlas = ExtResource("1_feq0g")
region = Rect2(118, 0, 59, 90)
[sub_resource type="AtlasTexture" id="AtlasTexture_ix2cs"]
atlas = ExtResource("1_feq0g")
region = Rect2(177, 0, 59, 90)
[sub_resource type="AtlasTexture" id="AtlasTexture_y6ifs"]
atlas = ExtResource("1_feq0g")
region = Rect2(177, 90, 59, 90)
[sub_resource type="AtlasTexture" id="AtlasTexture_tlb85"]
atlas = ExtResource("1_feq0g")
region = Rect2(0, 90, 59, 90)
[sub_resource type="AtlasTexture" id="AtlasTexture_b18m1"]
atlas = ExtResource("1_feq0g")
region = Rect2(59, 90, 59, 90)
[sub_resource type="AtlasTexture" id="AtlasTexture_5wb27"]
atlas = ExtResource("1_feq0g")
region = Rect2(118, 90, 59, 90)
[sub_resource type="SpriteFrames" id="SpriteFrames_rr6ht"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_dtvay")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_4vo8e")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_dtvay")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_qf4lj")
}],
"loop": true,
"name": &"move_down",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_ix2cs")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_y6ifs")
}],
"loop": true,
"name": &"move_side",
"speed": 4.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_tlb85")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_b18m1")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_tlb85")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_5wb27")
}],
"loop": true,
"name": &"move_up",
"speed": 5.0
}]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_rsgcw"]
radius = 7.99467
height = 55.9998
[sub_resource type="RectangleShape2D" id="RectangleShape2D_sgrqb"]
size = Vector2(54, 71)
[node name="base_npc" type="CharacterBody2D"]
collision_mask = 0
collision_priority = 15.0
[node name="animated_sprite_2d" type="AnimatedSprite2D" parent="."]
sprite_frames = SubResource("SpriteFrames_rr6ht")
animation = &"move_down"
metadata/_edit_lock_ = true
[node name="collision_shape" type="CollisionShape2D" parent="."]
position = Vector2(0, 37)
rotation = 1.57345
shape = SubResource("CapsuleShape2D_rsgcw")
[node name="dialog_trigger_area" parent="." instance=ExtResource("2_cjcdi")]
file = "res://assets/lang/en/dialogue/npcs/villager_normal.json"
title = "Debug NPC"
metadata/_edit_lock_ = true
[node name="collision_shape_2d" parent="dialog_trigger_area" index="0"]
position = Vector2(0, -6.5)
shape = SubResource("RectangleShape2D_sgrqb")
[editable path="dialog_trigger_area"]