mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-19 21:03:48 +00:00
Assigned weapon to player
This commit is contained in:
parent
7839e5616d
commit
0601e826e9
1 changed files with 2 additions and 1 deletions
|
|
@ -142,7 +142,7 @@ radius = 17.2627
|
||||||
[sub_resource type="CircleShape2D" id="CircleShape2D_e6woi"]
|
[sub_resource type="CircleShape2D" id="CircleShape2D_e6woi"]
|
||||||
radius = 1.41421
|
radius = 1.41421
|
||||||
|
|
||||||
[node name="Player" type="CharacterBody2D" node_paths=PackedStringArray("Muzzle") groups=["Destroyable", "player"]]
|
[node name="Player" type="CharacterBody2D" node_paths=PackedStringArray("Muzzle", "EquippedWeapon") groups=["Destroyable", "player"]]
|
||||||
collision_layer = 2
|
collision_layer = 2
|
||||||
collision_mask = 99
|
collision_mask = 99
|
||||||
script = ExtResource("1_m27vu")
|
script = ExtResource("1_m27vu")
|
||||||
|
|
@ -152,6 +152,7 @@ SelectorScene = ExtResource("3_8wt6s")
|
||||||
GameOverScene = "res://Scenes/GameOver.tscn"
|
GameOverScene = "res://Scenes/GameOver.tscn"
|
||||||
Muzzle = NodePath("Muzzle")
|
Muzzle = NodePath("Muzzle")
|
||||||
Health = 32.0
|
Health = 32.0
|
||||||
|
EquippedWeapon = NodePath("Weapon")
|
||||||
metadata/_edit_group_ = true
|
metadata/_edit_group_ = true
|
||||||
|
|
||||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue