fuzzyworld

godot-shooter / change-html-template / files / Bullet.tscn

Branch change-html-template · default branch · all branches

Bullet.tscn

934 B · history · blame

1[gd_scene load_steps=4 format=2]
2
3[ext_resource path="res://Bullet.gd" type="Script" id=1]
4[ext_resource path="res://assets/kenney_simple-space/PNG/Default/effect_yellow.png" type="Texture" id=2]
5
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 )
12script = ExtResource( 1 )
13
14[node name="Sprite" type="Sprite" parent="."]
15modulate = Color( 1, 0, 0, 1 )
16rotation = -0.00485545
17scale = Vector2( 0.104587, 0.478173 )
18texture = ExtResource( 2 )
19
20[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
21visible = false
22position = Vector2( 0, -0.5 )
23shape = SubResource( 1 )
24
25[node name="Timer" type="Timer" parent="."]
26one_shot = true
27autostart = true
28
29[connection signal="body_entered" from="." to="." method="on_bullet_body_entered"]
30[connection signal="timeout" from="Timer" to="." method="on_expiration"]