Nocturna
    Preparing search index...

    Class LevelLoader

    LevelLoader is responsible for loading level data, instantiating all game objects, and managing asset loading and observer notifications.

    Index

    Constructors

    Methods

    • Loads a level from a JSON file by filename. Instantiates all objects and notifies the observer.

      Parameters

      • level: string

        The filename of the level JSON.

      Returns void

    • Loads a level from in-memory JSON data.

      Parameters

      • data: JSON

        The JSON data for the level.

      Returns void

    • Sets the Babylon.js scene to use for future object creation.

      Parameters

      • scene: Scene

        The new scene.

      Returns void