In my game I am solving a problem, and I am getting certain points for each problem. Just like collecting numbers falling from the top.
Now I want to calculate a high score on the basis of two items i.e. solved points and time it took to solve until the user get it wrong.
How would I rank any player based on the two events?
(total points) = (1st way) + (2nd way)
or(total points) = (1st way) * (2nd way)
? \$\endgroup\$ – Filip Milovanović Jan 7 at 5:34float pointsPerSecond = 1.0f; float pointsPerCoin = 10.0f; int finalScore = (int)(survivalTimeInSeconds * pointsPerSecond) + (int)(coinsCollected * pointsPerCoin);
It's a simple formula and should help you keep your scores in a predictable range without limiting the max score. \$\endgroup\$ – Benjamin Danger Johnson Jan 7 at 7:10