89 lines
3 KiB
Text
89 lines
3 KiB
Text
[gd_scene load_steps=11 format=3 uid="uid://cqm5besqgsb7x"]
|
|
|
|
[ext_resource type="Script" uid="uid://dpsocqnk0e6le" path="res://scenes/player/player.gd" id="1_dovo2"]
|
|
[ext_resource type="SpriteFrames" uid="uid://6v5nyv2wo47g" path="res://scenes/player/assets/yukotsuki.aseprite" id="2_dovo2"]
|
|
[ext_resource type="Script" uid="uid://diths5s8vd7lr" path="res://classes/state_machine/state_machine.gd" id="2_lvxji"]
|
|
[ext_resource type="Script" uid="uid://cl6snimpmxcvu" path="res://scenes/player/states/player_idle.gd" id="3_p47bc"]
|
|
[ext_resource type="Script" uid="uid://bg5fu1ildsdnq" path="res://scenes/player/states/player_walking.gd" id="4_p47bc"]
|
|
[ext_resource type="Texture2D" uid="uid://5mm8pi5i0yal" path="res://scenes/player/assets/pointlight_texture.aseprite" id="5_75vfm"]
|
|
|
|
[sub_resource type="Animation" id="Animation_75vfm"]
|
|
resource_name = "default"
|
|
loop_mode = 1
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("PointLight2D:offset:y")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.5),
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
"update": 1,
|
|
"values": [-14.0, -15.0]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_0owmy"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("PointLight2D:offset:y")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [0.0]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_qek5x"]
|
|
_data = {
|
|
&"RESET": SubResource("Animation_0owmy"),
|
|
&"default": SubResource("Animation_75vfm")
|
|
}
|
|
|
|
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_gmlin"]
|
|
radius = 6.0
|
|
height = 14.0
|
|
|
|
[node name="Player" type="CharacterBody2D"]
|
|
z_index = 1
|
|
collision_mask = 2
|
|
motion_mode = 1
|
|
script = ExtResource("1_dovo2")
|
|
max_speed = 85.0
|
|
|
|
[node name="PlayerStateMachine" type="Node" parent="." node_paths=PackedStringArray("initial_state")]
|
|
script = ExtResource("2_lvxji")
|
|
initial_state = NodePath("Idle")
|
|
metadata/_custom_type_script = "uid://diths5s8vd7lr"
|
|
|
|
[node name="Idle" type="Node" parent="PlayerStateMachine"]
|
|
script = ExtResource("3_p47bc")
|
|
metadata/_custom_type_script = "uid://bebe1y51hwns8"
|
|
|
|
[node name="Walking" type="Node" parent="PlayerStateMachine"]
|
|
script = ExtResource("4_p47bc")
|
|
metadata/_custom_type_script = "uid://bebe1y51hwns8"
|
|
|
|
[node name="PointLight2D" type="PointLight2D" parent="."]
|
|
enabled = false
|
|
energy = 0.0
|
|
texture = ExtResource("5_75vfm")
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
libraries = {
|
|
&"": SubResource("AnimationLibrary_qek5x")
|
|
}
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
|
position = Vector2(0, -16)
|
|
sprite_frames = ExtResource("2_dovo2")
|
|
animation = &"idle"
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
position = Vector2(0, -7)
|
|
shape = SubResource("CapsuleShape2D_gmlin")
|
|
debug_color = Color(0.28459275, 0.61933166, 0.3529686, 0.41960785)
|