-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbullet.tscn
34 lines (27 loc) · 1.23 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
[gd_scene load_steps=5 format=3 uid="uid://dcg5srmy5n4vj"]
[ext_resource type="Texture2D" uid="uid://cn4ieg61uchw3" path="res://art/PNG/Retina/bulletDark1_outline.png" id="1_5tlbi"]
[ext_resource type="Script" path="res://bullet.gd" id="2_7dwxv"]
[ext_resource type="PackedScene" uid="uid://5uh8i567dd4j" path="res://explosion.tscn" id="3_5oxnr"]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_xf1nx"]
height = 26.0
[node name="bullet" type="RigidBody2D"]
collision_layer = 4
collision_mask = 3
max_contacts_reported = 1
contact_monitor = true
linear_velocity = Vector2(2.08189e-12, 2.08189e-12)
script = ExtResource("2_7dwxv")
[node name="Sprite2D" type="Sprite2D" parent="."]
position = Vector2(2, 0)
rotation = 1.5708
texture = ExtResource("1_5tlbi")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(2.1684e-19, 2.1684e-19)
rotation = 1.5708
shape = SubResource("CapsuleShape2D_xf1nx")
[node name="explosion" parent="." instance=ExtResource("3_5oxnr")]
position = Vector2(1.0842e-19, 1.0842e-19)
scale = Vector2(0.4, 0.4)
frame_progress = 0.0
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
[connection signal="body_shape_entered" from="." to="." method="_on_body_shape_entered"]