Basics
Guides
API Reference
Basics
Guides
API Reference
[15:7] extends: MiniGame
Wraps FXGL's TriggerMashMiniGame (com.almasb.fxgl.minigames.triggermash.TriggerMashMiniGame), the "mash this key" minigame. The fillValue decays each frame at decayRate; each successful press boosts it by boostRate. The minigame wins when fillValue reaches 100.
TriggerMashMiniGame (KeyTriggerObj = null)
Creates a new TriggerMashMiniGame for the given KeyTrigger. Pass null for the adopt path.
KeyTriggerObj is an AussomJavaObject around a KeyTrigger.adopt (object Ajo)
Wraps an existing TriggerMashMiniGame AussomJavaObject.
Ajo is an AussomJavaObject around a TriggerMashMiniGame.A new wrapper.getTrigger ()
Returns the active KeyTrigger AJO.
setTrigger (object KeyTriggerObj)
Replaces the active KeyTrigger.
KeyTriggerObj is an AussomJavaObject around a KeyTrigger.this objectgetBoostRate ()
Returns the per-press boost rate. @r A double.
setBoostRate (double Rate)
Sets the per-press boost rate.
Rate is the new boost rate.this objectgetDecayRate ()
Returns the per-tick decay rate. @r A double.
setDecayRate (double Rate)
Sets the per-tick decay rate.
Rate is the new decay rate.this objectgetFillValue ()
Returns the fillValue DoubleProperty for binding to a UI bar.
An AussomJavaObject around a DoubleProperty.boost ()
Applies a boost to the fill value. Equivalent to a successful key press; included for callers that want to drive the minigame manually.
this object
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.