KieranGodot/august26godotcompkieran/Scenes/Player.tscn

202 lines
5.5 KiB
Plaintext

[gd_scene load_steps=28 format=3 uid="uid://crvsom7i1waff"]
[ext_resource type="Script" path="res://Sripts/player.gd" id="1_jdiv6"]
[ext_resource type="Texture2D" uid="uid://csjeohonmkkov" path="res://Assets/Graphics/Player/Idle/Player Idle 48x48.png" id="2_ow1rs"]
[ext_resource type="Texture2D" uid="uid://4b3eimvxs4xa" path="res://Assets/Graphics/Player/Jump/player jump 48x48.png" id="3_d7uya"]
[ext_resource type="Texture2D" uid="uid://7jk3tlc1nyw2" path="res://Assets/Graphics/Player/Run/player run 48x48.png" id="3_kgjol"]
[sub_resource type="AtlasTexture" id="AtlasTexture_ogmew"]
atlas = ExtResource("2_ow1rs")
region = Rect2(0, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_gket1"]
atlas = ExtResource("2_ow1rs")
region = Rect2(48, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_gsema"]
atlas = ExtResource("2_ow1rs")
region = Rect2(96, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_qpim6"]
atlas = ExtResource("2_ow1rs")
region = Rect2(144, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_w6eh5"]
atlas = ExtResource("2_ow1rs")
region = Rect2(192, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_wftcm"]
atlas = ExtResource("2_ow1rs")
region = Rect2(240, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_3qd2c"]
atlas = ExtResource("2_ow1rs")
region = Rect2(288, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_0ayb1"]
atlas = ExtResource("2_ow1rs")
region = Rect2(336, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_vng5u"]
atlas = ExtResource("2_ow1rs")
region = Rect2(384, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_40r1e"]
atlas = ExtResource("2_ow1rs")
region = Rect2(432, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_83b8o"]
atlas = ExtResource("3_d7uya")
region = Rect2(0, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_snne0"]
atlas = ExtResource("3_d7uya")
region = Rect2(48, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_2am5l"]
atlas = ExtResource("3_d7uya")
region = Rect2(96, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_xvnqx"]
atlas = ExtResource("3_kgjol")
region = Rect2(0, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_80s61"]
atlas = ExtResource("3_kgjol")
region = Rect2(48, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_wv0jk"]
atlas = ExtResource("3_kgjol")
region = Rect2(96, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_td60s"]
atlas = ExtResource("3_kgjol")
region = Rect2(144, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_6vtxt"]
atlas = ExtResource("3_kgjol")
region = Rect2(192, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_plerx"]
atlas = ExtResource("3_kgjol")
region = Rect2(240, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_rqf2p"]
atlas = ExtResource("3_kgjol")
region = Rect2(288, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_jyxx1"]
atlas = ExtResource("3_kgjol")
region = Rect2(336, 0, 48, 48)
[sub_resource type="SpriteFrames" id="SpriteFrames_f8fvt"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_ogmew")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_gket1")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_gsema")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_qpim6")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_w6eh5")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_wftcm")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_3qd2c")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_0ayb1")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_vng5u")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_40r1e")
}],
"loop": true,
"name": &"Idle",
"speed": 15.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_83b8o")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_snne0")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_2am5l")
}],
"loop": false,
"name": &"Jump",
"speed": 10.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_xvnqx")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_80s61")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_wv0jk")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_td60s")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_6vtxt")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_plerx")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_rqf2p")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_jyxx1")
}],
"loop": true,
"name": &"Run",
"speed": 15.0
}]
[sub_resource type="CircleShape2D" id="CircleShape2D_t5iiu"]
[node name="CharacterBody2D" type="CharacterBody2D"]
script = ExtResource("1_jdiv6")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
texture_filter = 1
position = Vector2(0, -6)
sprite_frames = SubResource("SpriteFrames_f8fvt")
animation = &"Jump"
autoplay = "Idle"
frame = 1
frame_progress = 1.0
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_t5iiu")
debug_color = Color(0, 1, 0, 0.662745)
[node name="RightRay" type="RayCast2D" parent="."]
target_position = Vector2(25, 0)
[node name="LeftRay" type="RayCast2D" parent="."]
target_position = Vector2(-25, 0)
[node name="MarkerRight" type="Node2D" parent="."]
position = Vector2(14, -6)
[node name="MarkerLeft" type="Node2D" parent="."]
position = Vector2(-14, -6)