Skip to content

Instantly share code, notes, and snippets.

@Jorger
Created September 16, 2018 22:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Jorger/d4af293c825cdea848f1b2610a97aeac to your computer and use it in GitHub Desktop.
Save Jorger/d4af293c825cdea848f1b2610a97aeac to your computer and use it in GitHub Desktop.
//Saber si todos están conectados...
if (globalPipes.length === actualWorld[1].length) {
const pipesFinish = numFinalElements.reduce(
(a, s) => a + (s[1] !== 0),
0
);
if (pipesFinish === actualWorld[2].length) {
finishLevel = true;
modalText(true, "Next Level");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment