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
Show HN: Untrusted, a JavaScript adventure game you play by modifying its source
41–50 of 246 posts
Re: Show HN: Untrusted, a JavaScript adventure game you play by modifying its source
#42 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
#43This 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
#44Borks 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 ...
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
#45I'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
Re: Show HN: Untrusted, a JavaScript adventure game you play by modifying its source
#46Very 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…
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
#47Very 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.
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
#48Very 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
#49stupid drones, me.selfDestruct (tableflip)
I made a wall to circle around the drone. Pretty fun.
map.getPlayer().killedBy = function() {};
Drone just follows you around like harmless puppy.
Re: Show HN: Untrusted, a JavaScript adventure game you play by modifying its source
#50You 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.
map.placeObject(7,4,'exit');var a = {map: {placeObject:function(){}}};a.