• Preparing search index...
  • The search index is not available
GDevelop JavaScript game engine
  • GDevelop JavaScript game engine
  • gdjs
  • gameplayTests
  • runGameplayTest

Function runGameplayTest

  • runGameplayTest(runtimeGame, payload, onProgress?): Promise<GameplayTestResult>
  • Run a gameplay test script against the game and return its result.

    The game main loop keeps rendering (paused) while the test steps the game logic deterministically at full speed, yielding to the browser regularly so the run stays visible and interruptible (see _maybeYield).

    Parameters

    • runtimeGame: RuntimeGame
    • payload: GameplayTestRunPayload
    • Optional onProgress: ((frame) => void)
        • (frame): void
        • Parameters

          • frame: number

          Returns void

    Returns Promise<GameplayTestResult>

    • Defined in GDJS/Runtime/gameplay-tests/gameplay-test-runner.ts:2856

Settings

Member Visibility

Theme

GDevelop JavaScript game engine
  • Loading...

Generated using TypeDoc