flappy-bird/Player.tscn

33 lines
818 B
Text
Raw Normal View History

2020-01-14 22:20:17 +01:00
[gd_scene load_steps=5 format=2]
[ext_resource path="res://Player.gd" type="Script" id=1]
[ext_resource path="res://icon.png" type="Texture" id=2]
[sub_resource type="SpriteFrames" id=1]
animations = [ {
"frames": [ ExtResource( 2 ) ],
"loop": true,
"name": "default",
"speed": 5.0
} ]
[sub_resource type="CapsuleShape2D" id=2]
radius = 12.8837
height = 4.07484
[node name="Player" type="Area2D"]
2020-01-15 14:43:08 +01:00
position = Vector2( 0.581787, 0 )
2020-01-14 22:20:17 +01:00
script = ExtResource( 1 )
2020-01-15 14:43:08 +01:00
__meta__ = {
"_edit_group_": true
}
2020-01-14 22:20:17 +01:00
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
scale = Vector2( 0.498334, 0.531778 )
frames = SubResource( 1 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
rotation = 1.5708
shape = SubResource( 2 )
2020-01-15 14:43:08 +01:00
[connection signal="body_entered" from="." to="." method="_on_Player_body_entered"]