-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathBullet.tscn
46 lines (37 loc) · 1.47 KB
/
Bullet.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
38
39
40
41
42
43
44
45
46
[gd_scene load_steps=9 format=2]
[ext_resource path="res://assets/graphics/bullet/flame.png" type="Texture" id=1]
[ext_resource path="res://assets/graphics/bullet/flame1.png" type="Texture" id=2]
[ext_resource path="res://assets/graphics/bullet/flame2.png" type="Texture" id=3]
[ext_resource path="res://assets/graphics/bullet/bullet.png" type="Texture" id=4]
[ext_resource path="res://assets/audio/rocket/Rocket.wav" type="AudioStream" id=5]
[ext_resource path="res://Bullet.gdns" type="Script" id=6]
[sub_resource type="SpriteFrames" id=1]
animations = [ {
"frames": [ ExtResource( 2 ), ExtResource( 3 ), ExtResource( 1 ) ],
"loop": true,
"name": "MissleFlame",
"speed": 5.0
} ]
[sub_resource type="RectangleShape2D" id=2]
extents = Vector2( 23, 12 )
[node name="BulletRoot" type="Node2D"]
script = ExtResource( 6 )
[node name="Sprite" type="Sprite" parent="."]
texture = ExtResource( 4 )
[node name="AnimatedSprite" type="AnimatedSprite" parent="Sprite"]
position = Vector2( 0.176773, 0 )
z_index = -1
frames = SubResource( 1 )
animation = "MissleFlame"
frame = 1
playing = true
offset = Vector2( -25, 0 )
[node name="Area2D" type="Area2D" parent="."]
collision_layer = 9
collision_mask = 4
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
shape = SubResource( 2 )
[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource( 5 )
autoplay = true
[connection signal="area_entered" from="Area2D" to="." method="_on_area2d_area_entered"]