世界、玩家登录、加入广播。
This commit is contained in:
23
server/src/config/world.config.ts
Normal file
23
server/src/config/world.config.ts
Normal 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;
|
||||
Reference in New Issue
Block a user