Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: Level

[15:7] extends: FxObj

Wraps FXGL's Level (com.almasb.fxgl.entity.level.Level), the value object returned by every LevelLoader. Holds the level's pixel dimensions, the list of entities, and a PropertyMap of level-scoped variables.

Methods

  • Level (int Width = 0, int Height = 0, list Entities)

    Creates a new Level with the given dimensions and entity list.

    • @p Width is the level width in pixels.
    • @p Height is the level height in pixels.
    • @p Entities is a list of Entity wrappers.
  • adopt (object Ajo)

    Wraps an existing Level AussomJavaObject.

  • getWidth ()

    Returns the level width in pixels.

  • getHeight ()

    Returns the level height in pixels.

  • getEntities ()

    Returns the entities as a list of Entity wrappers.

  • getProperties ()

    Returns the level-scoped PropertyMap.