From 0cf6b3a9c2a9559bdf3ad39133883edfa66096fb Mon Sep 17 00:00:00 2001 From: yupi <592789970@qq.com> Date: Sun, 18 Sep 2022 00:20:52 +0800 Subject: [PATCH] =?UTF-8?q?add=20=E6=94=AF=E6=8C=81=E4=BF=9D=E5=AD=98?= =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E9=85=8D=E7=BD=AE=20add=20=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=202=20=E7=A7=8D=E9=9A=BE=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/MyAd.vue | 13 +++++++++--- src/core/gameConfig.ts | 44 +++++++++++++++++++++++++++++++++++++++++ src/pages/GamePage.vue | 2 ++ src/pages/IndexPage.vue | 29 ++++++++++++++++++--------- 4 files changed, 76 insertions(+), 12 deletions(-) diff --git a/src/components/MyAd.vue b/src/components/MyAd.vue index 6b82a4f..046110c 100644 --- a/src/components/MyAd.vue +++ b/src/components/MyAd.vue @@ -1,8 +1,15 @@ - + diff --git a/src/core/gameConfig.ts b/src/core/gameConfig.ts index c538b46..b72280d 100644 --- a/src/core/gameConfig.ts +++ b/src/core/gameConfig.ts @@ -129,3 +129,47 @@ export const lunaticGameConfig: GameConfigType = { // 动物数组 animals, }; + +/** + * 天狱难度 + */ +export const skyGameConfig: GameConfigType = { + // 槽容量 + slotNum: 7, + // 需要多少个一样块的才能合成 + composeNum: 3, + // 动物类别数 + typeNum: 16, + // 每层块数(大致) + levelBlockNum: 24, + // 边界收缩步长 + borderStep: 2, + // 总层数(最小为 2) + levelNum: 12, + // 随机区块数(数组长度代表随机区数量,值表示每个随机区生产多少块) + randomBlocks: [8, 8], + // 动物数组 + animals, +}; + +/** + * 羊了个羊难度 + */ +export const yangGameConfig: GameConfigType = { + // 槽容量 + slotNum: 7, + // 需要多少个一样块的才能合成 + composeNum: 3, + // 动物类别数 + typeNum: 18, + // 每层块数(大致) + levelBlockNum: 28, + // 边界收缩步长 + borderStep: 3, + // 总层数(最小为 2) + levelNum: 15, + // 随机区块数(数组长度代表随机区数量,值表示每个随机区生产多少块) + randomBlocks: [8, 8], + // 动物数组 + animals, +}; diff --git a/src/pages/GamePage.vue b/src/pages/GamePage.vue index f54a7b1..09f7699 100644 --- a/src/pages/GamePage.vue +++ b/src/pages/GamePage.vue @@ -9,6 +9,7 @@