// Game configuration constants / 游戏配置常量

// Size of each cell in world units / 每个格子的世界单位大小
export const CELL_SIZE = 1
// Player model size / 玩家模型大小
export const PLAYER_SIZE = 0.8

// Network tick rate / 网络tick速率
export const TICK_RATE = 30
// Time between ticks in ms / 每次tick之间的时间（毫秒）
export const TICK_INTERVAL = 1000 / TICK_RATE

// Player configuration / 玩家配置
export const PLAYER_CONFIG = {
  MAX_HEALTH: 100, // Maximum player health / 玩家最大生命值
  SPEED: 5         // Player movement speed / 玩家移动速度
}

// Zombie configuration / 僵尸配置
export const ZOMBIE_CONFIG = {
  SIZE: 0.8,       // Zombie collision size / 僵尸碰撞体积
  SPEED: 2         // Zombie movement speed / 僵尸移动速度
}

// Message types for network protocol / 网络协议的消息类型
export const MSG_TYPE = {
  CREATE_ROOM: 'create_room',
  JOIN_ROOM: 'join_room',
  LEAVE_ROOM: 'leave_room',
  ROOM_LIST: 'room_list',
  ROOM_STATE: 'room_state',
  READY: 'ready',
  START_GAME: 'start_game',
  GAME_STARTED: 'game_started',
  PLAYER_INPUT: 'player_input',
  GAME_STATE: 'game_state',
  PLAYER_JOIN: 'player_join',
  PLAYER_LEAVE: 'player_leave',
  ERROR: 'error'
}
