I'm making an idle game where blocks fall from the sky and you must grind the blocks to earn money.
I tried using localstorage, it worked well for saving the players income.
The issue is I can't figure out a way to save the position of the blocks using localstorage. Thrre will be a ton on screen, how can I save the position of all of them?
I found the system save works perfect for this game except I need the game to save every tick. The problem with this is that's very laggy.
Saving localstorage with every tick was much smoother but I can't find a way to save positions of mulitple instances of the same objects as well as their instance variables.
Can I just use system save on exit to consistently save progress? Or maybe someone can point me in the right direction for the localstorage dilemma I face.