Updated Dodge the Creeps C# to Godot mono 4.2 (#1000)

Co-authored-by: Ivan Shakhov <van800@gmail.com>
Co-authored-by: Aaron Franke <arnfranke@yahoo.com>
This commit is contained in:
captain-redbeard
2024-04-12 17:56:02 +10:00
committed by GitHub
parent 4f866f2a9a
commit fbef18f58b
25 changed files with 425 additions and 358 deletions

View File

@@ -47,7 +47,7 @@ func start(pos):
$CollisionShape2D.disabled = false
func _on_Player_body_entered(_body):
func _on_body_entered(_body):
hide() # Player disappears after being hit.
hit.emit()
# Must be deferred as we can't change physics properties on a physics callback.

View File

@@ -72,4 +72,4 @@ process_material = SubResource("7")
texture = ExtResource("2")
speed_scale = 2.0
[connection signal="body_entered" from="." to="." method="_on_Player_body_entered"]
[connection signal="body_entered" from="." to="." method="_on_body_entered"]