This commit is contained in:
2025-09-08 14:49:21 +02:00
parent 1290cd19fb
commit 9ee0d4708b
10 changed files with 54 additions and 33 deletions

View File

@@ -43,8 +43,9 @@ func _ready() -> void:
# Trier par ordre alphabétique
tableau_paires.sort_custom(func(a, b): return a[\"value\"] > b[\"value\"])
text += \"1 Player\"
for i in range(clamp(5, 0, tableau_paires.size())):
text += tableau_paires[i][\"key\"] + \" : \" + str(tableau_paires[i][\"value\"]) + \"\\n\"
text += \"\\n\" + tableau_paires[i][\"key\"] + \" : \" + str(tableau_paires[i][\"value\"])
"
[sub_resource type="GDScript" id="GDScript_u3kfb"]
@@ -57,8 +58,9 @@ func _ready() -> void:
# Trier par ordre alphabétique
tableau_paires.sort_custom(func(a, b): return a[\"value\"] < b[\"value\"])
text += \"2 Players\"
for i in range(clamp(5, 0, tableau_paires.size())):
text += tableau_paires[i][\"key\"] + \" : \" + str(tableau_paires[i][\"value\"]) + \"\\n\"
text += \"\\n\" + tableau_paires[i][\"key\"] + \" : \" + str(tableau_paires[i][\"value\"])
"
[node name="load_screen" type="Node2D"]