From 606abfbe9b97d0f49be633d4e13cf9f1c3a86645 Mon Sep 17 00:00:00 2001 From: "COMPUTER\\EDY" <249929363@qq.com> Date: Wed, 16 Sep 2026 18:14:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/Script/RainbowRules.ts | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/assets/Script/RainbowRules.ts b/assets/Script/RainbowRules.ts index 1321528..4afcb94 100644 --- a/assets/Script/RainbowRules.ts +++ b/assets/Script/RainbowRules.ts @@ -2,11 +2,11 @@ export const RAINBOW_COLOR = 100; export const RAINBOW_CAPACITY = 60; // 每次整块消除增加的能量秒数,按消除时的实际格数配置。 export const RAINBOW_BLOCK_ENERGY: { [cells: number]: number } = { - 1: 2, - 2: 2.5, - 3: 2.8, - 4: 3, - 5: 3.2, + 1: 3, + 2: 4.5, + 3: 6, + 4: 7.5, + 5: 9, }; // 临时放慢飞行以便测试;飞行结束后才裁切方块,正式时长为 0.3 秒。 export const RAINBOW_CAST_SECONDS = 1; @@ -64,8 +64,10 @@ export function rainbowCuts(cells: RainbowCell[]): RainbowCut[] { && normalized(points).key === target.key); if (shape < 0) return; const origin = normalized(RAINBOW_SHAPES[shape]); - cuts.push({ cell: { x: cell.x, y: cell.y }, shape, - offset: { x: target.x - origin.x, y: target.y - origin.y } }); + cuts.push({ + cell: { x: cell.x, y: cell.y }, shape, + offset: { x: target.x - origin.x, y: target.y - origin.y } + }); }); return cuts; }