-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbird.tscn
37 lines (29 loc) · 1.09 KB
/
bird.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
[gd_scene load_steps=8 format=2]
[ext_resource path="res://frame-1.png" type="Texture" id=1]
[ext_resource path="res://frame-4.png" type="Texture" id=2]
[ext_resource path="res://frame-3.png" type="Texture" id=3]
[ext_resource path="res://frame-2.png" type="Texture" id=4]
[ext_resource path="res://bird.gd" type="Script" id=5]
[sub_resource type="CircleShape2D" id=2]
radius = 49.0102
[sub_resource type="SpriteFrames" id=1]
animations = [ {
"frames": [ ExtResource( 1 ), ExtResource( 4 ), ExtResource( 3 ), ExtResource( 2 ) ],
"loop": true,
"name": "flying",
"speed": 5.0
} ]
[node name="Node2D" type="KinematicBody2D"]
script = ExtResource( 5 )
__meta__ = {
"_edit_group_": true
}
[node name="Area2D" type="Area2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
shape = SubResource( 2 )
[node name="bird" type="AnimatedSprite" parent="Area2D/CollisionShape2D"]
position = Vector2( 1, 10 )
scale = Vector2( 0.0718954, 0.0718954 )
frames = SubResource( 1 )
animation = "flying"
[connection signal="body_entered" from="Area2D" to="." method="_on_Area2D_body_entered"]