SimonSays/main.js
2019-02-25 23:22:37 +01:00

10 lines
673 B
JavaScript

var width = getComputedStyle(document.body).getPropertyValue("--grid-width");
var height = getComputedStyle(document.body).getPropertyValue("--grid-height");
var tilesize = parseInt(getComputedStyle(document.body).getPropertyValue("--tile-size"));
var default_opacity = getComputedStyle(document.body).getPropertyValue("--opacity")
var grid = new Grid(width,height, document.getElementById("grid-container"), tilesize, tilesize);
var game_manager = new GameManager(grid, document.getElementById("sidebar-container"), default_opacity);
var sidebar = new Sidebar(grid, document.getElementById("control-container"), document.getElementById("info-container"), game_manager);