Basics
Guides
API Reference
Basics
Guides
API Reference
[16:7] extends: MiniGame
Wraps FXGL's TriggerSequenceMiniGame (com.almasb.fxgl.minigames.triggersequence.TriggerSequenceMiniGame), a minigame in which a sequence of KeyTriggers scrolls horizontally past two reference lines; the player must press each trigger while it is between the lines. The minigame succeeds when the fraction of correct presses meets or exceeds winRatio.
TriggerSequenceMiniGame (WinRatio = null)
Creates a new TriggerSequenceMiniGame with the given win ratio. Pass null for the adopt path.
WinRatio is a double in [0, 1].adopt (object Ajo)
Wraps an existing TriggerSequenceMiniGame AussomJavaObject.
Ajo is an AussomJavaObject around a TriggerSequenceMiniGame.A new wrapper.getWinRatio ()
Returns the win ratio. @r A double.
getNumTriggers ()
Returns the minigame's count of triggers. @r An int.
getNumTriggersForSuccess ()
Returns the number of correct triggers needed for success. @r An int.
setNumTriggersForSuccess (int N)
Sets the number of triggers needed for success.
N is the new count.this objectgetMoveSpeed ()
Returns the trigger move speed in pixels / second. @r An int.
setMoveSpeed (int Speed)
Sets the trigger move speed.
Speed is the new speed in pixels / second.this objectgetTriggers ()
Returns the ArrayList of KeyTrigger objects. Mutate directly to add triggers before the minigame starts.
An AussomJavaObject around an ArrayListgetViews ()
Returns the ArrayList of TriggerView render nodes.
An AussomJavaObject around an ArrayListendGame (int NumCorrectTriggers)
Ends the minigame with the supplied count of correct triggers, computing success against winRatio.
NumCorrectTriggers is the count of correct presses.this objectisCorrect (object KeyCodeObj, int CurrentIndex)
Returns whether the given KeyCode matches the trigger at the given index.
KeyCodeObj is an AussomJavaObject around a KeyCode.CurrentIndex is the trigger index in the sequence.A bool.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.