13 lines
206 B
GDScript
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
|