add gamemanager class and score

This commit is contained in:
2025-10-21 14:00:54 +01:00
parent 57d05085d0
commit 0937407c06
4 changed files with 71 additions and 8 deletions

9
scripts/game_manager.gd Normal file
View File

@@ -0,0 +1,9 @@
extends Node
var score = 0
@onready var score_label: Label = $ScoreLabel
func add_point():
score += 1
score_label.text = "You collected " + str(score) + " coins! :)"