summaryrefslogtreecommitdiff
path: root/Player.tscn
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2024-09-02 09:56:31 +0200
committerDaniel Weipert <git@mail.dweipert.de>2024-09-02 09:58:28 +0200
commit292dd72d1472e01217e2d75a8ec8af75f21d6d59 (patch)
treedbcce0ed0afc03c5bb7af5188cf76837a77228be /Player.tscn
initial commit
Diffstat (limited to 'Player.tscn')
-rw-r--r--Player.tscn146
1 files changed, 146 insertions, 0 deletions
diff --git a/Player.tscn b/Player.tscn
new file mode 100644
index 0000000..56b6bd9
--- /dev/null
+++ b/Player.tscn
@@ -0,0 +1,146 @@
+[gd_scene load_steps=22 format=3 uid="uid://fe6exyigjb72"]
+
+[ext_resource type="Script" path="res://player.gd" id="1_d2vao"]
+[ext_resource type="Texture2D" uid="uid://tvalc858lt0n" path="res://Assets/Kirby/duck.png" id="1_wgfub"]
+[ext_resource type="Texture2D" uid="uid://gq77eigxyvci" path="res://Assets/Kirby/fall.png" id="2_udm1i"]
+[ext_resource type="Texture2D" uid="uid://c4gyxj3yaqiel" path="res://Assets/Kirby/idle.png" id="3_cldu0"]
+[ext_resource type="Texture2D" uid="uid://kjgx1vhvtkuf" path="res://Assets/Kirby/jump.png" id="4_c4qo5"]
+[ext_resource type="Texture2D" uid="uid://ba2ivfvgaoak" path="res://Assets/Kirby/fly-01.png" id="4_ueynj"]
+[ext_resource type="Texture2D" uid="uid://crmqf762gvqnq" path="res://Assets/Kirby/fly-02.png" id="5_fk1ji"]
+[ext_resource type="Texture2D" uid="uid://chachjxdm83jr" path="res://Assets/Kirby/walk-01.png" id="5_xc0ju"]
+[ext_resource type="Texture2D" uid="uid://ceg3at8pva1da" path="res://Assets/Kirby/walk-02.png" id="6_0igly"]
+[ext_resource type="Texture2D" uid="uid://dvikuk84ldh4l" path="res://Assets/Kirby/inhale-02.png" id="6_bb7r4"]
+[ext_resource type="Texture2D" uid="uid://clk6xca5cfmn0" path="res://Assets/Kirby/walk-03.png" id="7_rh355"]
+[ext_resource type="AudioStream" uid="uid://cib0bm11wfubt" path="res://Assets/Sounds/fall.wav" id="9_t30y2"]
+[ext_resource type="AudioStream" uid="uid://2y0km5fcbw1t" path="res://Assets/Sounds/jump.wav" id="10_gmv3e"]
+[ext_resource type="AudioStream" uid="uid://do315gfb7gp6e" path="res://Assets/Sounds/fly.wav" id="15_wt8kq"]
+[ext_resource type="AudioStream" uid="uid://bcbw5kg2o0de" path="res://Assets/Sounds/exhale.wav" id="16_bnnhu"]
+[ext_resource type="AudioStream" uid="uid://du08pwh5pbxlk" path="res://Assets/Sounds/inhale.wav" id="17_tcnsa"]
+
+[sub_resource type="SpriteFrames" id="SpriteFrames_nb512"]
+animations = [{
+"frames": [{
+"duration": 1.0,
+"texture": ExtResource("1_wgfub")
+}],
+"loop": true,
+"name": &"duck",
+"speed": 5.0
+}, {
+"frames": [{
+"duration": 1.0,
+"texture": ExtResource("2_udm1i")
+}],
+"loop": true,
+"name": &"fall",
+"speed": 5.0
+}, {
+"frames": [{
+"duration": 1.0,
+"texture": ExtResource("4_ueynj")
+}, {
+"duration": 1.0,
+"texture": ExtResource("5_fk1ji")
+}],
+"loop": false,
+"name": &"fly",
+"speed": 5.0
+}, {
+"frames": [{
+"duration": 1.0,
+"texture": ExtResource("3_cldu0")
+}],
+"loop": true,
+"name": &"idle",
+"speed": 5.0
+}, {
+"frames": [{
+"duration": 1.0,
+"texture": ExtResource("6_bb7r4")
+}],
+"loop": true,
+"name": &"inhale",
+"speed": 5.0
+}, {
+"frames": [{
+"duration": 1.0,
+"texture": ExtResource("4_c4qo5")
+}],
+"loop": true,
+"name": &"jump",
+"speed": 5.0
+}, {
+"frames": [{
+"duration": 1.0,
+"texture": ExtResource("5_xc0ju")
+}, {
+"duration": 1.0,
+"texture": ExtResource("6_0igly")
+}, {
+"duration": 1.0,
+"texture": ExtResource("7_rh355")
+}, {
+"duration": 1.0,
+"texture": ExtResource("6_0igly")
+}],
+"loop": true,
+"name": &"walk",
+"speed": 6.0
+}]
+
+[sub_resource type="CircleShape2D" id="CircleShape2D_csxti"]
+radius = 7.0
+
+[sub_resource type="AnimationLibrary" id="AnimationLibrary_7860o"]
+
+[sub_resource type="AnimationNodeStateMachine" id="AnimationNodeStateMachine_nbsua"]
+
+[sub_resource type="AnimationNodeStateMachine" id="AnimationNodeStateMachine_kjick"]
+states/Inhale/node = SubResource("AnimationNodeStateMachine_nbsua")
+states/Inhale/position = Vector2(430, 82)
+
+[node name="Player" type="CharacterBody2D"]
+collision_mask = 16
+script = ExtResource("1_d2vao")
+
+[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
+texture_filter = 1
+sprite_frames = SubResource("SpriteFrames_nb512")
+animation = &"idle"
+
+[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
+shape = SubResource("CircleShape2D_csxti")
+
+[node name="Camera2D" type="Camera2D" parent="."]
+drag_horizontal_enabled = true
+drag_vertical_enabled = true
+
+[node name="SoundFall" type="AudioStreamPlayer2D" parent="."]
+stream = ExtResource("9_t30y2")
+volume_db = -2.0
+
+[node name="SoundJump" type="AudioStreamPlayer2D" parent="."]
+stream = ExtResource("10_gmv3e")
+
+[node name="SoundFly" type="AudioStreamPlayer2D" parent="."]
+stream = ExtResource("15_wt8kq")
+volume_db = -5.0
+
+[node name="SoundExhale" type="AudioStreamPlayer2D" parent="."]
+stream = ExtResource("16_bnnhu")
+
+[node name="SoundInhale" type="AudioStreamPlayer2D" parent="."]
+stream = ExtResource("17_tcnsa")
+
+[node name="CoyoteTimer" type="Timer" parent="."]
+wait_time = 0.1
+one_shot = true
+
+[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
+libraries = {
+"": SubResource("AnimationLibrary_7860o")
+}
+
+[node name="AnimationTree" type="AnimationTree" parent="."]
+tree_root = SubResource("AnimationNodeStateMachine_kjick")
+anim_player = NodePath("../AnimationPlayer")