Mozilla's BrowserQuest - Massively Multiplayer HTML5 Experiment
browserquest.mozilla.org
browserquest.mozilla.org
If you want the best weapons in the game, the sword is called 'goldensword' and the armor is call 'goldenarmor'.
I guess the OP's comment of local storage was also to point out the 'flaw' since it is for a multiplayer game.
localStorage.data = localStorage.data.replace('sword1', goldensword')
But it just reverts after I type that into the console. Could someone explain how it works?
localStorage.data = JSON.stringify((function (data) { data.player.weapon = 'goldensword'; return data })(JSON.parse(localStorage.data)))
and then reloaded the page, and I had the golden sword.It be fun to show off if someone figured it out.
And this is actually a nice little game. Buy then again, where is browserid and open badges support ?
"... adoption comes down to the developers, all Mozilla can do is provide the tools."
I don't really care whether it has BrowserID or not. It just seemed that the parent was unaware that the game was a Mozilla project.
For anyone wondering about the 2 mystery achievements at the end; the clues are in client/js/game.js ( https://github.com/mozilla/BrowserQuest/blob/master/client/j... ), line 278.
Hiding the clues in the code like that just adds to the coolness. Great touch!
There are easter eggs all over the place. I don't want to spoil them but a bunch of them really made me smile.
It's weird to me that they list the node dependencies in the server README instead of using a package.json.
Very cool project, though.
Second ??? quest: Enter a portal. I found one to the east-southeast to the starting point.
Still trying to figure out the last one.
Alternately, just stumble around until you find a room with one top entry and 3 bottom entries. Take the bottom left door, which will take you to Rick.
When I talked to Flash developers, their main concerns were having to worry about different browsers and their belief that everything became "open source" automatically because you can just view the source. They don't want to spend weeks on a project that sets them apart from other competitors only to be copied by the next guy within a day.
And yes, I think this separation is ridiculous.
Websock , Comet or ajax?
I had my guy move to the other side of a barrier, and he did so by taking a path through the adjacent square - but then my view was in the adjacent square, my guy moved offscreen, never to return.
For such a slick demo, that was really unexpected.
Outstanding work that I'm sure is going to inspire a lot of people. Though I don't see a license file anywhere.
I can see only "{", to view the full i need to go to Raw format. I think Github should provide support for formatted json.