Skip to content

Minigame Data

Moraguma edited this page Aug 3, 2023 · 2 revisions

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.

Icons

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.

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".

Difficulty

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},
}
Clone this wiki locally