|
@@ -1,30 +1,38 @@
|
|
|
{
|
|
|
"desgin":{
|
|
|
- "id":"唯一ID",
|
|
|
- "monsterId":"怪物模板ID",
|
|
|
- "moveSpeed":"怪物移动速度",
|
|
|
- "moveAnimation":"移动动画名称",
|
|
|
- "moveAnimationSpeed":"移动动画播放速度",
|
|
|
- "hp":"怪物血量",
|
|
|
- "damage":"伤害",
|
|
|
- "attackAnimation":"攻击动画名称",
|
|
|
- "attackAnimationSpeed":"攻击动画播放速度",
|
|
|
- "attackAnimationEvents":[
|
|
|
+ "monsterDis":"怪物生成点跟玩家位置的距离",
|
|
|
+ "maxAnger":"最大怒气值",
|
|
|
+ "monsters":[
|
|
|
{
|
|
|
- "frame":"动画开始多少秒时调用下面的func方法",
|
|
|
- "func":"回调方法名",
|
|
|
- "params":["参数数组"]
|
|
|
+ "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右"
|
|
|
}
|
|
|
- ],
|
|
|
- "damageAnimation":"受伤动画名",
|
|
|
- "damageAnimationSpeed":"受伤动画播放速度",
|
|
|
- "dieAnimation":"死亡动画名",
|
|
|
- "dieAnimationSpeed":"死亡动画播放速度",
|
|
|
- "createTime":"怪物生成时间点(相对于这局游戏开始时间)",
|
|
|
- "startPos":"出生点 0 左 1中 2右"
|
|
|
+ ]
|
|
|
},
|
|
|
"data":{
|
|
|
"monsterDis":50,
|
|
|
+ "maxAnger":100,
|
|
|
"monsters":[
|
|
|
{
|
|
|
"id":1,
|
|
@@ -34,6 +42,7 @@
|
|
|
"moveSpeed":5,
|
|
|
"hp":100,
|
|
|
"damage":10,
|
|
|
+ "anger":1,
|
|
|
"attackAnimation":"Attack",
|
|
|
"attackAnimationSpeed":1,
|
|
|
"attackAnimationEvents":
|
|
@@ -59,6 +68,7 @@
|
|
|
"moveAnimationSpeed":1,
|
|
|
"hp":100,
|
|
|
"damage":10,
|
|
|
+ "anger":1,
|
|
|
"attackAnimation":"Attack",
|
|
|
"attackAnimationSpeed":1,
|
|
|
"attackAnimationEvents":
|
|
@@ -84,6 +94,7 @@
|
|
|
"moveAnimationSpeed":1,
|
|
|
"hp":100,
|
|
|
"damage":10,
|
|
|
+ "anger":1,
|
|
|
"attackAnimation":"Attack",
|
|
|
"attackAnimationSpeed":1,
|
|
|
"attackAnimationEvents":
|
|
@@ -109,6 +120,7 @@
|
|
|
"moveAnimationSpeed":1,
|
|
|
"hp":100,
|
|
|
"damage":10,
|
|
|
+ "anger":1,
|
|
|
"attackAnimation":"Attack",
|
|
|
"attackAnimationSpeed":1,
|
|
|
"attackAnimationEvents":
|