Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
CandyBox2 ASCII web game (candybox2.net)
85 points by acemtp on Oct 24, 2013 | hide | past | favorite | 40 comments


Technically it's not ASCII, though, with characters like ¤ or ¨ appearing.


Exact, We should perhaps change the title.


Squirrel tips: don't overthink it. It's always much simpler than it first looks :)


Even for the Tic-Tac-Toe?


Yeah. Just try to think a bit outside the box... :)


woah thanks , i literally had to think out of the box :).


(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


Oh no not another one! There goes my afternoon :-P


Save up more than 30 candies. Start requesting features. It gets better.


"You threw 2 600 candies on the ground" I should stop that but it's really funny, you should try


Save the game in text, and replace all the false to true, then reload the game, and you get everything.


I am strangely addicted.

This is kind of like those drug dealer/mobster games that I used to play on my TI-83. Where you would all of the sudden die for no reason or get arrested.


Where can I report bugs?

There seems to be a problem with the "octupus king crown with obsidian" that makes most levels impossible.


He put this in the "cfg": Feel free to contact me at aniwey@gmail.com if you have any comment or question :)


The easiest way to cheat is to save and modify the values. Numbers can be set to `Infinity` as desired to save trouble...


Cheating is damn easy but it kills the interest in the game.


It's how i got rid of my cookie clicker addiction


I, uh, I wrote a bot... to play cookie clicker... at lightning speed.


But if you do it that way, you don't get the "cheater" special achievement!


Does something happen? Because I have ~100 candies but I looked at the source and it's HUGE. What is this!?


It's a game. When you have 30 candies, a button appears and you can start the game. more and more things unlock when you continue the game


Doh, as it was a text based game I didn't think you could click so I kept trying to press R and was just thinking it was a joke haha


Has anyone gone past the dragon? What is the solution to the puzzle at the lighthouse? Very addictive game.


Was this written in javascript directly, or compiled to javascript from another language?


The source is available at http://candybox2.net/source_code.html


Looks like it was written in TypeScript, e.g.:

    ///<reference path="Saving.ts"/>


ahh.. im already addicted. No more work will be done today. ;/


I am not really sure... what is going on here?


Just wait a bit. Damn, i wish i could live that first moment again :)


Fun. Or sort of. Playing, I just to know... :P


Better host this on ultimatetimesink.net


anyone figure out the significance of the small rocks in the cave?


for a candy hack :D

this.candies.accumulated = 1000

this.candies.current = 1000

this.candies.max = 1000


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.


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.


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.


(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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: