Armazon/scripts/scoring.gd

13 lines
206 B
GDScript3
Raw Permalink Normal View History

2024-04-03 19:24:04 -04:00
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