auto-accept/www/js/main.js

9 lines
292 B
JavaScript
Raw Normal View History

2020-12-17 12:09:22 +01: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 13:22:58 +01:00
var game = init(svgEl, crosshairXEl, crosshairYEl);
console.log('Initialised game', game);