Initial commit
This commit is contained in:
commit
a0b34dd454
54 changed files with 1826 additions and 0 deletions
9
scripts/coin.gd
Normal file
9
scripts/coin.gd
Normal file
|
@ -0,0 +1,9 @@
|
|||
extends Area2D
|
||||
|
||||
@onready var game_manager: Node = %GameManager
|
||||
@onready var animation_player: AnimationPlayer = $AnimationPlayer
|
||||
|
||||
|
||||
func _on_body_entered(body: Node2D) -> void:
|
||||
game_manager.add_score_point()
|
||||
animation_player.play("pickup")
|
Loading…
Add table
Add a link
Reference in a new issue