public enum GameLevel.Mode
- Object
- Enum<GameLevel.Mode>
- GameLevel.Mode
ImplementsComparable<GameLevel.Mode>
The kind of a level, which decides how its elements are realized and rendered. Each
constant carries its JSON wire token (
#wireName()) and a display #label().Enum constants
TWO_D | Orthographic 2D: tile layers + sprites in pixel space. |
THREE_D | Perspective 3D: meshes, terrain and lights in a world. |
BOARD | Isometric board: sprites placed through an IsoProjection. |
Methods
public static GameLevel.Mode[] values() | |
public static GameLevel.Mode valueOf(String name) | |
public String wireName() | The lowercase token this mode is written as in the .game JSON ("2d" / "3d" / "board"). |
public String label() | A human-readable label for menus ("2D" / "3D" / "Board"). |
public static GameLevel.Mode fromWire(String name) | The mode for a JSON wire token (case-insensitive); defaults to #TWO_D for an unknown or missing token, so an older or hand-edited file still loads. |
Inherited methods
Enum constant details
TWO_D
TWO_DOrthographic 2D: tile layers + sprites in pixel space.
THREE_D
THREE_DPerspective 3D: meshes, terrain and lights in a world.
BOARD
BOARDIsometric board: sprites placed through an
IsoProjection.Method details
values
public static GameLevel.Mode[] values()valueOf
public static GameLevel.Mode valueOf(String name)wireName
public String wireName()The lowercase token this mode is written as in the
.game JSON ("2d" / "3d" /
"board").label
public String label()A human-readable label for menus (
"2D" / "3D" / "Board").fromWire
public static GameLevel.Mode fromWire(String name)The mode for a JSON wire token (case-insensitive); defaults to
#TWO_D for an
unknown or missing token, so an older or hand-edited file still loads.