Last map (for now)

This commit is contained in:
2025-09-12 20:08:00 +02:00
parent 3272336f86
commit 25287c57fc
8 changed files with 2315 additions and 10 deletions

View File

@ -40,6 +40,10 @@ func LoadMap9() -> void:
get_tree().change_scene_to_file("res://Game/Maps/map_9.tscn")
pass # Replace with function body.
func LoadMap10() -> void:
get_tree().change_scene_to_file("res://Game/Maps/map_10.tscn")
pass # Replace with function body.
func _ready() -> void:
loadData()
@ -52,6 +56,7 @@ func _ready() -> void:
get_node("VBoxContainer/HBoxContainer2/seventh/Button").connect("button_up", LoadMap7)
get_node("VBoxContainer/HBoxContainer2/eighth/Button").connect("button_up", LoadMap8)
get_node("VBoxContainer/HBoxContainer2/nineth/Button").connect("button_up", LoadMap9)
get_node("VBoxContainer/HBoxContainer2/tenth/Button").connect("button_up", LoadMap10)
var unlocker = true
for i in get_node("VBoxContainer").get_children():
@ -85,6 +90,7 @@ func loadData() -> void:
get_node("VBoxContainer/HBoxContainer2/seventh/Label2").text = "Haven't finished yet" if map_scores["Map7"] == 0 else "Scored: " + str(map_scores["Map7"]) + " out of 10"
get_node("VBoxContainer/HBoxContainer2/eighth/Label2").text = "Haven't finished yet" if map_scores["Map8"] == 0 else "Scored: " + str(map_scores["Map8"]) + " out of 10"
get_node("VBoxContainer/HBoxContainer2/nineth/Label2").text = "Haven't finished yet" if map_scores["Map9"] == 0 else "Scored: " + str(map_scores["Map9"]) + " out of 10"
get_node("VBoxContainer/HBoxContainer2/tenth/Label2").text = "Haven't finished yet" if map_scores["Map10"] == 0 else "Scored: " + str(map_scores["Map10"]) + " out of 10"
else:
map_scores["Map1"] = 0
@ -96,6 +102,7 @@ func loadData() -> void:
map_scores["Map7"] = 0
map_scores["Map8"] = 0
map_scores["Map9"] = 0
map_scores["Map10"] = 0
save_scores()
loadData()