AugGodotGameCourse/indigogameone/scenes/player.tscn

202 lines
5.5 KiB
Plaintext
Raw Normal View History

[gd_scene load_steps=28 format=3 uid="uid://b06r6vtllw0b7"]
2024-09-10 01:08:24 +00:00
[ext_resource type="Script" path="res://scripts/player.gd" id="1_5gbgu"]
[ext_resource type="Texture2D" uid="uid://b4vx6usqxle4j" path="res://assets/graphics/player/idle/Player Idle 48x48.png" id="2_38vxs"]
[ext_resource type="Texture2D" uid="uid://y5mb7anm4sgh" path="res://assets/graphics/player/jump/player jump 48x48.png" id="3_coupp"]
[ext_resource type="Texture2D" uid="uid://by308sw7sj17r" path="res://assets/graphics/player/run/player run 48x48.png" id="3_mjo1k"]
[sub_resource type="AtlasTexture" id="AtlasTexture_alqpc"]
atlas = ExtResource("2_38vxs")
region = Rect2(0, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_l14j5"]
atlas = ExtResource("2_38vxs")
region = Rect2(48, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_yahyo"]
atlas = ExtResource("2_38vxs")
region = Rect2(96, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_ioiuo"]
atlas = ExtResource("2_38vxs")
region = Rect2(144, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_kwwhi"]
atlas = ExtResource("2_38vxs")
region = Rect2(192, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_dnyv4"]
atlas = ExtResource("2_38vxs")
region = Rect2(240, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_7jb1d"]
atlas = ExtResource("2_38vxs")
region = Rect2(288, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_7juuh"]
atlas = ExtResource("2_38vxs")
region = Rect2(336, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_c1iri"]
atlas = ExtResource("2_38vxs")
region = Rect2(384, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_7cw7d"]
atlas = ExtResource("2_38vxs")
region = Rect2(432, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_onski"]
atlas = ExtResource("3_coupp")
region = Rect2(0, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_njipa"]
atlas = ExtResource("3_coupp")
region = Rect2(48, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_jnruv"]
atlas = ExtResource("3_coupp")
region = Rect2(96, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_etrer"]
atlas = ExtResource("3_mjo1k")
region = Rect2(0, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_j2dlj"]
atlas = ExtResource("3_mjo1k")
region = Rect2(48, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_cuybg"]
atlas = ExtResource("3_mjo1k")
region = Rect2(96, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_1oq7j"]
atlas = ExtResource("3_mjo1k")
region = Rect2(144, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_tw0l5"]
atlas = ExtResource("3_mjo1k")
region = Rect2(192, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_dapjm"]
atlas = ExtResource("3_mjo1k")
region = Rect2(240, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_f7yjm"]
atlas = ExtResource("3_mjo1k")
region = Rect2(288, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_vat2j"]
atlas = ExtResource("3_mjo1k")
region = Rect2(336, 0, 48, 48)
[sub_resource type="SpriteFrames" id="SpriteFrames_nfvt1"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_alqpc")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_l14j5")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_yahyo")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ioiuo")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_kwwhi")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_dnyv4")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_7jb1d")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_7juuh")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_c1iri")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_7cw7d")
}],
"loop": true,
"name": &"idle",
"speed": 15.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_onski")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_njipa")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_jnruv")
}],
"loop": false,
"name": &"jump",
"speed": 9.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_etrer")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_j2dlj")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_cuybg")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_1oq7j")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_tw0l5")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_dapjm")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_f7yjm")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_vat2j")
}],
"loop": true,
"name": &"run",
"speed": 15.0
}]
2024-09-10 01:08:24 +00:00
[sub_resource type="CircleShape2D" id="CircleShape2D_gwwau"]
[node name="CharacterBody2D" type="CharacterBody2D"]
script = ExtResource("1_5gbgu")
metadata/_edit_group_ = true
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
texture_filter = 1
position = Vector2(4, -42)
scale = Vector2(3.20833, 3.20833)
sprite_frames = SubResource("SpriteFrames_nfvt1")
animation = &"jump"
autoplay = "idle"
2024-09-10 01:08:24 +00:00
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_gwwau")
debug_color = Color(0.858824, 0.227451, 0.4, 0.909804)
[node name="RightRay" type="RayCast2D" parent="."]
target_position = Vector2(20, 0)
[node name="LeftRay" type="RayCast2D" parent="."]
target_position = Vector2(-19, 0)
[node name="MarkerRight" type="Node2D" parent="."]
position = Vector2(12, -5)
[node name="MarkerLeft" type="Node2D" parent="."]
position = Vector2(-12, -5)