greg 4 年之前
父节点
当前提交
c854d02e58
共有 3 个文件被更改,包括 62 次插入40 次删除
  1. 二进制
      .vs/slnx.sqlite
  2. 30 20
      assets/resources/configs/levels/Level1.json
  3. 32 20
      assets/resources/configs/levels/Level2.json

二进制
.vs/slnx.sqlite


+ 30 - 20
assets/resources/configs/levels/Level1.json

@@ -1,27 +1,34 @@
 {
     "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,
@@ -34,6 +41,7 @@
                 "moveSpeed":5,
                 "hp":100,
                 "damage":10,
+                "anger":1,
                 "attackAnimation":"Attack",
                 "attackAnimationSpeed":1,
                 "attackAnimationEvents":
@@ -59,6 +67,7 @@
                 "moveAnimationSpeed":1,
                 "hp":100,
                 "damage":10,
+                "anger":1,
                 "attackAnimation":"Attack",
                 "attackAnimationSpeed":1,
                 "attackAnimationEvents":
@@ -84,6 +93,7 @@
                 "moveAnimationSpeed":1,
                 "hp":100,
                 "damage":10,
+                "anger":1,
                 "attackAnimation":"Attack",
                 "attackAnimationSpeed":1,
                 "attackAnimationEvents":

+ 32 - 20
assets/resources/configs/levels/Level2.json

@@ -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":