世界、玩家登录、加入广播。

This commit is contained in:
janing
2025-12-14 22:36:05 +08:00
commit 4dc5fc6cca
34 changed files with 2965 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
/**
* 世界配置参数
*/
export const WorldConfig = {
/** 世界宽度 */
WORLD_WIDTH: 800,
/** 世界高度 */
WORLD_HEIGHT: 800,
/** 出生区域半径(距离中心点) */
SPAWN_RADIUS: 200,
/** 世界中心点 X 坐标 */
get CENTER_X() {
return this.WORLD_WIDTH / 2;
},
/** 世界中心点 Y 坐标 */
get CENTER_Y() {
return this.WORLD_HEIGHT / 2;
}
} as const;