Repository navigation
Minigame Data
Minigames in Gamutoware must include specific signals and variables to interact correctly with the minigame loader. This page explains the basics of minigame implementation.
Link a 450 x 450 px PNG image to serve as the game cover.
Define the title of the game in both Portuguese and English.
Set the creator's name and provide links to any third-party assets used.
Define the message that appears when the game starts.
The minigame calls the NotificationCenter to display this explanation text. It is highly recommended that minigames use this text to provide a clear clue about what the player should do.
Link the .tscn file of the minigame's primary scene.
Minigames are loaded using the resolution defined by the WIDTH and HEIGHT constants and are then scaled up to fit the screen. You can change these values, but they must maintain a 16:9 aspect ratio.
The minigame loader constantly listens for win and lose signals within the minigame’s script to determine the outcome.
- Default State: By default, the minigame state is set to lost.
-
Updating State: The functions
register_win()andregister_lose()can be called to change the current state of the minigame. - Final Result: When the minigame timer ends, the outcome is determined by the last function called. If neither function was ever called, the minigame will result in a loss.