Made pause controller to be created on player if it exists
This commit is contained in:
parent
350b9853f2
commit
93aa83dcaa
11 changed files with 129 additions and 17 deletions
|
|
@ -3,7 +3,7 @@
|
|||
[ext_resource type="Script" path="res://scripts/objects/projectile.gd" id="1_6nacn"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_mo2if"]
|
||||
size = Vector2(1, 8)
|
||||
size = Vector2(4, 32)
|
||||
|
||||
[node name="Laser" type="Node2D" node_paths=PackedStringArray("collider")]
|
||||
script = ExtResource("1_6nacn")
|
||||
|
|
@ -11,14 +11,17 @@ speed = 600.0
|
|||
collider = NodePath("Collision")
|
||||
|
||||
[node name="LaserBody" type="Line2D" parent="."]
|
||||
points = PackedVector2Array(0, 0, 8, 0)
|
||||
width = 1.0
|
||||
points = PackedVector2Array(2, 0, 30, 0)
|
||||
width = 4.0
|
||||
begin_cap_mode = 2
|
||||
end_cap_mode = 2
|
||||
round_precision = 4
|
||||
|
||||
[node name="Collision" type="Area2D" parent="."]
|
||||
collision_layer = 4
|
||||
collision_mask = 3
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Collision"]
|
||||
position = Vector2(4, 0)
|
||||
position = Vector2(16, -4.34399e-05)
|
||||
rotation = -1.5708
|
||||
shape = SubResource("RectangleShape2D_mo2if")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue