Live data from Hacker News

Show HN: Untrusted, a JavaScript adventure game you play by modifying its source

alex.nisnevich.com

111–120 of 246 posts

Re: Show HN: Untrusted, a JavaScript adventure game you play by modifying its source

#111
post #5

You should reinit the map though, otherwise doing this on level 2 causes funny bugs (and makes the game rather easy ;) maze.create = function() {}; var tmp = map.placeObject; map.placeObject = function(x, y, t) { if(t == 'exit') tmp(x,y,t); };

level 2 can be solved by using the two "unlocked" lines to comment out the whole maze.create call, too.

Related: things like these do not work, because of implementation.

    if (false) // 
Too bad, because extra `for`s could be fun...

Re: Show HN: Untrusted, a JavaScript adventure game you play by modifying its source

#113
post #98

Hey guys, one of the developers here. Thank you all so much for all of your feedback! I never thought this game would become so popular. It seems that our server is more or less overloaded right now, so AJAX requests for new levels are sometimes failing. This appears to be the cause of the bugs that some of you have experienced where levels load incorrectly or are overwritten by previous levels. Sorry about that. :-/…

When I exit level 1 it just re-loads level 1... is this the bug you're referring to?

Re: Show HN: Untrusted, a JavaScript adventure game you play by modifying its source

#114
post #20

Earlier quoted context omitted.

Good catch! We haven't been checking yet for tampering with functions, but we probably should. Don't think of it as a bug so much as a cheatcode you discovered :-)

Aww, I thought that was to easy. That trick works for basically any level. Also, is there a good way to completly prevent tampering with functions, or is this just going to be an arms race?

> Also, is there a good way to completly prevent tampering with functions, or is this just going to be an arms race?

Let's hope for an arms race - it will be far more fun and educating at the same time.

Re: Show HN: Untrusted, a JavaScript adventure game you play by modifying its source

#115
post #20
post #12

This is fun. But I have one wish. Overwrite console.log() so it logs onto the website and I don't need to open firebug :) Edit: I think I solved lvl two to four all the same way. Not sure if that's intended. But I also don't want to spoil it for others. Edit 2: This worked again at lvl 6, so I'll assume that's a bug. Click this pastebin for spoilers: http://pastebin.com/yfhDhE7P

Good catch! We haven't been checking yet for tampering with functions, but we probably should. Don't think of it as a bug so much as a cheatcode you discovered :-)

I did a similar thing for level 6: http://pastebin.com/aScFtgK8

Re: Show HN: Untrusted, a JavaScript adventure game you play by modifying its source

#117
post #37

Earlier quoted context omitted.

I made a wall to circle around the drone. Pretty fun.

I found it easier to make myself invincible. map.getPlayer().killedBy = function() {}; Drone just follows you around like harmless puppy. https://gist.github.com/anonymous/dfb6822e683ea7418ea8

Neo: What are you trying to tell me? That I can dodge bullets? Morpheus: No, Neo. I'm trying to tell you that when you're ready, you won't have to. :)

Re: Show HN: Untrusted, a JavaScript adventure game you play by modifying its source

#118
post #96
post #91

Earlier quoted context omitted.

Do you have any tools available to you that let you execute code at a chosen time?

hah, I tried that multiple times, i get: You are not allowed to use call!

Don't forget about the function phone! :-)

Re: Show HN: Untrusted, a JavaScript adventure game you play by modifying its source

#119
In level 10 ambush I set

        function (me) {}
for the red and yellow drones and

        function (me) {
            var r = 'right:'+me.canMove('right');
            var l = 'left: '+me.canMove('left')
            alert(r+'; '+l);
        }
for the green drones. But I always get 'right:true; left: true'. WTFFFFFF? :-( Please please fix that, please!!!
Post reply on HN