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