Show HN: Untrusted, a JavaScript adventure game you play by modifying its source
191–200 of 246 posts
Re: Show HN: Untrusted, a JavaScript adventure game you play by modifying its source
#192Here's an Iron Man inspired solution for the boss battle :) map.placeObject(map.getWidth()/2, 5, 'block'); //map.placeObject(map.getWidth()/2, 1, 'block'); var player = map.getPlayer(); map.defineObject('missile', { 'type': 'dynamic', 'symbol': '^', 'color': 'blue', 'interval': 100, 'projectile': true, 'behavior': function (me) { me.move('up'); } }); function jericho() { var i; for (i = 3; i
map.overrideKey('up', function() {
if (map.countObjects('boss') > 0) {
for (var x = 0; x Re: Show HN: Untrusted, a JavaScript adventure game you play by modifying its source
#193Here's an Iron Man inspired solution for the boss battle :) map.placeObject(map.getWidth()/2, 5, 'block'); //map.placeObject(map.getWidth()/2, 1, 'block'); var player = map.getPlayer(); map.defineObject('missile', { 'type': 'dynamic', 'symbol': '^', 'color': 'blue', 'interval': 100, 'projectile': true, 'behavior': function (me) { me.move('up'); } }); function jericho() { var i; for (i = 3; i
For the truly lazy, this was my approach: map.overrideKey('up', function() { if (map.countObjects('boss') > 0) { for (var x = 0; x
Re: Show HN: Untrusted, a JavaScript adventure game you play by modifying its source
#194Is there any solution to the ambush level other than the obvious solution of moving the drones out of the way?
Re: Show HN: Untrusted, a JavaScript adventure game you play by modifying its source
#195Any tips on level 15? Once the player is killed what could I possibly do?
I actually figured something out with this which is weird, because I don't think it has to do with exceptions. I passed in a new object of an undeclared type and just walked across the water, which I can't explain. Can anyone help?
Re: Show HN: Untrusted, a JavaScript adventure game you play by modifying its source
#196Is there any solution to the ambush level other than the obvious solution of moving the drones out of the way?
Of course. I made them harmless and walked right through them.
Re: Show HN: Untrusted, a JavaScript adventure game you play by modifying its source
#197:'( I'm stuck at crispsContest.js lvl
This level was driving me crazy (mostly because of the character limit). The solution that I found is kind of silly: it turns out the removeItem function is dumber than you probably think it is.
Additionally it doesn't support injection there, so while "player.removeItem('greenKey'); player.additem('greenKey');" should work, it says "TypeError: undefined is not a function".
Re: Show HN: Untrusted, a JavaScript adventure game you play by modifying its source
#198Anybody think of another way to do the robot levels without adding any state? https://gist.github.com/db41e069df7bae142248
Re: Show HN: Untrusted, a JavaScript adventure game you play by modifying its source
#199Re: Show HN: Untrusted, a JavaScript adventure game you play by modifying its source
#200Any tips for level 17? I can't seem to figure out a solution for the teleporters using the getObjectCoords hint that was given