-
-
Notifications
You must be signed in to change notification settings - Fork 0
Creating advanced game instance
Tymon Woźniak edited this page Apr 19, 2023
·
2 revisions
const canvas = ...;
const game = new JSGL.Game({
autoResize: true,
canvas: canvas,
canvasImageQuality: 'high',
drawAlways: true,
grid: new JSGL.Vector2(16, 9),
refreshWhenUnfocused: true
});
game.RescaleCanvasToParentElement(1);