55

如何设计游戏内通用的解锁实现

 6 years ago
source link: http://gad.qq.com/question/detail/39808#answer34640
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
比如在设计玩家背包的的容量时,可以由玩家等级或者玩家通过付费来解锁背包容量,但是为了能减少后期需求变化后,代码进行修改的情况。如果能把解锁这个操作抽象出来,后期修改了解锁方式,只需要将对应的解锁操作类...

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK