Basics
Guides
API Reference
Basics
Guides
API Reference
[18:7] extends: FxObj
Wraps FXGL's TextLevelLoader
(com.almasb.fxgl.entity.level.text.TextLevelLoader), the
built-in loader that reads a level from a text grid file.
Each cell character maps to an entity via the entity factory
(@Spawns annotations on the EntityFactory).
Construction takes the per-cell pixel size and the character
representing an empty cell.
TextLevelLoader (int BlockWidth = 32, int BlockHeight = 32, string EmptyChar = " ")
Creates a new TextLevelLoader.
BlockWidth is the per-cell pixel width.BlockHeight is the per-cell pixel height.EmptyChar is the character treated as "no entity".adopt (object Ajo)
Wraps an existing TextLevelLoader AussomJavaObject.
load (string UrlString, object WorldObj)
Loads the level at the given URL with the supplied GameWorld.
UrlString is a URL string to the text-grid file.WorldObj is a GameWorld wrapper.A Level wrapper.getBlockWidth ()
Returns the block width in pixels (single tile width).
getBlockHeight ()
Returns the block height in pixels.
getEmptyChar ()
Returns the empty-character used to skip cells in the grid text (defaults to space).

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