SiliconGhetto Engine API
    Preparing search index...

    Function init

    • Initialize the SiliconGhetto engine on a canvas element.

      Parameters

      • canvasId: string

        The HTML id of the canvas element to render into

      • width: number

        The rendering width in pixels

      • height: number

        The rendering height in pixels

      Returns Promise<void>

      await sg.init('game', 800, 600);