212 lines
6.1 KiB
Plaintext
212 lines
6.1 KiB
Plaintext
[gd_scene format=3 uid="uid://5viursrnvdyf"]
|
|
|
|
[ext_resource type="Script" uid="uid://duilaa5lwqeup" path="res://Scenes/Player/player.gd" id="1_a3d8c"]
|
|
[ext_resource type="Texture2D" uid="uid://cjbvc07lh4x1b" path="res://Ninja Adventure - Asset Pack/Actor/Characters/KnightGold/SeparateAnim/Walk.png" id="2_a3d8c"]
|
|
[ext_resource type="Texture2D" uid="uid://6dmy1j0t5mqy" path="res://Ninja Adventure - Asset Pack/Items/Scroll/ScrollEmpty.png" id="3_xpcdj"]
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_a3d8c"]
|
|
atlas = ExtResource("2_a3d8c")
|
|
region = Rect2(0, 0, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_74mp2"]
|
|
atlas = ExtResource("2_a3d8c")
|
|
region = Rect2(0, 16, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_oikmp"]
|
|
atlas = ExtResource("2_a3d8c")
|
|
region = Rect2(0, 32, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_06tpx"]
|
|
atlas = ExtResource("2_a3d8c")
|
|
region = Rect2(0, 48, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_xpcdj"]
|
|
atlas = ExtResource("2_a3d8c")
|
|
region = Rect2(32, 0, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_mtuoh"]
|
|
atlas = ExtResource("2_a3d8c")
|
|
region = Rect2(32, 16, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_htcer"]
|
|
atlas = ExtResource("2_a3d8c")
|
|
region = Rect2(32, 32, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_dd0ac"]
|
|
atlas = ExtResource("2_a3d8c")
|
|
region = Rect2(32, 48, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_0u5uq"]
|
|
atlas = ExtResource("2_a3d8c")
|
|
region = Rect2(48, 0, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_jlvik"]
|
|
atlas = ExtResource("2_a3d8c")
|
|
region = Rect2(48, 16, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_gk6dx"]
|
|
atlas = ExtResource("2_a3d8c")
|
|
region = Rect2(48, 32, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_jhyir"]
|
|
atlas = ExtResource("2_a3d8c")
|
|
region = Rect2(48, 48, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_7g0yx"]
|
|
atlas = ExtResource("2_a3d8c")
|
|
region = Rect2(16, 0, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_dey5f"]
|
|
atlas = ExtResource("2_a3d8c")
|
|
region = Rect2(16, 16, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_r5xpd"]
|
|
atlas = ExtResource("2_a3d8c")
|
|
region = Rect2(16, 32, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_ks1b7"]
|
|
atlas = ExtResource("2_a3d8c")
|
|
region = Rect2(16, 48, 16, 16)
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_bqpwv"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_a3d8c")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_74mp2")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_oikmp")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_06tpx")
|
|
}],
|
|
"loop": 1,
|
|
"name": &"move_down",
|
|
"speed": 6.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_xpcdj")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_mtuoh")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_htcer")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_dd0ac")
|
|
}],
|
|
"loop": 1,
|
|
"name": &"move_left",
|
|
"speed": 6.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_0u5uq")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_jlvik")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_gk6dx")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_jhyir")
|
|
}],
|
|
"loop": 1,
|
|
"name": &"move_right",
|
|
"speed": 6.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_7g0yx")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_dey5f")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_r5xpd")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_ks1b7")
|
|
}],
|
|
"loop": 1,
|
|
"name": &"move_up",
|
|
"speed": 6.0
|
|
}]
|
|
|
|
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_bqpwv"]
|
|
radius = 5.0
|
|
height = 10.0
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_chgu2"]
|
|
radius = 4.0
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_chgu2"]
|
|
size = Vector2(8, 8)
|
|
|
|
[sub_resource type="LabelSettings" id="LabelSettings_chgu2"]
|
|
font_size = 48
|
|
|
|
[node name="CharacterBody2D" type="CharacterBody2D" unique_id=1991398375]
|
|
collision_mask = 7
|
|
motion_mode = 1
|
|
script = ExtResource("1_a3d8c")
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="." unique_id=721334358]
|
|
sprite_frames = SubResource("SpriteFrames_bqpwv")
|
|
animation = &"move_down"
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=129222135]
|
|
position = Vector2(0, 3)
|
|
shape = SubResource("CapsuleShape2D_bqpwv")
|
|
|
|
[node name="HitBoxArea2D" type="Area2D" parent="." unique_id=1052547818]
|
|
collision_layer = 2
|
|
collision_mask = 16
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="HitBoxArea2D" unique_id=206980179]
|
|
position = Vector2(0, 2)
|
|
shape = SubResource("CircleShape2D_chgu2")
|
|
debug_color = Color(0.99152297, 0, 0.27048782, 0.41960785)
|
|
|
|
[node name="InteractArea2D" type="Area2D" parent="." unique_id=145023444]
|
|
collision_layer = 2
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="InteractArea2D" unique_id=775673729]
|
|
shape = SubResource("RectangleShape2D_chgu2")
|
|
debug_color = Color(0.9427947, 0.09120729, 0.5535774, 0.41960785)
|
|
|
|
[node name="CanvasLayer" type="CanvasLayer" parent="." unique_id=1672000946]
|
|
|
|
[node name="Panel" type="Panel" parent="CanvasLayer" unique_id=1717998937]
|
|
offset_left = 50.0
|
|
offset_top = 52.0
|
|
offset_right = 264.0
|
|
offset_bottom = 125.0
|
|
|
|
[node name="Label" type="Label" parent="CanvasLayer/Panel" unique_id=1669846200]
|
|
layout_mode = 0
|
|
offset_left = 78.0
|
|
offset_top = 2.0
|
|
offset_right = 118.0
|
|
offset_bottom = 69.0
|
|
text = "0"
|
|
label_settings = SubResource("LabelSettings_chgu2")
|
|
|
|
[node name="TextureRect" type="TextureRect" parent="CanvasLayer/Panel" unique_id=1105594124]
|
|
layout_mode = 0
|
|
offset_left = 9.0
|
|
offset_top = 8.0
|
|
offset_right = 63.0
|
|
offset_bottom = 62.0
|
|
texture = ExtResource("3_xpcdj")
|
|
|
|
[connection signal="body_entered" from="HitBoxArea2D" to="." method="_on_hit_box_area_2d_body_entered"]
|
|
[connection signal="body_entered" from="InteractArea2D" to="." method="_on_area_2d_body_entered"]
|
|
[connection signal="body_exited" from="InteractArea2D" to="." method="_on_area_2d_body_exited"]
|