| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326 |
- [gd_scene load_steps=42 format=3 uid="uid://dxcvuxgvdsx7"]
- [ext_resource type="Script" uid="uid://cedfqqodwcl2a" path="res://scripts/npc.gd" id="1_abqhh"]
- [ext_resource type="Texture2D" uid="uid://c4eg1isjbtsp" path="res://assets/characters/character_2.png" id="1_nh2m4"]
- [sub_resource type="RectangleShape2D" id="RectangleShape2D_abqhh"]
- size = Vector2(37, 58)
- [sub_resource type="AtlasTexture" id="AtlasTexture_abqhh"]
- atlas = ExtResource("1_nh2m4")
- region = Rect2(0, 595, 48, 80)
- [sub_resource type="AtlasTexture" id="AtlasTexture_rv78h"]
- atlas = ExtResource("1_nh2m4")
- region = Rect2(48, 595, 48, 80)
- [sub_resource type="AtlasTexture" id="AtlasTexture_7n8xq"]
- atlas = ExtResource("1_nh2m4")
- region = Rect2(96, 595, 48, 80)
- [sub_resource type="AtlasTexture" id="AtlasTexture_4wlns"]
- atlas = ExtResource("1_nh2m4")
- region = Rect2(144, 595, 48, 80)
- [sub_resource type="AtlasTexture" id="AtlasTexture_tl2vt"]
- atlas = ExtResource("1_nh2m4")
- region = Rect2(192, 595, 48, 80)
- [sub_resource type="AtlasTexture" id="AtlasTexture_hwkja"]
- atlas = ExtResource("1_nh2m4")
- region = Rect2(240, 595, 48, 80)
- [sub_resource type="AtlasTexture" id="AtlasTexture_0tygy"]
- atlas = ExtResource("1_nh2m4")
- region = Rect2(288, 595, 48, 80)
- [sub_resource type="AtlasTexture" id="AtlasTexture_sptji"]
- atlas = ExtResource("1_nh2m4")
- region = Rect2(336, 595, 48, 80)
- [sub_resource type="AtlasTexture" id="AtlasTexture_v4e37"]
- atlas = ExtResource("1_nh2m4")
- region = Rect2(384, 595, 48, 80)
- [sub_resource type="AtlasTexture" id="AtlasTexture_1h837"]
- atlas = ExtResource("1_nh2m4")
- region = Rect2(432, 595, 48, 80)
- [sub_resource type="AtlasTexture" id="AtlasTexture_gl1un"]
- atlas = ExtResource("1_nh2m4")
- region = Rect2(480, 595, 48, 80)
- [sub_resource type="AtlasTexture" id="AtlasTexture_wuru7"]
- atlas = ExtResource("1_nh2m4")
- region = Rect2(528, 595, 48, 80)
- [sub_resource type="AtlasTexture" id="AtlasTexture_nyaq3"]
- atlas = ExtResource("1_nh2m4")
- region = Rect2(864, 792, 48, 70)
- [sub_resource type="AtlasTexture" id="AtlasTexture_yf2ql"]
- atlas = ExtResource("1_nh2m4")
- region = Rect2(912, 792, 48, 70)
- [sub_resource type="AtlasTexture" id="AtlasTexture_8gbmn"]
- atlas = ExtResource("1_nh2m4")
- region = Rect2(960, 792, 48, 70)
- [sub_resource type="AtlasTexture" id="AtlasTexture_pvipr"]
- atlas = ExtResource("1_nh2m4")
- region = Rect2(1008, 792, 48, 70)
- [sub_resource type="AtlasTexture" id="AtlasTexture_n0klm"]
- atlas = ExtResource("1_nh2m4")
- region = Rect2(1056, 792, 48, 70)
- [sub_resource type="AtlasTexture" id="AtlasTexture_u2tho"]
- atlas = ExtResource("1_nh2m4")
- region = Rect2(1104, 792, 48, 70)
- [sub_resource type="AtlasTexture" id="AtlasTexture_ca6vw"]
- atlas = ExtResource("1_nh2m4")
- region = Rect2(576, 792, 48, 70)
- [sub_resource type="AtlasTexture" id="AtlasTexture_t8u8m"]
- atlas = ExtResource("1_nh2m4")
- region = Rect2(624, 792, 48, 70)
- [sub_resource type="AtlasTexture" id="AtlasTexture_d56e8"]
- atlas = ExtResource("1_nh2m4")
- region = Rect2(672, 792, 48, 70)
- [sub_resource type="AtlasTexture" id="AtlasTexture_ewlk4"]
- atlas = ExtResource("1_nh2m4")
- region = Rect2(720, 792, 48, 70)
- [sub_resource type="AtlasTexture" id="AtlasTexture_bw2c7"]
- atlas = ExtResource("1_nh2m4")
- region = Rect2(768, 792, 48, 70)
- [sub_resource type="AtlasTexture" id="AtlasTexture_gc4mq"]
- atlas = ExtResource("1_nh2m4")
- region = Rect2(816, 792, 48, 70)
- [sub_resource type="AtlasTexture" id="AtlasTexture_2gr28"]
- atlas = ExtResource("1_nh2m4")
- region = Rect2(0, 792, 48, 70)
- [sub_resource type="AtlasTexture" id="AtlasTexture_tkdcp"]
- atlas = ExtResource("1_nh2m4")
- region = Rect2(48, 792, 48, 70)
- [sub_resource type="AtlasTexture" id="AtlasTexture_15fp6"]
- atlas = ExtResource("1_nh2m4")
- region = Rect2(96, 792, 48, 70)
- [sub_resource type="AtlasTexture" id="AtlasTexture_bll4x"]
- atlas = ExtResource("1_nh2m4")
- region = Rect2(144, 792, 48, 70)
- [sub_resource type="AtlasTexture" id="AtlasTexture_46t2e"]
- atlas = ExtResource("1_nh2m4")
- region = Rect2(192, 792, 48, 70)
- [sub_resource type="AtlasTexture" id="AtlasTexture_u8ld7"]
- atlas = ExtResource("1_nh2m4")
- region = Rect2(240, 792, 48, 70)
- [sub_resource type="AtlasTexture" id="AtlasTexture_jwdfw"]
- atlas = ExtResource("1_nh2m4")
- region = Rect2(288, 792, 48, 70)
- [sub_resource type="AtlasTexture" id="AtlasTexture_y1ua7"]
- atlas = ExtResource("1_nh2m4")
- region = Rect2(336, 792, 48, 70)
- [sub_resource type="AtlasTexture" id="AtlasTexture_8hjb1"]
- atlas = ExtResource("1_nh2m4")
- region = Rect2(384, 792, 48, 70)
- [sub_resource type="AtlasTexture" id="AtlasTexture_ub7sa"]
- atlas = ExtResource("1_nh2m4")
- region = Rect2(432, 792, 48, 70)
- [sub_resource type="AtlasTexture" id="AtlasTexture_fdkk8"]
- atlas = ExtResource("1_nh2m4")
- region = Rect2(480, 792, 48, 70)
- [sub_resource type="AtlasTexture" id="AtlasTexture_iwn7c"]
- atlas = ExtResource("1_nh2m4")
- region = Rect2(528, 792, 48, 70)
- [sub_resource type="SpriteFrames" id="SpriteFrames_nyaq3"]
- animations = [{
- "frames": [{
- "duration": 1.0,
- "texture": SubResource("AtlasTexture_abqhh")
- }, {
- "duration": 1.0,
- "texture": SubResource("AtlasTexture_rv78h")
- }, {
- "duration": 1.0,
- "texture": SubResource("AtlasTexture_7n8xq")
- }, {
- "duration": 1.0,
- "texture": SubResource("AtlasTexture_4wlns")
- }, {
- "duration": 1.0,
- "texture": SubResource("AtlasTexture_tl2vt")
- }, {
- "duration": 1.0,
- "texture": SubResource("AtlasTexture_hwkja")
- }, {
- "duration": 1.0,
- "texture": SubResource("AtlasTexture_0tygy")
- }, {
- "duration": 1.0,
- "texture": SubResource("AtlasTexture_sptji")
- }, {
- "duration": 1.0,
- "texture": SubResource("AtlasTexture_v4e37")
- }, {
- "duration": 1.0,
- "texture": SubResource("AtlasTexture_1h837")
- }, {
- "duration": 1.0,
- "texture": SubResource("AtlasTexture_gl1un")
- }, {
- "duration": 1.0,
- "texture": SubResource("AtlasTexture_wuru7")
- }],
- "loop": true,
- "name": &"idle",
- "speed": 5.0
- }, {
- "frames": [{
- "duration": 1.0,
- "texture": SubResource("AtlasTexture_nyaq3")
- }, {
- "duration": 1.0,
- "texture": SubResource("AtlasTexture_yf2ql")
- }, {
- "duration": 1.0,
- "texture": SubResource("AtlasTexture_8gbmn")
- }, {
- "duration": 1.0,
- "texture": SubResource("AtlasTexture_pvipr")
- }, {
- "duration": 1.0,
- "texture": SubResource("AtlasTexture_n0klm")
- }, {
- "duration": 1.0,
- "texture": SubResource("AtlasTexture_u2tho")
- }],
- "loop": true,
- "name": &"walk_down",
- "speed": 12.0
- }, {
- "frames": [{
- "duration": 1.0,
- "texture": SubResource("AtlasTexture_ca6vw")
- }, {
- "duration": 1.0,
- "texture": SubResource("AtlasTexture_t8u8m")
- }, {
- "duration": 1.0,
- "texture": SubResource("AtlasTexture_d56e8")
- }, {
- "duration": 1.0,
- "texture": SubResource("AtlasTexture_ewlk4")
- }, {
- "duration": 1.0,
- "texture": SubResource("AtlasTexture_bw2c7")
- }, {
- "duration": 1.0,
- "texture": SubResource("AtlasTexture_gc4mq")
- }],
- "loop": true,
- "name": &"walk_left",
- "speed": 12.0
- }, {
- "frames": [{
- "duration": 1.0,
- "texture": SubResource("AtlasTexture_2gr28")
- }, {
- "duration": 1.0,
- "texture": SubResource("AtlasTexture_tkdcp")
- }, {
- "duration": 1.0,
- "texture": SubResource("AtlasTexture_15fp6")
- }, {
- "duration": 1.0,
- "texture": SubResource("AtlasTexture_bll4x")
- }, {
- "duration": 1.0,
- "texture": SubResource("AtlasTexture_46t2e")
- }, {
- "duration": 1.0,
- "texture": SubResource("AtlasTexture_u8ld7")
- }],
- "loop": true,
- "name": &"walk_right",
- "speed": 12.0
- }, {
- "frames": [{
- "duration": 1.0,
- "texture": SubResource("AtlasTexture_jwdfw")
- }, {
- "duration": 1.0,
- "texture": SubResource("AtlasTexture_y1ua7")
- }, {
- "duration": 1.0,
- "texture": SubResource("AtlasTexture_8hjb1")
- }, {
- "duration": 1.0,
- "texture": SubResource("AtlasTexture_ub7sa")
- }, {
- "duration": 1.0,
- "texture": SubResource("AtlasTexture_fdkk8")
- }, {
- "duration": 1.0,
- "texture": SubResource("AtlasTexture_iwn7c")
- }],
- "loop": true,
- "name": &"walk_up",
- "speed": 12.0
- }]
- [sub_resource type="RectangleShape2D" id="RectangleShape2D_nh2m4"]
- size = Vector2(65, 86)
- [node name="NPC" type="CharacterBody2D"]
- script = ExtResource("1_abqhh")
- [node name="CollisionShape2D" type="CollisionShape2D" parent="."]
- position = Vector2(0.5, 1)
- shape = SubResource("RectangleShape2D_abqhh")
- [node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
- sprite_frames = SubResource("SpriteFrames_nyaq3")
- animation = &"walk_up"
- autoplay = "idle"
- [node name="InteractionArea" type="Area2D" parent="."]
- [node name="CollisionShape2D" type="CollisionShape2D" parent="InteractionArea"]
- position = Vector2(-0.5, 0)
- shape = SubResource("RectangleShape2D_nh2m4")
- [node name="NameLabel" type="Label" parent="."]
- offset_left = -20.0
- offset_top = -58.0
- offset_right = 20.0
- offset_bottom = -35.0
- theme_override_colors/font_color = Color(1, 1, 0.3764706, 1)
- text = "张三"
- horizontal_alignment = 1
- [node name="DialogueLabel" type="Label" parent="."]
- visible = false
- offset_left = 29.0
- offset_top = -29.0
- offset_right = 122.0
- offset_bottom = 30.0
- theme_override_font_sizes/font_size = 14
- autowrap_mode = 2
|