R
R
Rag'n' Code Man2020-05-03 15:43:16
C++ / C#
Rag'n' Code Man, 2020-05-03 15:43:16

How should you save data on the number of coins in a clicker?

Good afternoon!
I recently had the urge to make a clicker (I already did it once, but it was a buggy guan), and I thought about how to store the data on the number of coins collected in the new clicker.

Before that, I used PlayerPrefs.SetInt()from Unity, but I didn’t like it for several reasons: it only works with int and string, and in my clicker the values ​​go far beyond int.MaxValue, and I may store not only numerical values.

Of course, you can make such an economy that 1 unit of this currency is already an achievement.

But I'm worried about how to save the data? If I serialize every click, will it affect performance in any way?

Maybe I'll send all the data to the firebase, but won't it explode (or block me) if each player presses the button 10 times per SEC?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Daniil Demidko, 2020-05-03
@Chronicler

If I serialize every click, will it affect performance in any way?

Of course it will.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question