2022-06-20 00:18:47 +00:00
|
|
|
import {game} from "../game/game.js"
|
|
|
|
|
2022-06-19 21:54:34 +00:00
|
|
|
export var canvas = document.getElementById('canvas');
|
|
|
|
export var ctx = canvas.getContext('2d');
|
|
|
|
export var hud = document.getElementById('hud');
|
|
|
|
export var hctx = hud.getContext('2d');
|
2022-06-20 00:18:47 +00:00
|
|
|
|
|
|
|
canvas.width = game.tileSize*game.gridSize[0];
|
|
|
|
canvas.height = game.tileSize*game.gridSize[1];
|
2022-06-21 13:35:33 +00:00
|
|
|
hud.width = canvas.width;
|
|
|
|
hud.height = canvas.height;
|