scoring implemented; clients calculate scores individually and display ranks per player

This commit is contained in:
2025-07-16 11:15:05 +02:00
parent 72b68dd6f0
commit cc7afb5477
11 changed files with 80 additions and 3 deletions
+15
View File
@@ -0,0 +1,15 @@
class_name ScoreResult
extends Resource
@export var client_id: String
@export var score: int
func _init(
client_id: String,
score: int = 0,
) -> void:
self.client_id = client_id
self.score = score
func add_to_score(value: int) -> void:
self.score += value