From 2d8c126394ca28bc2be628ffba0ba68225c085c0 Mon Sep 17 00:00:00 2001 From: Cloud Bot Date: Sat, 21 Mar 2026 09:45:02 +0000 Subject: [PATCH] =?UTF-8?q?refactor(game/constants):=20=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E7=A1=AC=E7=BC=96=E7=A0=81=E8=B7=AF=E5=BE=84=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=EF=BC=8C=E6=96=B0=E5=A2=9E=20WAVES=5FPER=5FMAP=20=E5=B8=B8?= =?UTF-8?q?=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game/constants.ts | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/game/constants.ts b/game/constants.ts index 874cfb0..bb2a8f9 100644 --- a/game/constants.ts +++ b/game/constants.ts @@ -8,14 +8,8 @@ export const GAME_HEIGHT = 720 // HUD 高度(顶部状态栏) export const HUD_HEIGHT = 60 -// S型路径折线关键坐标点 -// 路径:从左侧(0,2) → 右至(11,2) → 下至(11,9) → 右至(15,9) -export const PATH_WAYPOINTS = [ - { x: 0, y: 2 }, - { x: 11, y: 2 }, - { x: 11, y: 9 }, - { x: 15, y: 9 }, -] as const +// 每张地图的波次数 +export const WAVES_PER_MAP = 5 // 游戏初始数值 export const INITIAL_HC = 200 @@ -30,11 +24,3 @@ export const COLOR_BUILDABLE = 0x1e3a5f // 可建塔格子:深蓝色 export const COLOR_HOVER = 0x2d5a8e // 悬停高亮:亮蓝色 export const COLOR_BORDER = 0x0a1628 // 格子边框:深夜蓝 export const COLOR_HUD_BG = 0x0a1628 // HUD 背景色 - -// 地图装饰性标记文字 -export const MAP_LABELS: { col: number; row: number; text: string }[] = [ - { col: 2, row: 5, text: '面试间' }, - { col: 8, row: 5, text: '财务室' }, - { col: 4, row: 10, text: 'P8会议室' }, - { col: 13, row: 5, text: '茶水间' }, -]