auto-accept/www/js/main.js
2020-12-17 14:24:53 +01:00

9 lines
No EOL
292 B
JavaScript

import { init } from "./game.js";
let svgEl = document.getElementById('canvas');
let crosshairXEl = document.getElementById('crosshair_x');
let crosshairYEl = document.getElementById('crosshair_y');
var game = init(svgEl, crosshairXEl, crosshairYEl);
console.log('Initialised game', game);