Added more flexible player damage from enemies and cleaned up some code

This commit is contained in:
VoidTwo
2021-12-05 14:55:47 -06:00
parent 9101bf2f65
commit b8cb1fa69b
7 changed files with 32 additions and 11 deletions

View File

@@ -14,7 +14,8 @@ monitorable = false
script = ExtResource( 1 )
[node name="Tile" type="CollisionShape2D" parent="."]
light_mask = 0
position = Vector2( 8, 8 )
shape = SubResource( 1 )
[connection signal="area_entered" from="." to="." method="_on_spawn_trap_area_entered"]
[connection signal="body_entered" from="." to="." method="_on_spawn_trap_body_entered"]