makepad/platform/script/test
Admin fbd4972450 gamemaker: full engine round — chase camera rig, racing-game APIs, script stdlib math, real error line numbers
Engine (examples/gamemaker): chase camera rig (camera({chase}) — ease-behind
with mouse-wins/recenter authority), writable camera + look deltas, spatial
queries (raycast/overlap_sphere/ground_normal), save/load, sustained tones,
rot_y + collide:false spawnables, HUD slots/bars, terrain noise shaping +
height bands, per-shape instanced render batching with static slabs (3.2x),
error push-loop into the agent chat, unknown-verb/option diagnostics with
game.splash:line:col positions, streaming tail-statement finalization, quiet
toolbar UI, Shh voice hush, fable voice.

Platform: runtime vector methods (.length/.normalized/.dot/.cross), scalar+
vector lerp, TAU; ScriptVm error capture sink; window frame capture API; four
headless-JIT fixes (scalar casts, mat4 mul, Id-arg expansion, commuted
scalar-vec ops) with regression test stages. Widgets: single-line TextInput
baseline centering, TextFlow inline-code baseline alignment, glass button
corner_radius uniform. Voice/ggml Metal backends: debug logs behind
GGML_METAL_TRACE. splashgame.md: the runtime-loaded game API contract.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-10 14:20:03 +02:00
..
src gamemaker: full engine round — chase camera rig, racing-game APIs, script stdlib math, real error line numbers 2026-07-10 14:20:03 +02:00
Cargo.toml First 2.0 2026-02-12 14:52:33 +01:00
README.md First 2.0 2026-02-12 14:52:33 +01:00

Makepad Example: ChatGPT

A simple example of a Makepad Framework application that uses its network layer to interact with OpenAI's GPT model.

How to Run

  1. Set up your OpenAI API key:

    • Visit OpenAI's API Key page and follow the instructions to create and retrieve your API key.
    • Note: Using the OpenAI API incurs costs.
  2. Configure the API key as an environment variable:

    export OPENAI_API_KEY=your_openai_api_key
    

    Optionally, you can configure the model and endpoint:

    export OPENAI_MODEL=your_desired_model  # default is "gpt-4o"
    export OPENAI_BASE_URL=your_custom_api_base_url  # default is "https://api.openai.com/v1"
    
  3. Run the application:

    cargo run