clik-engine API
    Preparing search index...

    Class HeadlessRunner

    Runs one headless clik-engine game instance under a Scenario. Drives the Phaser loop manually via game.headlessStep(time, delta) at a fixed delta so runs fast-forward and never block on RAF.

    You rarely use this directly — prefer HarnessRunner.run which boots and pools many instances at once. Use HeadlessRunner directly when you need frame-level control (stepFrame) or a single-instance repro.

    The runner forces headless: true, debug: false, and appends a ScriptedProvider to any configured inputProviders so scenarios can press actions without real DOM events.

    const runner = new HeadlessRunner({
    config: myGameConfig,
    seed: 42,
    scenario: { strategy: new ScriptedStrategy([...]), maxFrames: 600 },
    });
    const result = await runner.runUntilDone();
    runner.destroy();
    Index

    Constructors

    Properties

    random: SeededRandom
    scenario: Scenario
    seed: number

    Accessors

    Methods