Minigame selection screen + wired everything + bug corrections

This commit is contained in:
Laurent Tourte
2024-04-04 14:17:42 +02:00
parent e764d80b44
commit 0b93fa4ca0
45 changed files with 934 additions and 53 deletions
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -56,8 +56,8 @@ func game_completed(lesson_number: int, game_number: int) -> void:
var all_completed: = true
for i in range(3):
all_completed &= unlocks[lesson_number]["games"] == Status.Completed
all_completed = all_completed and unlocks[lesson_number]["games"][i] == Status.Completed
if all_completed and unlocks.has(lesson_number + 1):
unlocks[lesson_number + 1] = Status.Unlocked
unlocks[lesson_number + 1]["look_and_learn"] = Status.Unlocked
unlocks_changed.emit()