Armazon/scripts/scoring.gd
2024-04-03 19:24:04 -04:00

13 lines
206 B
GDScript

extends Node
@onready var score: int = 0
@onready var boxes_passed: int = 0
func reset_score():
score = 0
boxes_passed = 0
func increment_boxes():
boxes_passed += 1
func increment_score():
score += 1