Skip to content

run ​

Function of @v12-engine/engine/testing

ts
export declare function run(world: World, seconds: number, until?: () => boolean): number;

Steps the world for up to seconds, stopping early once until holds. Returns the time that went by in it