-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathBullet.tscn
More file actions
29 lines (22 loc) · 917 Bytes
/
Bullet.tscn
File metadata and controls
29 lines (22 loc) · 917 Bytes
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
[gd_scene load_steps=4 format=2]
[ext_resource path="res://bullet.png" type="Texture" id=1]
[ext_resource path="res://Bullet_rigid.gd" type="Script" id=3]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 1.02081, 1.02438 )
[node name="Bullet_Rigid" type="RigidBody2D"]
gravity_scale = 0.0
contacts_reported = 1
contact_monitor = true
script = ExtResource( 3 )
[node name="bullet" type="Sprite" parent="."]
texture = ExtResource( 1 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( -0.0633631, 0.0659924 )
shape = SubResource( 1 )
[node name="TimerBullet" type="Timer" parent="."]
wait_time = 0.9
one_shot = true
autostart = true
[node name="TimerHidden" type="Timer" parent="."]
[connection signal="body_entered" from="." to="." method="_on_Bullet_Rigid_body_entered"]
[connection signal="timeout" from="TimerBullet" to="." method="_on_TimerBullet_timeout"]