June 2015
Beginner
354 pages
8h 23m
English
Let's add the game logic to our line intersection code:
untangle.game.js and untangle.levels.js file. Put them into the js folder.index.html file in a text editor. Add the following code to include our newly created file. Put the code in the file before including the js/untangle.js file:<script src="js/untangle.levels.js"></script> <script src="js/untangle.game.js"></script>
index.html file, we add the following code after the canvas element. It displays the game level information:<p>Puzzle <span id="level">0</span>, Completeness: <span id="progress">0</span>%</p>
untangle.levels.js file. ...Read now
Unlock full access