@thejsngin/jsngin / Exports / Game
Interface: Game
Callable
Game
▸ Game(gameObject
, env
, loadGameObject?
): Promise
<GameInstance
>
Creates a gameInstance
and then returns it.
Parameters
Name | Type |
---|---|
gameObject | GameObject |
env | { [key: string] : any ; } & BaseEnv |
loadGameObject? | GameObject |
Returns
Promise
<GameInstance
>