config.ts 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. // Client-only visual tuning. Gameplay values belong in shared/constants.ts or the JSON data.
  2. export const CAMERA_VIEW_HEIGHT = 680;
  3. export const CAMERA_FOLLOW_SPEED = 8;
  4. /** How far the camera leads toward the mouse (fraction of the cursor offset). */
  5. export const CAMERA_AIM_LEAD = 0.18;
  6. export const OUTLINE_COLOR = 0x3b2414;
  7. export const OUTLINE_WIDTH = 3.5;
  8. // Terrain shading (px). The largest depth + OUTLINE_PX + 1 must stay <= RENDER_MARGIN (shared/constants).
  9. export const RIM_LIGHT_DEPTH = 5;
  10. export const RIM_LIGHT_WHITE = 0.45;
  11. export const UNDERSIDE_DEPTH = 4;
  12. export const UNDERSIDE_DARKEN = 0.78;
  13. export const CAVITY_SHADOW_DEPTH = 7;
  14. export const CAVITY_DARKEN = 0.64;
  15. export const DROP_SHADOW_DX = 5;
  16. export const DROP_SHADOW_DY = 7;
  17. export const DROP_SHADOW_ALPHA = 70;
  18. export const SHAKE_PER_PIXEL = 0.004;
  19. export const SHAKE_MAX = 12;
  20. export const SHAKE_DECAY = 20;
  21. export const HIT_SHAKE = 8;
  22. export const MERGE_SHAKE = 6;
  23. export const CRUSH_SHAKE = 12;
  24. export const PLAYER_SPLAT_COLOR = 0xff6f91;
  25. export const FREEZE_FRAME_MS = 50;
  26. export const PARTICLES_PER_100_PX = 6;
  27. export const PARTICLE_MAX = 700;
  28. export const PARTICLE_GRAVITY = 1200;
  29. export const LANDING_DUST_MIN_VY = 450;
  30. export const POPUP_MIN_PIXELS = 250;
  31. export const POPUP_COOLDOWN = 0.45;
  32. export const INPUT_SEND_HZ = 60;
  33. export const SQUASH_RECOVERY = 10;
  34. export const PLAYER_COLORS = [0xff6f91, 0x4dc4ff, 0x9be15d, 0xffc94d, 0xb18cff, 0xff9a4d, 0x4de0c4, 0xf15bb5];