Interface GameEngineOptions

interface GameEngineOptions {
    context: CanvasRenderingContext2D;
    framerate: number;
    physicsCycles?: number;
    resolution: {
        height: number;
        width: number;
    };
}

Properties

context: CanvasRenderingContext2D

The context where to render the frames

framerate: number

The target framerate of the game engine

physicsCycles?: number

The number of physics cycles to run per frame. Defaults to 2

resolution: {
    height: number;
    width: number;
}

The target resolution to use when rendering frames