MultiplayerMinesweeper/www/scripts/display/html.js
Alexander Bass f95b91a64c Unfinished particle system.
Lost interest quickly. May come back later and rip it all out.
2022-06-21 09:35:33 -04:00

16 lines
527 B
JavaScript

import {game} from "../game/game.js"
export var canvas = document.getElementById('canvas');
export var ctx = canvas.getContext('2d');
export var hud = document.getElementById('hud');
export var hctx = hud.getContext('2d');
export var parti = document.getElementById('parti');
export var pctx = parti.getContext('2d');
canvas.width = game.tileSize*game.gridSize[0];
canvas.height = game.tileSize*game.gridSize[1];
hud.width = canvas.width;
hud.height = canvas.height;
parti.width = canvas.width;
parti.height = canvas.height;