TFred
Index
Constructors
constructor
Parameters
engineWorker: Worker
container: HTMLElement
fullscreenContainer: HTMLElement
updateEngineContext: (ctx: TEngineContextData) => void
updateGameContext: (ctx: TGameContextData) => void
setErrorMessage: (message: string) => void
setScaling: (scaling: number) => void
setRenderingSize: (size: { height: number; width: number }) => void
optionalconfig: TFredConfig
Returns default
Properties
publicaudio
publicoptionalcanvas
publicevents
publicstats
Methods
publicdestroy
Trigger cleanup across the whole engine
Returns void
publictoggleFullscreen
Returns void
TFred runs on the main browser thread and handles rendering, input and the UI context