GodotProject/scenes/character.tscn

283 lines
7.7 KiB
Plaintext
Raw Permalink Normal View History

[gd_scene load_steps=39 format=3 uid="uid://go4yc8hfo1gq"]
2024-07-23 01:20:27 +00:00
[ext_resource type="Script" path="res://scripts/CharacterBody2D.gd" id="1_x87yo"]
[ext_resource type="Texture2D" uid="uid://c0iiaebonyhh0" path="res://graphics/Player Idle/Player Idle 48x48.png" id="2_hyqch"]
[ext_resource type="Texture2D" uid="uid://da5ex8b8yeswn" path="res://graphics/Player Death/Player Death 64x64.png" id="2_jtwbt"]
[ext_resource type="Texture2D" uid="uid://xgoqfqmvorcx" path="res://graphics/Player Jump/player jump 48x48.png" id="3_mp84c"]
[ext_resource type="Texture2D" uid="uid://vn23qn3f0dvc" path="res://graphics/Player Run/player run 48x48.png" id="4_bok64"]
2024-07-23 01:20:27 +00:00
[sub_resource type="AtlasTexture" id="AtlasTexture_qm3ke"]
atlas = ExtResource("2_jtwbt")
2024-07-23 01:20:27 +00:00
region = Rect2(0, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_482sd"]
atlas = ExtResource("2_jtwbt")
2024-07-23 01:20:27 +00:00
region = Rect2(48, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_mewyd"]
atlas = ExtResource("2_jtwbt")
2024-07-23 01:20:27 +00:00
region = Rect2(96, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_3fmye"]
atlas = ExtResource("2_jtwbt")
2024-07-23 01:20:27 +00:00
region = Rect2(144, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_3to10"]
atlas = ExtResource("2_jtwbt")
2024-07-23 01:20:27 +00:00
region = Rect2(192, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_eax7s"]
atlas = ExtResource("2_jtwbt")
2024-07-23 01:20:27 +00:00
region = Rect2(240, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_fte8r"]
atlas = ExtResource("2_jtwbt")
2024-07-23 01:20:27 +00:00
region = Rect2(288, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_7raye"]
atlas = ExtResource("2_jtwbt")
2024-07-23 01:20:27 +00:00
region = Rect2(336, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_o0lsx"]
atlas = ExtResource("2_jtwbt")
2024-07-23 01:20:27 +00:00
region = Rect2(384, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_4s6yc"]
atlas = ExtResource("2_jtwbt")
2024-07-23 01:20:27 +00:00
region = Rect2(432, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_htcu2"]
atlas = ExtResource("2_hyqch")
2024-07-23 01:20:27 +00:00
region = Rect2(0, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_ontj7"]
atlas = ExtResource("2_hyqch")
2024-07-23 01:20:27 +00:00
region = Rect2(48, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_gv7tn"]
atlas = ExtResource("2_hyqch")
2024-07-23 01:20:27 +00:00
region = Rect2(96, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_f4ltu"]
atlas = ExtResource("2_hyqch")
region = Rect2(144, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_m44rj"]
atlas = ExtResource("2_hyqch")
region = Rect2(192, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_mvrul"]
atlas = ExtResource("2_hyqch")
region = Rect2(240, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_cq1wt"]
atlas = ExtResource("2_hyqch")
region = Rect2(288, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_5mc5v"]
atlas = ExtResource("2_hyqch")
region = Rect2(336, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_yclfw"]
atlas = ExtResource("2_hyqch")
region = Rect2(384, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_rgyuc"]
atlas = ExtResource("2_hyqch")
region = Rect2(432, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_pbehb"]
atlas = ExtResource("3_mp84c")
2024-07-23 01:20:27 +00:00
region = Rect2(0, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_o4ud8"]
atlas = ExtResource("3_mp84c")
2024-07-23 01:20:27 +00:00
region = Rect2(48, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_ivggc"]
atlas = ExtResource("3_mp84c")
2024-07-23 01:20:27 +00:00
region = Rect2(96, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_d6cbg"]
atlas = ExtResource("4_bok64")
region = Rect2(0, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_cyg7w"]
atlas = ExtResource("4_bok64")
region = Rect2(48, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_lejph"]
atlas = ExtResource("4_bok64")
region = Rect2(96, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_cu62b"]
atlas = ExtResource("4_bok64")
2024-07-23 01:20:27 +00:00
region = Rect2(144, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_vio7d"]
atlas = ExtResource("4_bok64")
2024-07-23 01:20:27 +00:00
region = Rect2(192, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_t6raw"]
atlas = ExtResource("4_bok64")
2024-07-23 01:20:27 +00:00
region = Rect2(240, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_srqae"]
atlas = ExtResource("4_bok64")
2024-07-23 01:20:27 +00:00
region = Rect2(288, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_dfgfp"]
atlas = ExtResource("4_bok64")
2024-07-23 01:20:27 +00:00
region = Rect2(336, 0, 48, 48)
[sub_resource type="SpriteFrames" id="SpriteFrames_a6t6h"]
2024-07-23 01:20:27 +00:00
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_qm3ke")
2024-07-23 01:20:27 +00:00
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_482sd")
2024-07-23 01:20:27 +00:00
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_mewyd")
2024-07-23 01:20:27 +00:00
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_3fmye")
2024-07-23 01:20:27 +00:00
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_3to10")
2024-07-23 01:20:27 +00:00
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_eax7s")
2024-07-23 01:20:27 +00:00
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_fte8r")
2024-07-23 01:20:27 +00:00
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_7raye")
2024-07-23 01:20:27 +00:00
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_o0lsx")
2024-07-23 01:20:27 +00:00
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_4s6yc")
}],
"loop": false,
"name": &"death",
"speed": 12.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_htcu2")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ontj7")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_gv7tn")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_f4ltu")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_m44rj")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_mvrul")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_cq1wt")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_5mc5v")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_yclfw")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_rgyuc")
2024-07-23 01:20:27 +00:00
}],
"loop": true,
"name": &"idle",
2024-07-23 01:20:27 +00:00
"speed": 15.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_pbehb")
2024-07-23 01:20:27 +00:00
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_o4ud8")
2024-07-23 01:20:27 +00:00
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ivggc")
2024-07-23 01:20:27 +00:00
}],
"loop": false,
"name": &"jump",
2024-07-23 01:20:27 +00:00
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_d6cbg")
2024-07-23 01:20:27 +00:00
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_cyg7w")
2024-07-23 01:20:27 +00:00
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_lejph")
2024-07-23 01:20:27 +00:00
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_cu62b")
2024-07-23 01:20:27 +00:00
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_vio7d")
2024-07-23 01:20:27 +00:00
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_t6raw")
2024-07-23 01:20:27 +00:00
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_srqae")
2024-07-23 01:20:27 +00:00
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_dfgfp")
2024-07-23 01:20:27 +00:00
}],
"loop": true,
"name": &"run",
2024-07-23 01:20:27 +00:00
"speed": 15.0
}]
[sub_resource type="CircleShape2D" id="CircleShape2D_ubfw4"]
radius = 13.0384
[node name="CharacterBody2D" type="CharacterBody2D"]
position = Vector2(-1, 0)
script = ExtResource("1_x87yo")
JUMP_VELOCITY = -500.0
metadata/_edit_group_ = true
2024-07-23 01:20:27 +00:00
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
texture_filter = 1
sprite_frames = SubResource("SpriteFrames_a6t6h")
animation = &"run"
autoplay = "idle"
2024-07-23 01:20:27 +00:00
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(0, 3)
2024-07-23 01:20:27 +00:00
shape = SubResource("CircleShape2D_ubfw4")
[node name="RightRay" type="RayCast2D" parent="."]
position = Vector2(0, 3)
target_position = Vector2(29, 0)
2024-07-23 01:20:27 +00:00
[node name="LeftRay" type="RayCast2D" parent="."]
position = Vector2(0, 3)
target_position = Vector2(-29, 0)
2024-07-23 01:20:27 +00:00
[node name="MarkerRight" type="Node2D" parent="."]
position = Vector2(16, -6)
[node name="MarkerLeft" type="Node2D" parent="."]
position = Vector2(-16, -6)
2024-08-20 01:18:41 +00:00
[connection signal="animation_finished" from="AnimatedSprite2D" to="." method="_on_animation_finished"]