Compare commits
32 Commits
36fa5a9092
...
ab4043defa
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ab4043defa | ||
|
|
a9d2a0c9a5 | ||
|
|
9c7c2ddc1d | ||
|
|
edea5e0972 | ||
|
|
f3809db72b | ||
|
|
68b6493e50 | ||
| a267884dbe | |||
| 64b0e5e770 | |||
| 57b37d0139 | |||
| 4939b74fad | |||
| 7e5de16a02 | |||
|
|
49045e4d76 | ||
|
|
43100e65e9 | ||
|
|
94ddc4a00f | ||
|
|
abf097e117 | ||
| 4fc21e7876 | |||
| 37aa7b5067 | |||
|
|
09d54aa525 | ||
|
|
76de2a5a5c | ||
|
|
284e396d5f | ||
|
|
4ba42f6566 | ||
|
|
d0e282b41c | ||
| 024b80d393 | |||
| 34fbb797c1 | |||
| b10b6475d8 | |||
| 2dbfff770f | |||
| a791415bd3 | |||
|
|
577357b090 | ||
| 1be3750672 | |||
| 5668d21b0d | |||
| 001adb89bd | |||
| 04a0e1a912 |
@@ -20,6 +20,7 @@ const legend = {
|
|||||||
cable: 16,
|
cable: 16,
|
||||||
captorTurn: 17,
|
captorTurn: 17,
|
||||||
cableVertical: 18,
|
cableVertical: 18,
|
||||||
|
rotatorButton: 20,
|
||||||
};
|
};
|
||||||
|
|
||||||
const laserColors = {
|
const laserColors = {
|
||||||
@@ -87,7 +88,7 @@ let levels = [
|
|||||||
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||||
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||||
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||||
],
|
], */
|
||||||
];
|
];
|
||||||
|
|
||||||
let currentLevelIndex = 0;
|
let currentLevelIndex = 0;
|
||||||
@@ -785,27 +786,6 @@ function finish() {
|
|||||||
const winOverlay = document.querySelector(".win-overlay");
|
const winOverlay = document.querySelector(".win-overlay");
|
||||||
winOverlay.style.visibility = "visible";
|
winOverlay.style.visibility = "visible";
|
||||||
}, 100);
|
}, 100);
|
||||||
|
|
||||||
nextLevel();
|
|
||||||
}
|
|
||||||
|
|
||||||
function nextLevel () {
|
|
||||||
currentLevelIndex++;
|
|
||||||
|
|
||||||
isLevelFinished = false;
|
|
||||||
|
|
||||||
if (currentLevelIndex >= levels.length) {
|
|
||||||
currentLevelIndex = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
initializeMirrorOrientations();
|
|
||||||
loadGrid();
|
|
||||||
laserSegments = {};
|
|
||||||
mirrorOrientations = {};
|
|
||||||
glassPlacements = {};
|
|
||||||
activatedButtons = {};
|
|
||||||
openedDoors = {};
|
|
||||||
traceLaser();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function nextLevel() {
|
function nextLevel() {
|
||||||
|
|||||||
Reference in New Issue
Block a user