GodotCourse/scenes/character.tscn

283 lines
7.7 KiB
Plaintext
Raw Permalink Normal View History

2024-08-13 01:10:32 +00:00
[gd_scene load_steps=39 format=3 uid="uid://go4yc8hfo1gq"]
2024-07-29 22:14:19 +00:00
2024-08-15 00:51:57 +00:00
[ext_resource type="Script" path="res://scripts/characterBody.gd" id="1_ymy68"]
2024-08-13 01:10:32 +00:00
[ext_resource type="Texture2D" uid="uid://714a2jbwrdbp" path="res://graphics/playerDeath/Player Death 64x64.png" id="2_gg54n"]
2024-08-15 00:51:57 +00:00
[ext_resource type="Texture2D" uid="uid://c0iiaebonyhh0" path="res://graphics/playerIdle/Player Idle 48x48.png" id="3_2dt21"]
[ext_resource type="Texture2D" uid="uid://xgoqfqmvorcx" path="res://graphics/playerJump/player jump 48x48.png" id="4_vwyst"]
[ext_resource type="Texture2D" uid="uid://vn23qn3f0dvc" path="res://graphics/playerRun/player run 48x48.png" id="5_qblux"]
2024-07-29 22:14:19 +00:00
2024-08-13 01:10:32 +00:00
[sub_resource type="AtlasTexture" id="AtlasTexture_eawrl"]
atlas = ExtResource("2_gg54n")
region = Rect2(0, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_8uxgh"]
atlas = ExtResource("2_gg54n")
region = Rect2(48, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_2vbai"]
atlas = ExtResource("2_gg54n")
region = Rect2(96, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_ekybb"]
atlas = ExtResource("2_gg54n")
region = Rect2(144, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_aq2t0"]
atlas = ExtResource("2_gg54n")
region = Rect2(192, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_7gx0v"]
atlas = ExtResource("2_gg54n")
region = Rect2(240, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_lqk3s"]
atlas = ExtResource("2_gg54n")
region = Rect2(288, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_4pmeq"]
atlas = ExtResource("2_gg54n")
region = Rect2(336, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_l14r3"]
atlas = ExtResource("2_gg54n")
region = Rect2(384, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_hw4pw"]
atlas = ExtResource("2_gg54n")
region = Rect2(432, 0, 48, 48)
2024-07-29 22:14:19 +00:00
[sub_resource type="AtlasTexture" id="AtlasTexture_htcu2"]
2024-08-15 00:51:57 +00:00
atlas = ExtResource("3_2dt21")
2024-07-29 22:14:19 +00:00
region = Rect2(0, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_ontj7"]
2024-08-15 00:51:57 +00:00
atlas = ExtResource("3_2dt21")
2024-07-29 22:14:19 +00:00
region = Rect2(48, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_gv7tn"]
2024-08-15 00:51:57 +00:00
atlas = ExtResource("3_2dt21")
2024-07-29 22:14:19 +00:00
region = Rect2(96, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_f4ltu"]
2024-08-15 00:51:57 +00:00
atlas = ExtResource("3_2dt21")
2024-07-29 22:14:19 +00:00
region = Rect2(144, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_m44rj"]
2024-08-15 00:51:57 +00:00
atlas = ExtResource("3_2dt21")
2024-07-29 22:14:19 +00:00
region = Rect2(192, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_mvrul"]
2024-08-15 00:51:57 +00:00
atlas = ExtResource("3_2dt21")
2024-07-29 22:14:19 +00:00
region = Rect2(240, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_cq1wt"]
2024-08-15 00:51:57 +00:00
atlas = ExtResource("3_2dt21")
2024-07-29 22:14:19 +00:00
region = Rect2(288, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_5mc5v"]
2024-08-15 00:51:57 +00:00
atlas = ExtResource("3_2dt21")
2024-07-29 22:14:19 +00:00
region = Rect2(336, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_yclfw"]
2024-08-15 00:51:57 +00:00
atlas = ExtResource("3_2dt21")
2024-07-29 22:14:19 +00:00
region = Rect2(384, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_rgyuc"]
2024-08-15 00:51:57 +00:00
atlas = ExtResource("3_2dt21")
2024-07-29 22:14:19 +00:00
region = Rect2(432, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_pbehb"]
2024-08-15 00:51:57 +00:00
atlas = ExtResource("4_vwyst")
2024-07-29 22:14:19 +00:00
region = Rect2(0, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_o4ud8"]
2024-08-15 00:51:57 +00:00
atlas = ExtResource("4_vwyst")
2024-07-29 22:14:19 +00:00
region = Rect2(48, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_ivggc"]
2024-08-15 00:51:57 +00:00
atlas = ExtResource("4_vwyst")
2024-07-29 22:14:19 +00:00
region = Rect2(96, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_d6cbg"]
2024-08-15 00:51:57 +00:00
atlas = ExtResource("5_qblux")
2024-07-29 22:14:19 +00:00
region = Rect2(0, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_cyg7w"]
2024-08-15 00:51:57 +00:00
atlas = ExtResource("5_qblux")
2024-07-29 22:14:19 +00:00
region = Rect2(48, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_lejph"]
2024-08-15 00:51:57 +00:00
atlas = ExtResource("5_qblux")
2024-07-29 22:14:19 +00:00
region = Rect2(96, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_cu62b"]
2024-08-15 00:51:57 +00:00
atlas = ExtResource("5_qblux")
2024-07-29 22:14:19 +00:00
region = Rect2(144, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_vio7d"]
2024-08-15 00:51:57 +00:00
atlas = ExtResource("5_qblux")
2024-07-29 22:14:19 +00:00
region = Rect2(192, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_t6raw"]
2024-08-15 00:51:57 +00:00
atlas = ExtResource("5_qblux")
2024-07-29 22:14:19 +00:00
region = Rect2(240, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_srqae"]
2024-08-15 00:51:57 +00:00
atlas = ExtResource("5_qblux")
2024-07-29 22:14:19 +00:00
region = Rect2(288, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_dfgfp"]
2024-08-15 00:51:57 +00:00
atlas = ExtResource("5_qblux")
2024-07-29 22:14:19 +00:00
region = Rect2(336, 0, 48, 48)
[sub_resource type="SpriteFrames" id="SpriteFrames_a6t6h"]
animations = [{
"frames": [{
"duration": 1.0,
2024-08-13 01:10:32 +00:00
"texture": SubResource("AtlasTexture_eawrl")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_8uxgh")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_2vbai")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ekybb")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_aq2t0")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_7gx0v")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_lqk3s")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_4pmeq")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_l14r3")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_hw4pw")
}],
"loop": false,
"name": &"death",
"speed": 15.0
}, {
"frames": [{
"duration": 1.0,
2024-07-29 22:14:19 +00:00
"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")
}],
"loop": true,
"name": &"idle",
"speed": 15.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_pbehb")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_o4ud8")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ivggc")
}],
"loop": false,
"name": &"jump",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_d6cbg")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_cyg7w")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_lejph")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_cu62b")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_vio7d")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_t6raw")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_srqae")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_dfgfp")
}],
"loop": true,
"name": &"run",
"speed": 15.0
}]
[sub_resource type="CircleShape2D" id="CircleShape2D_ubfw4"]
radius = 13.0384
2024-08-15 01:21:00 +00:00
[node name="CharacterBody2D" type="CharacterBody2D" groups=["player", "sprite"]]
2024-07-29 22:14:19 +00:00
position = Vector2(-1, 0)
2024-08-15 00:51:57 +00:00
script = ExtResource("1_ymy68")
2024-07-29 22:14:19 +00:00
JUMP_VELOCITY = -500.0
metadata/_edit_group_ = true
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
texture_filter = 1
sprite_frames = SubResource("SpriteFrames_a6t6h")
animation = &"idle"
2024-07-29 22:14:19 +00:00
autoplay = "idle"
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(0, 3)
shape = SubResource("CircleShape2D_ubfw4")
[node name="RightRay" type="RayCast2D" parent="."]
position = Vector2(0, 3)
target_position = Vector2(29, 0)
[node name="LeftRay" type="RayCast2D" parent="."]
position = Vector2(0, 3)
target_position = Vector2(-29, 0)
[node name="MarkerRight" type="Node2D" parent="."]
position = Vector2(16, -6)
[node name="MarkerLeft" type="Node2D" parent="."]
position = Vector2(-16, -6)
[connection signal="animation_finished" from="AnimatedSprite2D" to="." method="onAnimationFinished"]