Basics
Guides
API Reference
Basics
Guides
API Reference
[16:7] extends: MiniGame
Wraps FXGL's CircuitBreakerMiniGame (com.almasb.fxgl.minigames.circuitbreaker.CircuitBreakerMiniGame), a maze-traversal minigame in which the player ball must reach the end point without hitting walls. Constructed with the maze width and height (in tiles), the player size, player speed, and an initial delay before play begins.
CircuitBreakerMiniGame (MazeWidth = null, int MazeHeight = 10, double PlayerSize = 15.0, double PlayerSpeed = 135.0, double InitialDelaySeconds = 2.0)
Creates a new CircuitBreakerMiniGame. Pass null for MazeWidth to construct an empty wrapper for adopt.
MazeWidth is the maze width in tiles.MazeHeight is the maze height in tiles.PlayerSize is the player size in pixels.PlayerSpeed is the player speed in pixels / second.InitialDelaySeconds is the pre-play delay in seconds.adopt (object Ajo)
Wraps an existing CircuitBreakerMiniGame AussomJavaObject.
Ajo is an AussomJavaObject around a CircuitBreakerMiniGame.A new wrapper.getMaze ()
Returns the underlying Maze AussomJavaObject.
An AussomJavaObject around a Maze.getStartPoint ()
Returns the start-point Point2D AJO.
getEndPoint ()
Returns the end-point Point2D AJO.
getPlayerSize ()
Returns the player size in pixels. @r A double.
getPlayerSpeed ()
Returns the player speed in pixels / second. @r A double.
getPlayerPosition ()
Returns the current player position Point2D AJO.
up ()
Sends an "up" input to the player. @r this object
down ()
Sends a "down" input. @r this object
left ()
Sends a "left" input. @r this object
right ()
Sends a "right" input. @r this object

Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.