APIOverview

API Reference

The Conjure API is a small, browser-safe Python surface for 2D games. It mirrors Raylib where practical and adds Moosh platform helpers for saves, scores, and identity.

Categories

  • Window and frame: init_window, window_should_close, frame timing, and drawing boundaries.
  • Drawing: shapes, text, pixels, and measurement helpers.
  • Colors: Color, named constants, fades, and hex conversion.
  • Input: keyboard, mouse, touch, and key constants.
  • Audio: sound effects, music streams, and master volume.
  • Images: loading, drawing, transforms, and size helpers.
  • Platform: authentication, score submission, cloud save, and guest save behavior.
  • Errors: common Conjure exceptions and how they surface in the editor.

Import style

from conjure import *
from conjure.platform import submit_score, save_data, load_data

Start with draw_circle or build the first game tutorial for a complete frame loop.