模块化设计
以模块拼凑游戏
以顶视角塔防为例
GamePlayObjects
TopObjects
Player
Tower
Charactor
Summons
SubObjects
Friend
Enemy
Arrow
Attachments
Buffer (每帧)
AbilityUser
Buff
SkillUser
TimeLine (特定时间点)
AOE
Skill
*Controller
Rotate controller
Move controller
Charactor move controller
调用链
GamePlayOjbect -创建-> Attachment ( -使用-> Controller ) -改变-> Transform
能力系统 Ability
AbilityUser
Ability(abstruct)
防御塔种植能力 TowerPlantAbility
*角色移动能力 CharactorMoveAbility
寻路能力 AutoMoveAbility
防御塔发射箭矢能力 TowerShotArrowAbility
箭矢移动能力 ArrowMoveAbility
自动转向能力 AutoRotateAbility
发出伤害能力 SendDamageAbility
受到伤害能力 ReceiveDamageAbility
死亡能力 DepthAbility
最后更新于