auto-accept/www/js/main.js
2020-12-17 18:27:44 +01:00

9 lines
No EOL
296 B
JavaScript

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