Live data from Hacker News

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

alex.nisnevich.com

41–50 of 246 posts

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

#41
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

Does firebug override the ctrl+shift+K javascript console?, curious because I don't use it.

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

#42
Very fun. I found a bug that lets me skip levels 8-11 by using this code in the phone callback on level 7:

  if ( ! ( player.cc && player.cc.length ) ) {
       player.cc = ['#f00', '#ff0', '#0f0'];
  }
  player.setColor(player.cc.shift());
It says it's loading the next level, but the code and gamefield remain stuck on level 7 until you push it to level 12.

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

#43
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

Does firebug override the ctrl+shift+K javascript console?, curious because I don't use it.

[deleted]

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

#44

Borks at level 7, upon touching phone with undebuggable message on canvas: d up the function p 1, found:oad the level Wone! number of exits ...

Alnis, love the game! But I also ran into unexpected behavior after clearing level 7 (change your color). It kept reloading the same level, but opening up new levels in Level select. Even so, clicking on higher levels keeps reloading the same colors.js screen.

Another weird thing I noticed was that next to the computer and telephone in the inventory, two letters "k" appeared. I'm using Firefox 28 on Windows 7.

Here's the solution I used for colors.js https://gist.github.com/anonymous/ab5cd3b393c290fbf8c1

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

#45
post #38

I'm not sure what happened with level 4 multiplicity, but I placed a 2nd exit inside the box. Then when I go through it says it completed the level but I'm still on the multiplicity level. Reseting does not fix. https://gist.github.com/anonymous/0dafb64fad2ddd6fd451

Think it's a bug: https://www.youtube.com/watch?v=Izs5wFFAaaU

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

#46

Very cool! I'm stuck on level 7 because it seems that the script isn't editable anywhere . Related note, the color scheme for highlighting editable lines might want to change, because "black on dark maroone" doesn't exactly jump out. Love that you're auto-gisting solutions. That was clever - I presume you are browsing through searching for the common description tag? I also like the API popup, although I didn't see i…

Thanks!

Does your level 7 not look like http://i.imgur.com/AFTxPWC.png ?

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

#47
post #42

Very fun. I found a bug that lets me skip levels 8-11 by using this code in the phone callback on level 7: if ( ! ( player.cc && player.cc.length ) ) { player.cc = ['#f00', '#ff0', '#0f0']; } player.setColor(player.cc.shift()); It says it's loading the next level, but the code and gamefield remain stuck on level 7 until you push it to level 12.

We're glad you like it!

No clue why that's happening, but we'll continue to investigate.

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

#48
post #46

Very cool! I'm stuck on level 7 because it seems that the script isn't editable anywhere . Related note, the color scheme for highlighting editable lines might want to change, because "black on dark maroone" doesn't exactly jump out. Love that you're auto-gisting solutions. That was clever - I presume you are browsing through searching for the common description tag? I also like the API popup, although I didn't see i…

Thanks! Does your level 7 not look like http://i.imgur.com/AFTxPWC.png ?

He means level 8, I think. Or at least I have the same problem with level 8 (intoTheWoods)

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

#49
post #37
post #28

stupid drones, me.selfDestruct (tableflip)

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

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

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

you don't need 2 lines, you only need the one below to overwrite the map function, and leave an open dot :D

map.placeObject(7,4,'exit');var a = {map: {placeObject:function(){}}};a.

Post reply on HN