Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: TMXLevelLoader

[15:7] extends: FxObj

Wraps FXGL's TMXLevelLoader (com.almasb.fxgl.entity.level.tiled.TMXLevelLoader), the built-in loader for Tiled .tmx map files. Reads tile layers, object layers, and tilesets, then produces the resulting Entity list keyed off the EntityFactory's @Spawns.

Methods

  • TMXLevelLoader ()

    Creates a new TMXLevelLoader (default settings).

  • adopt (object Ajo)

    Wraps an existing TMXLevelLoader AussomJavaObject.

  • load (string UrlString, object WorldObj)

    Loads the level at the given URL with the supplied GameWorld.

    • @p UrlString is a URL string to the .tmx file.
    • @p WorldObj is a GameWorld wrapper.
    • @r A Level wrapper.