Skip to content

createGame ​

Function of @v12-engine/engine

ts
export declare function createGame<V = unknown>(init: GameInit): Game<V>;

Makes a game: one object its units, abilities, systems, hooks and listeners, missions, maps and view are registered on, which every host takes (Game). init is its id and name, and any field of the module underneath said at once: createGame(rules) makes a game of a module written whole