like2d
    Preparing search index...

    Function createLike

    • Create a new Like2D game instance attached to a DOM container.

      This is the entry point for all Like2D games. It creates a canvas element, initializes all subsystems (graphics, audio, input), and returns an object where you can assign game callbacks.

      Parameters

      • container: HTMLElement

        The HTML element to attach the game canvas to.

      Returns Like

      A Like instance ready for callback assignment