-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbullet.tscn
33 lines (25 loc) · 923 Bytes
/
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
[gd_scene load_steps=4 format=2]
[ext_resource path="res://colored_tilemap.png" type="Texture" id=1]
[ext_resource path="res://bullet.gd" type="Script" id=2]
[sub_resource type="CapsuleShape2D" id=3]
radius = 0.4
height = 0.6
[node name="bullet" type="Node2D" groups=["kill"]]
position = Vector2( 0, -50 )
scale = Vector2( 0.85, 0.85 )
script = ExtResource( 2 )
[node name="Sprite" type="Sprite" parent="."]
rotation = 3.14159
scale = Vector2( 0.5, 0.5 )
texture = ExtResource( 1 )
region_enabled = true
region_rect = Rect2( 126, 9, 8, 8 )
[node name="Area2D" type="Area2D" parent="." groups=["kill"]]
position = Vector2( 0, 0.775 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D" groups=["kill"]]
shape = SubResource( 3 )
[node name="Timer" type="Timer" parent="."]
wait_time = 5.0
one_shot = true
autostart = true
[connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]