16.09.2016, 13:11
Don't bother hard coding arbitrary limits. Find a proper formula that can calculate the amount of required XP for you. The curve can either be linear or exponential, i.e. leveling up is easy with low levels but becomes progressively harder. Excel is your friend. Experiment.
PHP код:
GetRequiredXPForLevel(level)
{
return floatround(floatpower(level, 1.32) * 100);
}