added gumba mushroom and sound

This commit is contained in:
Jonas Braus
2024-07-29 18:54:40 +02:00
parent e06f422597
commit b339ef3c29
60 changed files with 1142 additions and 9 deletions
+2 -1
View File
@@ -1,8 +1,9 @@
extends Area2D
@onready var animation_player = $AnimationPlayer
func collect_coin(body):
body.increase_coins()
queue_free()
animation_player.play("pickup")
func _on_body_entered(body):
collect_coin(body)