SiliconGhetto Engine API
    Preparing search index...

    Function run

    • Start the game loop with update and draw callbacks.

      Parameters

      • callbacks: GameCallbacks = {}

        Object with optional update and draw functions called each frame

      Returns void

      sg.run({
      update(sg) { /* game logic */ },
      draw(sg) { sg.clear(0, 0, 0); sg.drawAll(); },
      });