Live data from Hacker News

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

alex.nisnevich.com

11–20 of 246 posts

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

#11
post #9

I broke level 4. Is there an obvious way that I am missing to reset at the level you're on when the reset functionality provided under the text editor is insufficient?

The Reset button should completely reset editor state for the level. What happened?

Btw, I should have said first that I love this game idea and myself and my coworkers have been playing it a bit for the last 20 minutes or so.

I broke my game by reassigning the getWidth method to return an invalid value:

map.getWidth = function() { return 1; }

The approach worked with a valid value: ( map.getWidth = function() { return 6; } ) and I beat the level, but I had to replay the previous 3 levels.

Some suggestions (Again, we loved the game!) - Provide some interface to conveniently index all the solution Gists. - Provide some way to quickly skip to last level played.

Other thoughts: - Enjoyed the look, feel, and user interaction. - The music was great. - I will keep playing this game. :)

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

#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

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

#13
post #9

Earlier quoted context omitted.

The Reset button should completely reset editor state for the level. What happened?

Btw, I should have said first that I love this game idea and myself and my coworkers have been playing it a bit for the last 20 minutes or so. I broke my game by reassigning the getWidth method to return an invalid value: map.getWidth = function() { return 1; } The approach worked with a valid value: ( map.getWidth = function() { return 6; } ) and I beat the level, but I had to replay the previous 3 levels. Some sugg…

Oh, quick note - you can skip to the last level played in the Menu (Ctrl-0). We should probably make that more obvious.

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

#14
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); };

If you reload the game, the map should now re-init on every level.

PS. I'm really enjoying all the creative solutions you guys are coming up with!

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

#17

I tried to move the exit inside the walls. I was unable to edit any of the code. I thought that was the point?

Ctrl+5 to reload the level after you changed it. Did you do that? On one of the levels I created a new exit inside, and it worked.

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

#18
post #13

Earlier quoted context omitted.

Btw, I should have said first that I love this game idea and myself and my coworkers have been playing it a bit for the last 20 minutes or so. I broke my game by reassigning the getWidth method to return an invalid value: map.getWidth = function() { return 1; } The approach worked with a valid value: ( map.getWidth = function() { return 6; } ) and I beat the level, but I had to replay the previous 3 levels. Some sugg…

Oh, quick note - you can skip to the last level played in the Menu (Ctrl-0). We should probably make that more obvious.

Ah - I see what menu does now. I love this game and have uncovered a few broken game states. This mainly happens when I reassign one of the API methods. Are you interested in user-submitted issues? Let me know; I could email them to you or log them on your GH; whatever is convenient.

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

#19
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.

That's kinda the point, though. Read the comments for that file. ;)

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

#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 :-)
Post reply on HN