added fireballs
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user