Optimized scene tree and debugged some area detection

This commit is contained in:
VoidTwo
2021-11-30 23:06:42 -06:00
parent 34f7407d6a
commit 34d4e0454e
27 changed files with 380 additions and 481 deletions

View File

@@ -1,10 +1,9 @@
extends Area2D
func _ready() -> void:
pass # Replace with function body.
signal coin_collected
func _on_Node2D_body_entered(body: Node) -> void:
if body.get_name() == "Player":
queue_free() # Replace with function body.
if body.get_name() == 'Player':
emit_signal('coin_collected')
queue_free()