124 lines
4.1 KiB
Plaintext
124 lines
4.1 KiB
Plaintext
[gd_scene load_steps=21 format=3 uid="uid://brhc07imuholv"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://87gegwimvax2" path="res://assets/test_player.png" id="1_0ushe"]
|
|
[ext_resource type="Script" path="res://player/player.gd" id="1_x227h"]
|
|
[ext_resource type="Texture2D" uid="uid://dn6r0pyadv8ah" path="res://assets/idle-1.png" id="2_6w7jv"]
|
|
[ext_resource type="Script" path="res://player/looking.gd" id="3_n7yd4"]
|
|
[ext_resource type="Texture2D" uid="uid://cj1qn8wk1oicx" path="res://assets/idle-2.png" id="3_sv1xb"]
|
|
[ext_resource type="Texture2D" uid="uid://dvsb8vc8f86w1" path="res://assets/idle-3.png" id="4_1fo7r"]
|
|
[ext_resource type="Texture2D" uid="uid://dcjmkr3lhxwi5" path="res://assets/arrow.tres" id="4_c2t2l"]
|
|
[ext_resource type="Texture2D" uid="uid://d3vp3c8nqktx7" path="res://assets/run-1.png" id="5_00etc"]
|
|
[ext_resource type="Script" path="res://player/rope.gd" id="5_thjoo"]
|
|
[ext_resource type="Texture2D" uid="uid://brwxhphgmui7h" path="res://assets/idle-4.png" id="5_y7yb1"]
|
|
[ext_resource type="Texture2D" uid="uid://dmsx3wyah7tqv" path="res://assets/run-2.png" id="6_fq4sj"]
|
|
[ext_resource type="Texture2D" uid="uid://besblp1nasfcg" path="res://assets/idle-5.png" id="6_rcurq"]
|
|
[ext_resource type="Texture2D" uid="uid://d1g75ao0kljjq" path="res://assets/mid_air.png" id="7_8p4j7"]
|
|
[ext_resource type="Texture2D" uid="uid://dekab4yvffotr" path="res://assets/run-3.png" id="7_gyyvx"]
|
|
[ext_resource type="Texture2D" uid="uid://ca8fxmbredrie" path="res://assets/run-4.png" id="8_0s8qb"]
|
|
[ext_resource type="Texture2D" uid="uid://cyfnxnbpgw3ig" path="res://assets/run-5.png" id="9_k0qre"]
|
|
[ext_resource type="Texture2D" uid="uid://bkaop26r76o40" path="res://assets/swing.png" id="12_dxoth"]
|
|
[ext_resource type="Shape2D" uid="uid://bgprpaxew08jq" path="res://assets/normal_shape.tres" id="14_fhcn0"]
|
|
[ext_resource type="PackedScene" uid="uid://iuh6ib27bgq7" path="res://player/player_audio.tscn" id="18_708qa"]
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_1bpu4"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": ExtResource("2_6w7jv")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("3_sv1xb")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("4_1fo7r")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("5_y7yb1")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("6_rcurq")
|
|
}],
|
|
"loop": true,
|
|
"name": &"idle",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": ExtResource("7_8p4j7")
|
|
}],
|
|
"loop": true,
|
|
"name": &"mid_air",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": ExtResource("5_00etc")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("6_fq4sj")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("7_gyyvx")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("8_0s8qb")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("9_k0qre")
|
|
}],
|
|
"loop": true,
|
|
"name": &"run",
|
|
"speed": 10.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": ExtResource("12_dxoth")
|
|
}],
|
|
"loop": true,
|
|
"name": &"swing",
|
|
"speed": 5.0
|
|
}]
|
|
|
|
[node name="Node2D" type="Node2D"]
|
|
|
|
[node name="Player" type="CharacterBody2D" parent="."]
|
|
unique_name_in_owner = true
|
|
collision_mask = 7
|
|
script = ExtResource("1_x227h")
|
|
SWING_SWAY = 250.0
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="Player"]
|
|
scale = Vector2(0.0729065, 0.0729065)
|
|
sprite_frames = SubResource("SpriteFrames_1bpu4")
|
|
animation = &"idle"
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="Player"]
|
|
visible = false
|
|
scale = Vector2(0.25, 0.25)
|
|
texture = ExtResource("1_0ushe")
|
|
|
|
[node name="Camera2D" type="Camera2D" parent="Player"]
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Player"]
|
|
position = Vector2(-1.5, -0.5)
|
|
shape = ExtResource("14_fhcn0")
|
|
|
|
[node name="RayCast2D" type="RayCast2D" parent="Player"]
|
|
target_position = Vector2(1e+06, 0)
|
|
collision_mask = 6
|
|
collide_with_areas = true
|
|
script = ExtResource("3_n7yd4")
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="Player/RayCast2D"]
|
|
visible = false
|
|
position = Vector2(83, 0)
|
|
scale = Vector2(0.266667, 0.266667)
|
|
texture = ExtResource("4_c2t2l")
|
|
|
|
[node name="PlayerAudio" parent="Player" instance=ExtResource("18_708qa")]
|
|
unique_name_in_owner = true
|
|
|
|
[node name="Rope" type="Node2D" parent="."]
|
|
unique_name_in_owner = true
|
|
script = ExtResource("5_thjoo")
|