Skip to content

Minigame Packs and Filters

Moraguma edited this page Apr 8, 2023 · 2 revisions

In Gamutoware, minigames are stored in packs and can be refined through filters. Minigame packs function as collections of minigames that can be selected and played in groups. Filters function as collections of minigames that will be taken out of a selection of multiple minigame packs. For example, consider the following packs and filters:

const minigame_packs = {
  "pack_1": ["minigame_1", "minigame_2"],
  "pack_2": ["minigame_3", "minigame_4", "minigame_5]"
}

const filters = {
  "filter_1": ["minigame_2", "minigame_3"]
} 

For instance, if the player selects the packs pack_1 and pack_2 and the filter filter_1, the resulting minigame selection will be:

["minigame_1", "minigame_4", "minigame_5"]

The buttons in the Jam and Arcade menus are generated through code by referencing the data in principal/recursos/data/Minigames.gd. Once the player makes their selection of minigame packs and filters, a resulting minigame list is created and sent to the minigame loader. As such, to implement a new minigame, the only file that has to be modified is Minigames.gd.

However, some information other than the minigame path must be provided for it to interact properly with all elements of the game. This will be covered in the next section.

Clone this wiki locally