platformerNavigation/Characters/Player.tscn

83 lines
2.9 KiB
Plaintext
Raw Normal View History

2024-03-11 12:41:54 +00:00
[gd_scene load_steps=15 format=3 uid="uid://bqkkr282ri5u2"]
[ext_resource type="Texture2D" uid="uid://b1jerlmu0fp2c" path="res://Sprites/Base pack/Player/p1_stand.png" id="1_1sijd"]
[ext_resource type="Script" path="res://Characters/Movement.gd" id="1_81rbw"]
[ext_resource type="Texture2D" uid="uid://d1ywy6d18wmsm" path="res://Sprites/Base pack/Player/p1_jump.png" id="2_y4wvh"]
[ext_resource type="Texture2D" uid="uid://bigwlp8cud68a" path="res://Sprites/Base pack/Player/p1_walk/PNG/p1_walk01.png" id="3_770w6"]
[ext_resource type="Texture2D" uid="uid://b2cqw3woam708" path="res://Sprites/Base pack/Player/p1_walk/PNG/p1_walk02.png" id="4_q2d3d"]
[ext_resource type="Texture2D" uid="uid://b611l8fvgljfs" path="res://Sprites/Base pack/Player/p1_walk/PNG/p1_walk03.png" id="5_hnf8a"]
[ext_resource type="Texture2D" uid="uid://b3eoqc48hgxix" path="res://Sprites/Base pack/Player/p1_walk/PNG/p1_walk04.png" id="6_sdjwh"]
[ext_resource type="Texture2D" uid="uid://bl38ou8pb3jk1" path="res://Sprites/Base pack/Player/p1_walk/PNG/p1_walk05.png" id="7_tr8pv"]
[ext_resource type="Texture2D" uid="uid://cgx0s032e83u0" path="res://Sprites/Base pack/Player/p1_walk/PNG/p1_walk06.png" id="8_rndrl"]
[ext_resource type="Texture2D" uid="uid://dpfdy8g6p706q" path="res://Sprites/Base pack/Player/p1_walk/PNG/p1_walk07.png" id="9_djnid"]
[ext_resource type="Script" path="res://Characters/Animator.gd" id="11_thosa"]
[ext_resource type="Script" path="res://Characters/Controller.gd" id="12_1k5oy"]
[sub_resource type="SpriteFrames" id="SpriteFrames_dc0ly"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("1_1sijd")
}],
"loop": true,
"name": &"Idle",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("2_y4wvh")
}],
"loop": true,
"name": &"Jump",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("4_q2d3d")
}, {
"duration": 1.0,
"texture": ExtResource("5_hnf8a")
}, {
"duration": 1.0,
"texture": ExtResource("6_sdjwh")
}, {
"duration": 1.0,
"texture": ExtResource("7_tr8pv")
}, {
"duration": 1.0,
"texture": ExtResource("9_djnid")
}, {
"duration": 1.0,
"texture": ExtResource("8_rndrl")
}, {
"duration": 1.0,
"texture": ExtResource("3_770w6")
}],
"loop": true,
"name": &"WalkRight",
"speed": 5.0
}]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_sktd2"]
size = Vector2(67, 94)
[node name="Player" type="CharacterBody2D"]
script = ExtResource("1_81rbw")
[node name="Sprite" type="AnimatedSprite2D" parent="."]
sprite_frames = SubResource("SpriteFrames_dc0ly")
animation = &"WalkRight"
[node name="Collider" type="CollisionShape2D" parent="."]
position = Vector2(2.5, -1)
shape = SubResource("RectangleShape2D_sktd2")
[node name="Camera" type="Camera2D" parent="."]
zoom = Vector2(0.8, 0.8)
[node name="Animator" type="Node" parent="."]
script = ExtResource("11_thosa")
[node name="Controller" type="Node" parent="."]
script = ExtResource("12_1k5oy")