Newer
Older
PixelPaintWar / apps / server / src / config / index.ts
@[shimojiryuki] [shimojiryuki] on 26 Feb 538 bytes [feat] 人数合わせのBotを追加
import { config as sharedConfig } from "@repo/shared";

const GAME_CONFIG = {
  ...sharedConfig.GAME_CONFIG,
  MAX_PLAYERS_PER_ROOM: 100,
} as const;

const NETWORK_CONFIG = {
  DEV_SERVER_PORT: 3000,
  CORS_ORIGIN: "*",
  CORS_METHODS: ["GET", "POST"],
} as const;

const BOT_AI_CONFIG = {
  BOMB_PLACE_PROBABILITY_PER_TICK: 0.06,
  UNPAINTED_PRIORITY_STRENGTH: 1,
  MOVE_SMOOTHNESS: 1,
  TARGET_REACHED_EPSILON: 0.15,
} as const;

export const config = {
  ...sharedConfig,
  GAME_CONFIG,
  NETWORK_CONFIG,
  BOT_AI_CONFIG,
} as const;