JanuaryGodotGame/januaryproject/scenes/player.tscn

316 lines
8.7 KiB
Plaintext
Raw Permalink Normal View History

2025-02-11 02:12:59 +00:00
[gd_scene load_steps=44 format=3 uid="uid://dcbk086hhrn7y"]
2025-01-14 00:29:58 +00:00
[ext_resource type="Script" path="res://scripts/charactercontroller.gd" id="1_6alft"]
2025-02-11 02:12:59 +00:00
[ext_resource type="Texture2D" uid="uid://brk4npndc5woq" path="res://assets/graphics/player/death/Player Death 64x64.png" id="2_hk34k"]
2025-01-21 01:43:55 +00:00
[ext_resource type="Texture2D" uid="uid://c8esv4rqrll0u" path="res://assets/graphics/player/idle/Player Idle 48x48.png" id="2_itql4"]
2025-02-11 02:12:59 +00:00
[ext_resource type="Texture2D" uid="uid://yqw4w6dfvdkw" path="res://assets/graphics/player/hurt/Player Hurt 48x48.png" id="3_3i7wk"]
2025-01-21 01:43:55 +00:00
[ext_resource type="Texture2D" uid="uid://cpksf8fvm4k26" path="res://assets/graphics/player/jump/player jump 48x48.png" id="3_fjlo4"]
[ext_resource type="Texture2D" uid="uid://lum1fe47ggoy" path="res://assets/graphics/player/run/player run 48x48.png" id="3_fp3hq"]
2025-01-14 00:29:58 +00:00
[sub_resource type="CircleShape2D" id="CircleShape2D_qrixx"]
2025-02-11 02:12:59 +00:00
[sub_resource type="AtlasTexture" id="AtlasTexture_nobr7"]
atlas = ExtResource("2_hk34k")
region = Rect2(0, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_uycsx"]
atlas = ExtResource("2_hk34k")
region = Rect2(48, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_ytgcw"]
atlas = ExtResource("2_hk34k")
region = Rect2(96, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_60hx1"]
atlas = ExtResource("2_hk34k")
region = Rect2(144, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_podt1"]
atlas = ExtResource("2_hk34k")
region = Rect2(192, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_vlehs"]
atlas = ExtResource("2_hk34k")
region = Rect2(240, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_brhlx"]
atlas = ExtResource("2_hk34k")
region = Rect2(288, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_3ui1j"]
atlas = ExtResource("2_hk34k")
region = Rect2(336, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_kvxru"]
atlas = ExtResource("2_hk34k")
region = Rect2(384, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_uqe8x"]
atlas = ExtResource("2_hk34k")
region = Rect2(432, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_fva2s"]
atlas = ExtResource("3_3i7wk")
region = Rect2(0, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_crb4x"]
atlas = ExtResource("3_3i7wk")
region = Rect2(48, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_3g2wg"]
atlas = ExtResource("3_3i7wk")
region = Rect2(96, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_cacvb"]
atlas = ExtResource("3_3i7wk")
region = Rect2(144, 0, 48, 48)
2025-01-21 01:43:55 +00:00
[sub_resource type="AtlasTexture" id="AtlasTexture_xei83"]
atlas = ExtResource("2_itql4")
region = Rect2(0, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_0rt17"]
atlas = ExtResource("2_itql4")
region = Rect2(48, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_sud8s"]
atlas = ExtResource("2_itql4")
region = Rect2(96, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_l40ca"]
atlas = ExtResource("2_itql4")
region = Rect2(144, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_fccip"]
atlas = ExtResource("2_itql4")
region = Rect2(192, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_fsk16"]
atlas = ExtResource("2_itql4")
region = Rect2(240, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_ub2tx"]
atlas = ExtResource("2_itql4")
region = Rect2(288, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_7c3ch"]
atlas = ExtResource("2_itql4")
region = Rect2(336, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_yr10o"]
atlas = ExtResource("2_itql4")
region = Rect2(384, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_xw5gp"]
atlas = ExtResource("2_itql4")
region = Rect2(432, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_4x1vb"]
atlas = ExtResource("3_fjlo4")
region = Rect2(0, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_secem"]
atlas = ExtResource("3_fjlo4")
region = Rect2(48, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_gwif0"]
atlas = ExtResource("3_fjlo4")
region = Rect2(96, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_5c5x4"]
atlas = ExtResource("3_fp3hq")
region = Rect2(0, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_12spb"]
atlas = ExtResource("3_fp3hq")
region = Rect2(48, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_atg7s"]
atlas = ExtResource("3_fp3hq")
region = Rect2(96, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_xrqff"]
atlas = ExtResource("3_fp3hq")
region = Rect2(144, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_exuqk"]
atlas = ExtResource("3_fp3hq")
region = Rect2(192, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_1g4qy"]
atlas = ExtResource("3_fp3hq")
region = Rect2(240, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_6po63"]
atlas = ExtResource("3_fp3hq")
region = Rect2(288, 0, 48, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_epwr5"]
atlas = ExtResource("3_fp3hq")
region = Rect2(336, 0, 48, 48)
[sub_resource type="SpriteFrames" id="SpriteFrames_yi1g3"]
animations = [{
"frames": [{
"duration": 1.0,
2025-02-11 02:12:59 +00:00
"texture": SubResource("AtlasTexture_nobr7")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_uycsx")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ytgcw")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_60hx1")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_podt1")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_vlehs")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_brhlx")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_3ui1j")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_kvxru")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_uqe8x")
}],
"loop": false,
"name": &"death",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_fva2s")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_crb4x")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_3g2wg")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_cacvb")
}],
"loop": false,
"name": &"hurt",
"speed": 12.0
}, {
"frames": [{
"duration": 1.0,
2025-01-21 01:43:55 +00:00
"texture": SubResource("AtlasTexture_xei83")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_0rt17")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_sud8s")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_l40ca")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_fccip")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_fsk16")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ub2tx")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_7c3ch")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_yr10o")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_xw5gp")
}],
"loop": true,
"name": &"idle",
"speed": 12.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_4x1vb")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_secem")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_gwif0")
}],
"loop": false,
"name": &"jump",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_5c5x4")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_12spb")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_atg7s")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_xrqff")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_exuqk")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_1g4qy")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_6po63")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_epwr5")
}],
"loop": true,
"name": &"run",
"speed": 12.0
}]
2025-01-14 01:58:50 +00:00
[node name="CharacterBody2D" type="CharacterBody2D" groups=["player"]]
2025-01-14 00:29:58 +00:00
script = ExtResource("1_6alft")
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_qrixx")
debug_color = Color(0.345561, 0.615334, 0.230675, 0.42)
[node name="RightRay" type="RayCast2D" parent="."]
target_position = Vector2(18, 0)
[node name="LeftRay" type="RayCast2D" parent="."]
target_position = Vector2(-19, 0)
2025-01-14 01:58:50 +00:00
[node name="RightTarget" type="Node2D" parent="."]
position = Vector2(10, -5)
[node name="LeftTarget" type="Node2D" parent="."]
position = Vector2(-10, -5)
2025-01-21 01:43:55 +00:00
[node name="Camera2D" type="Camera2D" parent="."]
offset = Vector2(0, -50)
2025-01-21 01:43:55 +00:00
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
texture_filter = 1
2025-01-27 20:47:50 +00:00
position = Vector2(0, -7)
2025-01-21 01:43:55 +00:00
sprite_frames = SubResource("SpriteFrames_yi1g3")
2025-02-11 02:12:59 +00:00
animation = &"death"
2025-01-21 01:43:55 +00:00
autoplay = "jump"
2025-02-11 02:12:59 +00:00
[connection signal="animation_finished" from="AnimatedSprite2D" to="." method="_on_animation_finished"]