Back to front pageView on Hacker News (opens in a new tab)Show HN: Untrusted, a JavaScript adventure game you play by modifying its source (opens in a new tab)alex.nisnevich.com555 pointsby alnis (on Hacker News)12 years agoComments (235) 72 threadsEarlier comments[-]neil_s12 years ago5 replies#Any tips for level 9? I can't seem to find a handle on the raft to be able to modify its behaviour directly.[-]paulhodge12 years ago1 reply#Is there anything else you could modify to change what the raft does?[-]31cup12 years ago1 reply#Yes...but I can't do it at an intelligent time.alnis12 years ago5 replies#Do you have any tools available to you that let you execute code at a chosen time?Continue this thread — 5 repliesRetr0spectrum12 years ago#If you can't modify it, make a new one._vmve12 years ago#There's a variable that stores the rafts direction...egypturnash12 years ago#What if there's more than one raft?Mladjo12 years ago#Build a bridge :) https://gist.github.com/anonymous/0dea3ab11a2e71e6e7c7[-]wingerlang12 years ago1 reply#Any way I can go to a level directly? I was on level 12 but my computer died, and it did not save any progress.[-]ekmartin12 years ago1 reply#Did you check the menu at ^0?wingerlang12 years ago#Ah, they were saved there! Thanks![-]davearch12 years ago1 reply#This is awesome but it keeps repeating the first level! I get the solution but then it just reloads everything.alnis12 years ago#The game was broken for a bit, and it's possible that your saved state got corrupted.Try restarting the game by running localStorage.clear() in the JavaScript console, then refreshing the page. Does that fix it?[-]epsylon12 years ago1 reply#Is there any solution to the ambush level other than the obvious solution of moving the drones out of the way?[-]SheeEttin12 years ago1 reply#Of course. I made them harmless and walked right through them.[-]epsylon12 years ago1 reply#Tried that, but for some reason I couldn't disable the onCollision by assigning it to some dummy function. Do you mind sharing your solution?SheeEttin12 years ago#I wish we could retrieve the solution we used for past levels. :(Okay, I think I've replicated it. I just overrode onCollision with empty braces, so the final definition looked like this: map.defineObject('attackDrone', { 'type': 'dynamic', 'symbol': 'd', 'color': 'red', 'onCollision': function (player) { player.killedBy('an attack drone'); }, 'behavior': function (me) { }, 'onCollision': function (player) { } }); Note that you're closing the game's braces, inserting another definition, then re-opening braces to match the game's closing ones.Load more commentsAll comments shown.Couldn't load more comments. Check your connection and try again.
Show HN: Untrusted, a JavaScript adventure game you play by modifying its source (opens in a new tab)alex.nisnevich.com555 pointsby alnis (on Hacker News)12 years ago
neil_s12 years ago5 replies#Any tips for level 9? I can't seem to find a handle on the raft to be able to modify its behaviour directly.
alnis12 years ago5 replies#Do you have any tools available to you that let you execute code at a chosen time?
wingerlang12 years ago1 reply#Any way I can go to a level directly? I was on level 12 but my computer died, and it did not save any progress.
davearch12 years ago1 reply#This is awesome but it keeps repeating the first level! I get the solution but then it just reloads everything.
alnis12 years ago#The game was broken for a bit, and it's possible that your saved state got corrupted.Try restarting the game by running localStorage.clear() in the JavaScript console, then refreshing the page. Does that fix it?
epsylon12 years ago1 reply#Is there any solution to the ambush level other than the obvious solution of moving the drones out of the way?
epsylon12 years ago1 reply#Tried that, but for some reason I couldn't disable the onCollision by assigning it to some dummy function. Do you mind sharing your solution?
SheeEttin12 years ago#I wish we could retrieve the solution we used for past levels. :(Okay, I think I've replicated it. I just overrode onCollision with empty braces, so the final definition looked like this: map.defineObject('attackDrone', { 'type': 'dynamic', 'symbol': 'd', 'color': 'red', 'onCollision': function (player) { player.killedBy('an attack drone'); }, 'behavior': function (me) { }, 'onCollision': function (player) { } }); Note that you're closing the game's braces, inserting another definition, then re-opening braces to match the game's closing ones.
Comments (235) 72 threads
Earlier commentsContinue this thread — 5 replies
Try restarting the game by running localStorage.clear() in the JavaScript console, then refreshing the page. Does that fix it?
Okay, I think I've replicated it. I just overrode onCollision with empty braces, so the final definition looked like this:
Note that you're closing the game's braces, inserting another definition, then re-opening braces to match the game's closing ones.All comments shown.
Couldn't load more comments. Check your connection and try again.