Basics
Guides
API Reference
Basics
Guides
API Reference
[18:14] static extends: object
Helper for FXGL's GameDifficulty enum (com.almasb.fxgl.gameplay.GameDifficulty). Four difficulty levels selectable through the game settings or menu so game logic can scale behavior to the chosen challenge level.
EASY ()
Returns the EASY difficulty value.
An AussomJavaObject around the enum value.MEDIUM ()
Returns the MEDIUM difficulty value.
An AussomJavaObject around the enum value.HARD ()
Returns the HARD difficulty value.
An AussomJavaObject around the enum value.NIGHTMARE ()
Returns the NIGHTMARE difficulty value.
An AussomJavaObject around the enum value.get (string Name)
Resolves a GameDifficulty enum value by name.
Name is one of "EASY", "MEDIUM", "HARD", "NIGHTMARE".An AussomJavaObject around the enum value.values ()
Returns GameDifficulty[] containing every constant.
valueOf (string Name)
Standard Enum.valueOf strict lookup.

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