Collision mask and potato mine explosion
This commit is contained in:
parent
d1889cdeda
commit
20bf061045
2 changed files with 5 additions and 11 deletions
|
|
@ -10,3 +10,5 @@ script = ExtResource("1_324sd")
|
|||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
|
||||
[node name="Hitbox" type="Area2D" parent="."]
|
||||
collision_layer = 2
|
||||
collision_mask = 0
|
||||
|
|
|
|||
|
|
@ -108,10 +108,6 @@ libraries = {
|
|||
}
|
||||
autoplay = "idle_unprimed"
|
||||
|
||||
[node name="Hitbox" parent="." index="2"]
|
||||
collision_layer = 2
|
||||
collision_mask = 0
|
||||
|
||||
[node name="Unprimed" type="CollisionShape2D" parent="Hitbox" index="0"]
|
||||
position = Vector2(-0.5, 14.5)
|
||||
shape = SubResource("RectangleShape2D_qfqko")
|
||||
|
|
@ -132,6 +128,7 @@ shape = SubResource("CircleShape2D_v0g5b")
|
|||
[node name="ExplosionBox" type="Area2D" parent="." index="4"]
|
||||
collision_layer = 0
|
||||
collision_mask = 8
|
||||
script = ExtResource("3_2hd5y")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="ExplosionBox" index="0"]
|
||||
position = Vector2(0, 9)
|
||||
|
|
@ -142,12 +139,7 @@ wait_time = 15.0
|
|||
one_shot = true
|
||||
autostart = true
|
||||
|
||||
[node name="Explosion" type="Node" parent="." index="6" node_paths=PackedStringArray("explosionArea")]
|
||||
script = ExtResource("3_2hd5y")
|
||||
damage = 60
|
||||
explosionArea = NodePath("../ExplosionBox")
|
||||
|
||||
[node name="Behaviour" type="Node" parent="." index="7" node_paths=PackedStringArray("_player", "_hitbox", "_unprimedShape", "_primedShape")]
|
||||
[node name="Behaviour" type="Node" parent="." index="6" node_paths=PackedStringArray("_player", "_hitbox", "_unprimedShape", "_primedShape")]
|
||||
script = ExtResource("4_twx65")
|
||||
_player = NodePath("../AnimationPlayer")
|
||||
_hitbox = NodePath("../Hitbox")
|
||||
|
|
@ -160,4 +152,4 @@ one_shot = true
|
|||
|
||||
[connection signal="area_entered" from="Detectionbox" to="Behaviour" method="OnAreaEntered"]
|
||||
[connection signal="timeout" from="PrimeTimer" to="Behaviour" method="Prime"]
|
||||
[connection signal="timeout" from="Behaviour/ExplosionTimer" to="Explosion" method="Explode"]
|
||||
[connection signal="timeout" from="Behaviour/ExplosionTimer" to="ExplosionBox" method="Explode"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue