- Home /
Idle Game Currency Optimizing
Hi! My question is simple, I'm trying to make an idle game. But there is a problem, Every idle game pretty much uses really big numbers for currency. And a simple integer can't contain that many numbers. I tought I could use double, since it can contain numbers up to 300 digits. But considering this will happen any time in game, like clicking, waiting etc, can a phone or computer handle this? Or should I make a class to convert them into more simple numbers?
Answer by Bunny83 · Aug 05, 2018 at 04:44 PM
You can use a BigInteger class if you need arbitrary long integer numbers.
But won't it slows down the game? Every second there will be dozens of objects that generate big amounts of money. But of course, if this is not a big problem for phones and such, It's good enough!