This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Runner.instance_.horizon.obstacles[0].collisionBoxes | |
| // Runner.instance_.tRex.startJump() | |
| // Runner.instance_.tRex.config.WIDTH | |
| // Runner.instance_.tRex.config.HEIGHT | |
| // Runner.instance_.tRex.xPos + 1 | |
| // Runner.instance_.tRex.yPos + 1 | |
| const CONFIG = { | |
| deltaX: 0, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * This code sloves the problem with gin in rooms. | |
| */ | |
| const GIN_IN_ROOM = true; | |
| const GIN_NOT_IN_ROOM = false; | |
| function generateRooms(length, fillWith) { | |
| return Array.apply(null, Array(length)).map(_ => fillWith); | |
| } |