I was sad that I couldn't figure out how to run this. :-(
It did not run for me in the web console in firefox:
[10:15:03.006] TypeError: this.candies is undefined
but then I realized how useful the lollypop farm is and was quite happy.
Re:CandyBox2 ASCII web game
by chocolate_ on Thursday October 24, 2013 @11:23AM
(#6605771)
It won't work now. See candyluver13's comment below for a working cheat.
yeah , before typing you need to stop by pressing pause in the debugger.
Re:CandyBox2 ASCII web game
by JonSkeptic on Thursday October 24, 2013 @08:15AM
(#6604753)
This game is kind of fun. I would feel bad cheating it.
wow, it really hacks! how could u find this bug?
Most if not all of the code runs on the client side, it's expected you can cheat pretty much anything in the game.
Re:CandyBox2 ASCII web game
by candyluver13 on Thursday October 24, 2013 @11:06AM
(#6605670)
(function () { for (var i = 1; i < 99999; i++) window.clearInterval(i); var pl = Game.prototype.postLoad; Game.prototype.postLoad = function () { window.game = this; pl.call(this); }; Main.documentIsReady(); })();
game.candies.current = 999999999999
this.candies.accumulated = 1000
this.candies.current = 1000
this.candies.max = 1000