2020-12-17 11:09:22 +00:00
|
|
|
import { init } from "./game.js";
|
|
|
|
|
|
|
|
let svgEl = document.getElementById('canvas');
|
|
|
|
let crosshairXEl = document.getElementById('crosshair_x');
|
|
|
|
let crosshairYEl = document.getElementById('crosshair_y');
|
|
|
|
|
|
|
|
|
2020-12-17 12:22:58 +00:00
|
|
|
var game = init(svgEl, crosshairXEl, crosshairYEl);
|
|
|
|
console.log('Initialised game', game);
|