FlappyBird2024/player.tscn

64 lines
1.5 KiB
Plaintext
Raw Normal View History

2023-05-21 14:53:44 +02:00
[gd_scene load_steps=7 format=3 uid="uid://2675w21gucj3"]
[ext_resource type="Texture2D" uid="uid://d28arg8dquwkq" path="res://gfx/atlas.png" id="1_qyx8v"]
[sub_resource type="AtlasTexture" id="AtlasTexture_j5trn"]
atlas = ExtResource("1_qyx8v")
region = Rect2(56, 969, 56, 51)
[sub_resource type="AtlasTexture" id="AtlasTexture_3d7tp"]
atlas = ExtResource("1_qyx8v")
region = Rect2(0, 969, 56, 51)
[sub_resource type="AtlasTexture" id="AtlasTexture_7gysb"]
atlas = ExtResource("1_qyx8v")
region = Rect2(112, 969, 56, 51)
[sub_resource type="SpriteFrames" id="SpriteFrames_wr8yl"]
animations = [{
"frames": [],
"loop": true,
"name": &"blue",
"speed": 8.0
}, {
"frames": [{
"duration": 0.9,
"texture": SubResource("AtlasTexture_j5trn")
}, {
"duration": 0.9,
"texture": SubResource("AtlasTexture_3d7tp")
}, {
"duration": 0.9,
"texture": SubResource("AtlasTexture_j5trn")
}, {
"duration": 0.9,
"texture": SubResource("AtlasTexture_7gysb")
}],
"loop": true,
"name": &"orange",
"speed": 8.0
}, {
"frames": [],
"loop": true,
"name": &"red",
"speed": 5.0
}]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_h7v4g"]
radius = 11.0
height = 32.0
[node name="Player" type="Area2D"]
position = Vector2(168, 243)
metadata/_edit_group_ = true
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
sprite_frames = SubResource("SpriteFrames_wr8yl")
animation = &"orange"
autoplay = "orange"
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(-5, 0)
rotation = 1.5708
shape = SubResource("CapsuleShape2D_h7v4g")