BrowserLogic/js/main.js

25 lines
636 B
JavaScript

/*
MatCat BrowserLogic Simulator
*/
let Version = "0.4.16";
let spanVersion = document.getElementById("version");
spanVersion.innerText = Version;
// get the canvas and get the engine object going
let lCanvasElement = document.getElementById("LogicPlane");
let logicEngine = new LogicEngine(lCanvasElement);
// Get the game Tick going, set to 1ms but most browsers will min to 4ms
setInterval(logicEngine.Scheduler.Tick.bind(logicEngine.Scheduler), 1);
// Get the engine going
logicEngine.StartEngine();
RegisterEvents();
TopMenuListeners();
RightClickMenuListeners();
BuildToolbox();
BuildTopMenu();
CheckForWelcomeCookie();