-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathXwingBlast.tscn
32 lines (24 loc) · 986 Bytes
/
XwingBlast.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
[gd_scene load_steps=5 format=2]
[ext_resource path="res://rawAssets/xwing_blast.png" type="Texture" id=1]
[ext_resource path="res://XwingBlast.gd" type="Script" id=2]
[sub_resource type="SpriteFrames" id=1]
animations = [ {
"frames": [ ExtResource( 1 ) ],
"loop": true,
"name": "default",
"speed": 5.0
} ]
[sub_resource type="RectangleShape2D" id=2]
extents = Vector2( 5, 50.5 )
[node name="XwingBlast" type="RigidBody2D"]
collision_layer = 4
collision_mask = 4
script = ExtResource( 2 )
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
frames = SubResource( 1 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( 0, 0.5 )
shape = SubResource( 2 )
[node name="VisibilityNotifier2D" type="VisibilityNotifier2D" parent="."]
[connection signal="body_entered" from="." to="." method="_on_XwingBlast_body_entered"]
[connection signal="screen_exited" from="VisibilityNotifier2D" to="." method="_on_VisibilityNotifier2D_screen_exited"]