123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143 |
- {
- "desgin":{
- "monsterDis":"怪物生成点跟玩家位置的距离",
- "maxAnger":"最大怒气值",
- "monsters":[
- {
- "id":"唯一ID",
- "monsterId":"怪物模板ID",
- "moveSpeed":"怪物移动速度",
- "moveAnimation":"移动动画名称",
- "moveAnimationSpeed":"移动动画播放速度",
- "hp":"怪物血量",
- "damage":"伤害",
- "anger":"死亡时为玩家增加的怒气值",
- "attackAnimation":"攻击动画名称",
- "attackAnimationSpeed":"攻击动画播放速度",
- "attackAnimationEvents":[
- {
- "frame":"动画开始多少秒时调用下面的func方法",
- "func":"回调方法名",
- "params":["参数数组"]
- }
- ],
- "damageAnimation":"受伤动画名",
- "damageAnimationSpeed":"受伤动画播放速度",
- "dieAnimation":"死亡动画名",
- "dieAnimationSpeed":"死亡动画播放速度",
- "createTime":"怪物生成时间点(相对于这局游戏开始时间)",
- "startPos":"出生点 0 左 1中 2右"
- }
- ]
- },
- "data":{
- "monsterDis":50,
- "maxAnger":100,
- "monsters":[
- {
- "id":1,
- "monsterId":1,
- "moveAnimation":"Walk",
- "moveAnimationSpeed":1,
- "moveSpeed":5,
- "hp":100,
- "damage":10,
- "anger":1,
- "attackAnimation":"Attack",
- "attackAnimationSpeed":1,
- "attackAnimationEvents":
- [
- {
- "frame":0.1,
- "func":"AttackDamageFrame",
- "params":[]
- }
- ],
- "damageAnimation":"Damage",
- "damageAnimationSpeed":1,
- "dieAnimation":"Die",
- "dieAnimationSpeed":1,
- "createTime":1000,
- "startPos":0
- },
- {
- "id":2,
- "monsterId":1,
- "moveSpeed":5,
- "moveAnimation":"Walk",
- "moveAnimationSpeed":1,
- "hp":100,
- "damage":10,
- "anger":1,
- "attackAnimation":"Attack",
- "attackAnimationSpeed":1,
- "attackAnimationEvents":
- [
- {
- "frame":0.1,
- "func":"AttackDamageFrame",
- "params":[]
- }
- ],
- "damageAnimation":"Damage",
- "damageAnimationSpeed":1,
- "dieAnimation":"Die",
- "dieAnimationSpeed":1,
- "createTime":1000,
- "startPos":1
- },
- {
- "id":3,
- "monsterId":1,
- "moveSpeed":5,
- "moveAnimation":"Walk",
- "moveAnimationSpeed":1,
- "hp":100,
- "damage":10,
- "anger":1,
- "attackAnimation":"Attack",
- "attackAnimationSpeed":1,
- "attackAnimationEvents":
- [
- {
- "frame":0.1,
- "func":"AttackDamageFrame",
- "params":[]
- }
- ],
- "damageAnimation":"Damage",
- "damageAnimationSpeed":1,
- "dieAnimation":"Die",
- "dieAnimationSpeed":1,
- "createTime":1000,
- "startPos":2
- },
- {
- "id":4,
- "monsterId":1,
- "moveSpeed":5,
- "moveAnimation":"Walk",
- "moveAnimationSpeed":1,
- "hp":100,
- "damage":10,
- "anger":1,
- "attackAnimation":"Attack",
- "attackAnimationSpeed":1,
- "attackAnimationEvents":
- [
- {
- "frame":0.1,
- "func":"AttackDamageFrame",
- "params":[]
- }
- ],
- "damageAnimation":"Damage",
- "damageAnimationSpeed":1,
- "dieAnimation":"Die",
- "dieAnimationSpeed":1,
- "createTime":2000,
- "startPos":2
- }
- ]
- }
- }
|