Skip to content

Creating game instance

Tymon Woźniak edited this page Apr 14, 2023 · 2 revisions

game.js

const grid = new JSGL.Vector2(16, 9);
const game = JSGL.DefaultGame.Create({ grid: grid }, { backgroundColor: 'black' }, 1);
// JSGL.DefaultGame.Create(gameSettings, pageSettings, canvasScale);
Clone this wiki locally