added fireballs

This commit is contained in:
Jonas Braus
2024-07-29 23:30:26 +02:00
parent 3a6f8517c0
commit 85736f82e0
19 changed files with 365 additions and 39 deletions
+9
View File
@@ -0,0 +1,9 @@
extends Area2D
@onready var animation_player = $AnimationPlayer
func collect_coin(body):
body.increase_coins()
animation_player.play("pickup")
func _on_body_entered(body):
collect_coin(body)