Skip to content
On this page

@thejsngin/jsngin / Exports / Game

Interface: Game

Callable

Game

Game(gameObject, env, loadGameObject?): Promise<GameInstance>

Creates a gameInstance and then returns it.

Parameters

NameType
gameObjectGameObject
env{ [key: string]: any; } & BaseEnv
loadGameObject?GameObject

Returns

Promise<GameInstance>

Defined in

src/game/interface.ts:35