bovido/scripts/main.gd

8 lines
97 B
GDScript

extends Node2D
var score = 0
func _on_player_hit_ball():
score += 1
$HUD.update_score(score)