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?
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. :)
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.
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 :-)
I just added a feature to the game that watches certain functions and compares them to what they were at the start of the game (during the level validation phase). I'm sure this can still be gamed though.
First of all, this is absolutely impressive in concept.
Yes, it's too easy that way:
map.pO = map.placeObject;
map.placeObject = function(x, y, w){
return map.pO(x, y, w=='block'?'empty':w);
}
Does not even need call. But while you cannot protect from `Function['p'+'rototype']['c'+'all']`, I think using `defineProperty` to stop mucking with the code would go a long way into preventing blatant cheating at little cost. That or enclosed reference funcs.
Btw, you trust the level increment counter before succeeding in loading the level. Right now calls are 503ing, so basically I'm [gisting bogus solutions](https://gist.github.com/anonymous/f1b06d63848d6d013e26) but it's also saving those bogus level ups in localstorage...
Well, the title says you play the game by modifying the game's source. Turns out you don't modify the game's source, you modify specific snippets of code that are provided on the page.
Last weekend I hacked around in the source of various online games, I anticipated this to be a similar experience but was disappointed to find that we weren't supposed to actually change the game's source.
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.
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
A few people have reported a similar bug. I don't think that it's level specific but has something to do with the next level not leading correctly upon completing a level.
We're still not sure why it happens or when (it seems to only affect a few people), but we'll try to figure it out.
There aren't any errors you can see in the JavaScript console, are there?
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 it until I got stuck on the (uneditable) level 7. I verified this because $('.editableLines') ==
[] in console! Perhaps this is a very fancy meta-game that you can only win with a pull request? :)
This took me a bit as well but there is a small bit that is editable, but I agree that it isn't clearly defined, especially when it's only a few characters and not an entire line.
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.
This is fun! But I've run into a problem. Advancement past level 14 seems to be bugged; upon completion, the keys in my inventory were replaced with a capital A which I assume to represent the algorithm, but then level 14 reloaded with a message at the bottom saying "You have lost the Algorithm!" Re-completing the level works, but the same thing happens, as many times as I like; the last time, I saw "run 17_pointers.jsx" scroll past, but still got the map and code for level 14.
My solution to level 14 [1] involved a state variable on the me object; could that have broken something?
It does! Thanks, and thanks for a fun, engrossing diversion on a rainy Monday afternoon.
(Update: Each time I enter a level, it loads as level 13, and I have to reset it to get the correct map and code -- just a heads-up in case it helps with debugging. Chrome 33.something, Windows 7 x64.)
Very fun, however once I reached the level with the DOM, I catched the opponent but the game went crazy and submitted a lot of queries to Gist (when I closed the tab, the counter was at 64, and Github was serving 403).
245 comments
[ 2.4 ms ] story [ 240 ms ] threadDid the quick ^W at work :|
map.placeObject(7,4,'exit');var a = {map: {placeObject:function(){}}};a.
PS. I'm really enjoying all the creative solutions you guys are coming up with!
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. :)
similarly,
was my solution to multiple levels ;).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
Also, is there a good way to completly prevent tampering with functions, or is this just going to be an arms race?
I mean if you want to cheat you always can. But that's not the point. Right now you can cheat using official apis.
Just use map._blah() for internal use
By the way: Same trick works for keys.
Let's hope for an arms race - it will be far more fun and educating at the same time.
Yes, it's too easy that way:
Does not even need call. But while you cannot protect from `Function['p'+'rototype']['c'+'all']`, I think using `defineProperty` to stop mucking with the code would go a long way into preventing blatant cheating at little cost. That or enclosed reference funcs.Btw, you trust the level increment counter before succeeding in loading the level. Right now calls are 503ing, so basically I'm [gisting bogus solutions](https://gist.github.com/anonymous/f1b06d63848d6d013e26) but it's also saving those bogus level ups in localstorage...
Loaded the site, popped open the Chrome Dev Tools, and was thoroughly disappointed.
Last weekend I hacked around in the source of various online games, I anticipated this to be a similar experience but was disappointed to find that we weren't supposed to actually change the game's source.
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
Does resetting these levels (Ctrl-4) help at all?
Anyway, really nice work with the game!
map.getPlayer().killedBy = function() {};
Drone just follows you around like harmless puppy.
https://gist.github.com/anonymous/dfb6822e683ea7418ea8
https://gist.github.com/anonymous/c18b7b1e7ab1d672da55
Anyhoo, nice game, it doesn't matter how you solve it, as it still proves that eval is evil ;)
We're still not sure why it happens or when (it seems to only affect a few people), but we'll try to figure it out.
There aren't any errors you can see in the JavaScript console, are there?
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 it until I got stuck on the (uneditable) level 7. I verified this because $('.editableLines') == [] in console! Perhaps this is a very fancy meta-game that you can only win with a pull request? :)
Does your level 7 not look like http://i.imgur.com/AFTxPWC.png ?
Hint: Phone functions
No clue why that's happening, but we'll continue to investigate.
---
Edit: it saves the game state in localstorage; kudos!
(Being obtuse is difficult...)
My solution to level 14 [1] involved a state variable on the me object; could that have broken something?
[1] https://gist.github.com/anonymous/8e4f11c26e5e6fe3d7d6
Try going to level 15 and resetting the level (Ctrl-4). Does that help at all?
(Update: Each time I enter a level, it loads as level 13, and I have to reset it to get the correct map and code -- just a heads-up in case it helps with debugging. Chrome 33.something, Windows 7 x64.)