50 lines
1.5 KiB
Text
50 lines
1.5 KiB
Text
[gd_scene load_steps=8 format=3 uid="uid://p4ok7pbb7jks"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://cg2pfy0xiqc2n" path="res://assets/images/bird/1.png" id="1_bfb63"]
|
|
[ext_resource type="Script" path="res://scenes/bird/bird.gd" id="1_qkdre"]
|
|
[ext_resource type="Texture2D" uid="uid://bcsmsauyx5snh" path="res://assets/images/bird/traurig.png" id="2_vjjeb"]
|
|
[ext_resource type="Texture2D" uid="uid://db8a4y650lxxq" path="res://assets/images/bird/2.png" id="4_yix81"]
|
|
[ext_resource type="AudioStream" uid="uid://3ubywe0tisu" path="res://assets/sounds/jump.wav" id="5_bp6ee"]
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_lt608"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": ExtResource("2_vjjeb")
|
|
}],
|
|
"loop": true,
|
|
"name": &"die",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": ExtResource("1_bfb63")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("4_yix81")
|
|
}],
|
|
"loop": true,
|
|
"name": &"fly",
|
|
"speed": 3.0
|
|
}]
|
|
|
|
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_er0y6"]
|
|
radius = 23.0
|
|
height = 68.0
|
|
|
|
[node name="bird" type="CharacterBody2D"]
|
|
script = ExtResource("1_qkdre")
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
|
scale = Vector2(4, 4)
|
|
sprite_frames = SubResource("SpriteFrames_lt608")
|
|
animation = &"fly"
|
|
frame_progress = 0.779322
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
rotation = 1.5708
|
|
shape = SubResource("CapsuleShape2D_er0y6")
|
|
|
|
[node name="Jump" type="AudioStreamPlayer" parent="."]
|
|
stream = ExtResource("5_bp6ee")
|
|
bus = &"Effects"
|