untrusted-test-only / solutions /21_endOfTheLine.md
lychees's picture
Upload 569 files
87b3b3a
## Jhack (giacgbj)
For example, in:
* Menu -> Scripts -> object.js:
you can modify this code:
```javascript
if (!game.map.finalLevel) {
game._moveToNextLevel();
}
```
like this:
```javascript
if (game.map.finalLevel) {
game._moveToNextLevel();
}
```
*esolitos note*: Or symply remove/comment the if.
## Agamemnus
In map.js, before this._reset():
```javascript
Object.defineProperty (this, 'finalLevel', {
set: function () {setTimeout (function () {__game._moveToNextLevel ()}, 0)}
})
```
## mrtank
In map.js's unexposed variables you can write:
```javascript
__game._getLevel(22);
```