mirror of
https://github.com/unanmed/HumanBreak.git
synced 2026-11-03 18:24:30 +08:00
fix: vite.config.ts 端口与 hotReload 端口不一致
This commit is contained in:
1 parent
7fef0df1e6
commit
9a175e9afe
4 files changed
+79
-30
No files matched your search
@@ -1,10 +1,19 @@
|
||||
// 地图格子宽高,此处仅影响画面,不影响游戏内逻辑,游戏内逻辑地图大小请在 core.js 中修改
|
||||
export const MAP_BLOCK_WIDTH = 15;
|
||||
export const MAP_BLOCK_HEIGHT = 15;
|
||||
|
||||
// 状态栏像素宽高
|
||||
export const STATUS_BAR_WIDTH = 180;
|
||||
export const STATUS_BAR_HEIGHT = 480;
|
||||
export const STATUS_BAR_HEIGHT = 32 * MAP_BLOCK_HEIGHT;
|
||||
|
||||
// 是否启用右侧状态栏
|
||||
export const ENABLE_RIGHT_STATUS_BAR = true;
|
||||
export const STATUS_BAR_COUNT = ENABLE_RIGHT_STATUS_BAR ? 2 : 1;
|
||||
|
||||
export const MAP_WIDTH = 480;
|
||||
export const MAP_HEIGHT = 480;
|
||||
// 地图像素宽高
|
||||
export const MAP_WIDTH = 32 * MAP_BLOCK_WIDTH;
|
||||
export const MAP_HEIGHT = 32 * MAP_BLOCK_HEIGHT;
|
||||
|
||||
export const MAIN_WIDTH = 480 + 180 * 2;
|
||||
export const MAIN_HEIGHT = 480;
|
||||
// 游戏画面像素宽高,宽=地图宽度+状态栏宽度*状态栏数量
|
||||
export const MAIN_WIDTH = MAP_WIDTH + STATUS_BAR_WIDTH * STATUS_BAR_COUNT;
|
||||
export const MAIN_HEIGHT = MAP_HEIGHT;
|
||||
Reference in new issue
Block a user