-
Notifications
You must be signed in to change notification settings - Fork 97
Minigame Data
Other than the minigame paths, some extra information must be provided for the minigame to interact correctly with the different parts of Gamutoware. This page aims to explain how to implement this information and how it's used.
Minigames are represented by icons in different parts of Gamutoware. For these minigames to load correctly in these parts of the game, icons must be specified in a dictionary present in Minigames.gd. This dictionary relates a minigame's path to its cover's path. It also has an entry for "gamutoware", which is used only in the credits.
Minigame credits reference the creditos.gd file in each minigame's folder. For the credits to load correctly, a path to each minigame's credits must be specified in a dictionary present in Minigames.gd. This dictionary relates a minigame's path to its credit's path. It also has an entry for "gamutoware".
Minigames are selected dynamically based on a predefined difficulty. More on how this system works can be found on #83
These three are set on Minigames.gd
const minigame_data = {
"res://microjogos/2023S1/projeto-enzo-bertoloti/cenas/main.tscn": {"credits": "res://microjogos/2023S1/projeto-enzo-bertoloti/creditos.gd", "cover": "res://microjogos/2023S1/projeto-enzo-bertoloti/capa.png", "difficulty": 0},
}