auto-accept/www/js/main.js

9 lines
292 B
JavaScript
Raw Normal View History

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);