Basics
Guides
API Reference
Basics
Guides
API Reference
[15:7] extends: MiniGame
Wraps FXGL's SweetSpotMiniGame (com.almasb.fxgl.minigames.sweetspot.SweetSpotMiniGame), a timing minigame in which a cursor bounces between 0 and 100; the player clicks to stop it. A click between minSuccessValue and maxSuccessValue wins.
SweetSpotMiniGame ()
Creates a new SweetSpotMiniGame.
adopt (object Ajo)
Wraps an existing SweetSpotMiniGame AussomJavaObject.
Ajo is an AussomJavaObject around a SweetSpotMiniGame.A new wrapper.click ()
Triggers a click. If the cursor is between the min and max success values, the minigame ends with success.
this objectrandomizeRange (int SuccessRange)
Randomizes the success window so the gap between min and max equals the given range (which must be in [0, 100]).
SuccessRange is the gap width in [0, 100].this objectgetCursorValue ()
Returns the IntegerProperty for the bouncing cursor (0..100).
An AussomJavaObject around an IntegerProperty.getMinSuccessValue ()
Returns the IntegerProperty for the min success value.
An AussomJavaObject around an IntegerProperty.getMaxSuccessValue ()
Returns the IntegerProperty for the max success value.
An AussomJavaObject around an IntegerProperty.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.