fuzzyworld

godot-shooter / files / weapons / Bullet.tscn

Bullet.tscn

Blame: the commit that last changed each line · file · history

b856550a 2023-10-30 Pavel Safronov1[gd_scene load_steps=4 format=2]
2
16938031 2023-11-17 Pavel Safronov3[ext_resource path="res://weapons/Bullet.gd" type="Script" id=1]
96324aab 2023-11-01 Pavel Safronov4[ext_resource path="res://assets/kenney_simple-space/PNG/Default/effect_yellow.png" type="Texture" id=2]
b856550a 2023-10-30 Pavel Safronov5
6[sub_resource type="RectangleShape2D" id=1]
7extents = Vector2( 4.50004, 16 )
8
9[node name="Bullet" type="Area2D"]
10modulate = Color( 1, 0, 0, 1 )
11position = Vector2( 0, -1 )
9c3981ff 2023-11-14 Pavel Safronov12collision_layer = 8
0f8974b8 2023-12-01 Pavel Safronov13collision_mask = 3
b856550a 2023-10-30 Pavel Safronov14script = ExtResource( 1 )
15
16[node name="Sprite" type="Sprite" parent="."]
96324aab 2023-11-01 Pavel Safronov17modulate = Color( 1, 0, 0, 1 )
b856550a 2023-10-30 Pavel Safronov18rotation = -0.00485545
19scale = Vector2( 0.104587, 0.478173 )
20texture = ExtResource( 2 )
21
22[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
23visible = false
24position = Vector2( 0, -0.5 )
25shape = SubResource( 1 )
26
614e7fb1 2023-10-31 Pavel Safronov27[node name="Timer" type="Timer" parent="."]
28one_shot = true
29autostart = true
30
b856550a 2023-10-30 Pavel Safronov31[connection signal="body_entered" from="." to="." method="on_bullet_body_entered"]
614e7fb1 2023-10-31 Pavel Safronov32[connection signal="timeout" from="Timer" to="." method="on_expiration"]