Arqade is a question and answer site for passionate videogamers on all platforms. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I uh.. have been using Javascript sorcery* to get ridiculous amount of candies in Candy Box.

Javascript sorcery

I am wondering if I could break the game, encounter horrible game bugs or by-design game features that could have a negative effect on gameplay if I keep on doing this. Can I add any amount of candy or lollipops that I want without encountering any problems?

* cheats

share|improve this question
You will eventually overflow a variable if you push too far. I think that would be all.. – user28015 May 11 '13 at 4:26

I found a possible side effect. If you eat a ridiculous amount of candies, your hitpoints will get so high, that...

...fighting yourself will take a long time: enter image description here

share|improve this answer
Since we're using javascript cheats anyhow, this can easily be overcome by writing in the code sword.setSpecialPower(x);. – Teofrostus May 11 '13 at 14:52


I needed to sleep, so set candies.candiesPerSecond very very high so I could complete the game and get to bed.

enter image description here

There are no negative side effects, I was even able to save and reload the game.

share|improve this answer

Since javascript has dynamic variables, you can make the numbers as high as you possibly want as long as javascript can handle it. For AFAIK there shouldn't be a problem with huge numbers. It will be transformed to the e-notation. Once you finish the game and randomize everything using the "computer" it also comes up with such huge values.

share|improve this answer

For some reason, whenever I had cheated, I couldn't move up and down in hell. I don't know what's wrong or how to fix it. It's probably because I'm using Chrome.

@badp I wish I could do that. I honestly have no idea why my game is doing this. It's annoying, but I guess I'm just going to have to do this the hard way :P.

@Ullallulloo Thanks for editing and respecting my answer :).

share|improve this answer
I cheated rather blatantly and haven't had trouble. – badp Jun 1 '13 at 22:07
What Javascript codes were you using? – galacticninja Jun 2 '13 at 5:00

The only negative aspect I can see, is messing up a spelling, that messes up your game in some unforeseen manner. Nearly impossible.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.