jetlag2d
    Preparing search index...

    Function initializeAndLaunch

    • Start a game

      NB: platform is for future use with mobile / desktop deploy targets.

      Parameters

      • domId: string

        The name of the DIV into which the game should be placed

      • config: JetLagGameConfig

        The game configuration object

      • builder: () => void

        A function for building the first visible level of the game

      • platform: PlatformDevice = ...

        Platform-specific features. Defaults to HTML5

      Returns Promise<void>