Constellations/js/Main.js

23 lines
485 B
JavaScript
Raw Permalink Normal View History

2022-07-23 18:33:01 +02:00
import Grid;
import Grid.IO;
import Grid.Color;
import Share;
2022-07-24 11:20:22 +02:00
import Toolbox;
2022-07-26 19:39:06 +02:00
import Mode;
import * as Play from Mode.Play;
import * as Solve from Mode.Solve;
import * as Edit from Mode.Edit;
2022-07-22 22:35:28 +02:00
Toolbox.init();
Mode.init({
play: Play,
solve: Solve,
edit: Edit
});
Grid.init(Mode.dispatch);
if(window.location.search.length > 0) {
var urlSearchParameters = new URLSearchParams(window.location.search);
Grid.Color.set(Share.decode(urlSearchParameters.get('game')));
}
Grid.IO.init();