GodotCourse/examples/PlatformTemplate/scenes/player.tscn

207 lines
5.6 KiB
Plaintext
Raw Normal View History

2024-07-15 12:00:42 +00:00
[gd_scene load_steps=28 format=3 uid="uid://c00dlfcxocli4"]
[ext_resource type="Script" path="res://scripts/playermovement.gd" id="1_rrp5c"]
[ext_resource type="Texture2D" uid="uid://b2nsy4x6du75k" path="res://assets/Player Idle/Player Idle2 48x48-sheet.png" id="2_lr1nb"]
[ext_resource type="Texture2D" uid="uid://dwet0pba0buvn" path="res://assets/Player Jump/player jump 48x48.png" id="3_8nqpn"]
[ext_resource type="Texture2D" uid="uid://2fx0fypbda7f" path="res://assets/Player Run/player run 48x48.png" id="3_pduqe"]
[sub_resource type="AtlasTexture" id="AtlasTexture_v3hls"]
atlas = ExtResource("2_lr1nb")
region = Rect2(0, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_3k3pl"]
atlas = ExtResource("2_lr1nb")
region = Rect2(48, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_s5bpa"]
atlas = ExtResource("2_lr1nb")
region = Rect2(96, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_y8ggy"]
atlas = ExtResource("2_lr1nb")
region = Rect2(144, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_qtbxx"]
atlas = ExtResource("2_lr1nb")
region = Rect2(192, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_dtyki"]
atlas = ExtResource("2_lr1nb")
region = Rect2(240, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_ffign"]
atlas = ExtResource("2_lr1nb")
region = Rect2(288, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_g2qw3"]
atlas = ExtResource("2_lr1nb")
region = Rect2(336, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_y5klf"]
atlas = ExtResource("2_lr1nb")
region = Rect2(384, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_vka0u"]
atlas = ExtResource("2_lr1nb")
region = Rect2(432, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_r2358"]
atlas = ExtResource("3_8nqpn")
region = Rect2(0, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_mjgsl"]
atlas = ExtResource("3_8nqpn")
region = Rect2(48, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_lvng6"]
atlas = ExtResource("3_8nqpn")
region = Rect2(96, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_dsono"]
atlas = ExtResource("3_pduqe")
region = Rect2(0, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_g1606"]
atlas = ExtResource("3_pduqe")
region = Rect2(48, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_g22wv"]
atlas = ExtResource("3_pduqe")
region = Rect2(96, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_eolqe"]
atlas = ExtResource("3_pduqe")
region = Rect2(144, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_0t01r"]
atlas = ExtResource("3_pduqe")
region = Rect2(192, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_ouhby"]
atlas = ExtResource("3_pduqe")
region = Rect2(240, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_a6ukc"]
atlas = ExtResource("3_pduqe")
region = Rect2(288, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_d4v3u"]
atlas = ExtResource("3_pduqe")
region = Rect2(336, 0, 48, 48)
[sub_resource type="SpriteFrames" id="SpriteFrames_5iuqe"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_v3hls")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_3k3pl")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_s5bpa")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_y8ggy")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_qtbxx")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_dtyki")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ffign")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_g2qw3")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_y5klf")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_vka0u")
}],
"loop": true,
"name": &"idle",
"speed": 10.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_r2358")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_mjgsl")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_lvng6")
}],
"loop": false,
"name": &"jump",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_dsono")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_g1606")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_g22wv")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_eolqe")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_0t01r")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ouhby")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_a6ukc")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_d4v3u")
}],
"loop": true,
"name": &"run",
"speed": 10.0
}]
[sub_resource type="CircleShape2D" id="CircleShape2D_8lwox"]
[node name="CharacterBody2D" type="CharacterBody2D"]
script = ExtResource("1_rrp5c")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
sprite_frames = SubResource("SpriteFrames_5iuqe")
animation = &"idle"
autoplay = "idle"
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(0, 7)
shape = SubResource("CircleShape2D_8lwox")
[node name="RightRaycast" type="RayCast2D" parent="."]
target_position = Vector2(20, 0)
[node name="LeftRaycast" type="RayCast2D" parent="."]
target_position = Vector2(-20, 0)
[node name="Label" type="Label" parent="."]
offset_left = -19.0
offset_top = -30.0
offset_right = 21.0
offset_bottom = -14.0
theme_override_font_sizes/font_size = 11
text = "Idle"
horizontal_alignment = 1
[node name="MarkerRight" type="Node2D" parent="."]
position = Vector2(10, -2)
[node name="MarkerLeft" type="Node2D" parent="."]
position = Vector2(-11, -1)