Quickstart¶
1. Inherit from base scene.¶
All minigames have to inherit from the base minigame scene.
- In order to inherit from it click
Scene/New Inherited Scene- Then navigate to the base scene located at
Minigames/Base/Minigame_Base.tscn
The resulting hierarchy looks like this:
The MinigameManager is used for connecting different components to each other and overseeing the execution of the minigame.
The InputManager is used for handling input from the buttons.
Every PlayerController represents a possible player.
2. Setup the minigame¶
Setup the number of players in the MinigameManager and signals caught by input manager.
Create a new scene for the player and add it under all the player controllers.
Players have to be named ‘Player’. Otherwise it will not work!
All players have to derive from base Player
extends Player
Depending on the signals chosen you have to implement these functions in your player script:
func press_action():
print("Press!")
func hold_action(delta):
print("Hold with delta %s!" % delta)
func release_action():
print("Release!")