API Docs for: 0.0.2
Show:

Atlantis.LevelManager Class

Module: Engine
Parent Module: Atlantis

A level manager.

Constructor

Atlantis.LevelManager

()

Methods

add

(
  • name
  • autoload
)

Add a level to the level manager.

Parameters:

  • name Altantis.level

    Instance of the level to add.

  • autoload Boolean

    Sets to true to load the level.

draw

(
  • gameTime
)

Draw active levels.

Parameters:

get

(
  • nameOrIndex
)
Atlantis.Level

Gets a level by its index or its name.

Parameters:

Returns:

Atlantis.Level:

Return the level if it exists, otherwise return null.

getLevelByName

(
  • name
)
Atlantis.Level

Get a level by its name

Parameters:

  • name String

    The name of the level to load.

Returns:

Atlantis.Level:

Return the level if it exists, otherwise return null.

loadLevel

(
  • levelParam
)

Add a level to the level manager.

Parameters:

  • levelParam Altantis.level

    Instance of the level to add.

remove

(
  • nameOrIndex
)

Remove a level by its index, name or instance.

Parameters:

update

(
  • gameTime
)

Update active level.

Parameters: