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 commentscheepin12 years ago#aww, I tried to sacrifice my phone for an easier solution for the last problem, but apparently I need it in the end.[-]tpae12 years ago2 replies#stupid drones, me.selfDestruct (tableflip)[-]henryw12 years ago2 replies#I made a wall to circle around the drone. Pretty fun.[-]Siliconic12 years ago3 replies#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/dfb6822e683ea7418ea8randunel12 years ago#hahah i love this game :DVagasaurus12 years ago#Works for the water as well. :]BostX12 years ago#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. :)Rampoina12 years ago#I did the exact same thing.[-]RobotCaleb12 years ago1 reply#Make your own drones.https://gist.github.com/anonymous/c18b7b1e7ab1d672da55SAFAD12 years ago#This gave me a good laugh, thank you :D[-]gabemart12 years ago9 replies#Can anyone give me a hint for level 12?XaspR8d12 years ago#You're defining a robot's properties, so you might want to define its properties. That'll open the door to higher-level navigation logic.(Being obtuse is difficult...)rooodini12 years ago#I made the robot follow a cosine curve. Cute but ridiculous solution.pilom12 years ago#wow that level took me forever. Ended up using things along the lines of if( me.getX() < 15) {move down then right} elst if me.getX()>15 and < 30 {move up then right} etc.lockes5hadow12 years ago#You could always implement a-star, a searching algorithm.frzen12 years ago#You could create your own robot control system based on pressure plates as wellcheepin12 years ago#I personally wired the bot to track and follow my movements. Then I just walked the bot through the maze.icemelt812 years ago#What if the triangular walls were straight?bluesnowmonkey12 years ago#I encoded a route. moves = [['down', 5], ['right', 20], ['up', 1] /* and so on */]subtenante12 years ago#map.getPlayer()['hasItem'] = function yes () { return true; };[-]icemelt812 years ago2 replies#Stuck at level 13 :(amoonki12 years ago#I solved it by basing the robot's movements off my own using my position. Hopefully that's vague enough to be a decent hint but not a giveaway...exolab12 years ago#Just a hint: you can set your player's colour.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
cheepin12 years ago#aww, I tried to sacrifice my phone for an easier solution for the last problem, but apparently I need it in the end.
Siliconic12 years ago3 replies#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
BostX12 years ago#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. :)
RobotCaleb12 years ago1 reply#Make your own drones.https://gist.github.com/anonymous/c18b7b1e7ab1d672da55
XaspR8d12 years ago#You're defining a robot's properties, so you might want to define its properties. That'll open the door to higher-level navigation logic.(Being obtuse is difficult...)
pilom12 years ago#wow that level took me forever. Ended up using things along the lines of if( me.getX() < 15) {move down then right} elst if me.getX()>15 and < 30 {move up then right} etc.
cheepin12 years ago#I personally wired the bot to track and follow my movements. Then I just walked the bot through the maze.
bluesnowmonkey12 years ago#I encoded a route. moves = [['down', 5], ['right', 20], ['up', 1] /* and so on */]
amoonki12 years ago#I solved it by basing the robot's movements off my own using my position. Hopefully that's vague enough to be a decent hint but not a giveaway...
Comments (235) 72 threads
Earlier commentsmap.getPlayer().killedBy = function() {};
Drone just follows you around like harmless puppy.
https://gist.github.com/anonymous/dfb6822e683ea7418ea8
https://gist.github.com/anonymous/c18b7b1e7ab1d672da55
(Being obtuse is difficult...)
All comments shown.
Couldn't load more comments. Check your connection and try again.