Game: {
attachTo: ((element) => void);
canvas: HTMLCanvasElement;
disableContextMenu: (() => void);
setBackgroundColor: ((colour) => void);
setRender: ((callback) => void);
setSize: ((width, height) => void);
setSmoothing: ((to) => void);
setUpdate: ((callback) => void);
start: (() => void);
}
Type declaration
attachTo: ((element) => void)
- (element): void
Returns void
canvas: HTMLCanvasElement
disableContextMenu: (() => void)
setBackgroundColor: ((colour) => void)
- (colour): void
Returns void
setRender: ((callback) => void)
- (callback): void
Parameters
- callback: ((gfx) => void)
Returns void
setSize: ((width, height) => void)
- (width, height): void
Parameters
- width: number
- height: number
Returns void
setSmoothing: ((to) => void)
setUpdate: ((callback) => void)
- (callback): void
Parameters
- callback: ((dt, input) => void)
- (dt, input): void
Returns void
Returns void
start: (() => void)