1.线性

来源

--------------------------------

How to make a level and XP system with unity 5


上图最后两行注释错了,differencexp为目前离升到下一级还有多少经验,totaldifference为当前等级所需升级经验。

比如从3级升到4级中,玩家当前经验条为320/700,则totaldifference为700,differencexp为380,两者相减为320。


在Excel上的表现

How to make a level and XP system with unity 5


---------------------------

2.指数型-斐波那契数列

线性的太容易被打爆,可考虑使用斐波那契数列来升级。

How to make a level and XP system with unity 5


How to make a level and XP system with unity 5


C#实现斐波那契数列

------------------------------------

3.另一指数型(按升级时间长度定义经验值)

How to make a level and XP system with unity 5

How to make a level and XP system with unity 5

How to make a level and XP system with unity 5

How to make a level and XP system with unity 5






相关文章: