Basics
Guides
API Reference
Basics
Guides
API Reference
[19:7] extends: EngineService
Wraps FXGL's MiniGameService
(com.almasb.fxgl.minigames.MiniGameService), the engine service
that hosts a minigame inside its own SubScene (or, with the
InGame variants, directly in the GameScene). Reach it at
runtime via fxgl.getMiniGameService().
Each startXxx method pushes a new subscene and fires the
Aussom callback (wrapped as a Consumer
MiniGameService (Ajo = null)
Creates a MiniGameService wrapper. Empty by default; use adopt to wrap the running engine's instance.
Ajo is an optional AussomJavaObject around a MiniGameService.adopt (object Ajo)
Wraps an existing MiniGameService AussomJavaObject.
Ajo is an AussomJavaObject around a MiniGameService.A new wrapper.startRandomOccurrence (double SuccessChance, callback Cb)
Starts the RandomOccurrence minigame with the given success chance and fires the callback with a RandomOccurrenceResult AJO when the minigame finishes.
SuccessChance is a double in [0, 1].Cb is a callback(resultAjo) -> void.this objectstartTriggerSequence (KeyCodesList, double WinRatio, callback Cb)
Starts the TriggerSequence minigame with the given list of KeyTrigger keys (KeyCode AJOs) and the win ratio in [0, 1]. The callback receives a TriggerSequenceResult AJO.
KeyCodesList is an Aussom list of AussomJavaObjects around KeyCode values.WinRatio is a double in [0, 1].Cb is a callback(resultAjo) -> void.this objectstartSweetSpot (int SuccessRange, callback Cb)
Starts the SweetSpot minigame with the given success-range width (in [0, 100]). The callback receives a SweetSpotResult AJO.
SuccessRange is an int in [0, 100].Cb is a callback(resultAjo) -> void.this objectstartTriggerMash (object KeyTriggerObj, callback Cb)
Starts the TriggerMash minigame for the given KeyTrigger (default boost 1.7, decay 0.1). The callback receives a TriggerMashResult AJO.
KeyTriggerObj is a KeyTrigger AussomJavaObject.Cb is a callback(resultAjo) -> void.this objectstartTriggerMashTuned (object KeyTriggerObj, double BoostRate, double DecayRate, callback Cb)
Starts the TriggerMash minigame for the given KeyTrigger with custom boost and decay rates. The callback receives a TriggerMashResult AJO.
KeyTriggerObj is a KeyTrigger AussomJavaObject.BoostRate is a double (how fast the bar fills per successful press).DecayRate is a double (how fast the bar drains).Cb is a callback(resultAjo) -> void.this objectstartLockPicking (callback Cb)
Starts the LockPick minigame. The callback receives a LockPickResult AJO.
Cb is a callback(resultAjo) -> void.this objectstartCircuitBreaker (int NumHorizontalTiles, int NumVerticalTiles, double PlayerSize, double PlayerSpeed, double MiniGameDelaySeconds, callback Cb)
Starts the CircuitBreaker minigame with the supplied maze dimensions, player size and speed, and initial delay (seconds). The callback receives a CircuitBreakerResult AJO.
NumHorizontalTiles is the maze width in tiles.NumVerticalTiles is the maze height in tiles.PlayerSize is the player size in pixels.PlayerSpeed is the player speed in pixels / second.MiniGameDelaySeconds is the initial delay before play begins, in seconds.Cb is a callback(resultAjo) -> void.this objectstartMiniGame (object ViewObj, callback Cb)
Starts an arbitrary MiniGame backed by the supplied MiniGameView. The callback receives the resulting MiniGameResult AJO.
ViewObj is a MiniGameView (or subclass) wrapper.Cb is a callback(resultAjo) -> void.this objectstartMiniGameInGame (object ViewObj, callback Cb)
Like startMiniGame but plays the minigame directly in the GameScene rather than pushing a SubScene.
ViewObj is a MiniGameView (or subclass) wrapper.Cb is a callback(resultAjo) -> void.this object
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.