+ 1
If making a clicker game like cookie clicker, what's the most effecient way to make an achivements system, for total clicks?
What I did was using a switch statement with cases, I do not find that efficient at all. Any suggestions? Feel free to take a look at my code below, https://code.sololearn.com/W04PpnR03nw1/?ref=app I tried to keep it simple and not take too much space, which ended up with this switch statement.
1 Respuesta
0
Hey Ragey your approach is not so bad, depends on what you want to achieve.
I like how you put milestones on the clicks.
What you can do is, just add your click count to a variable an return it when needded without swich whenever you need it, you just have to call it.