export const GAME_WIDTH = 480;
export const GAME_HEIGHT = 854;

export const GRAVITY = 1200;
export const JUMP_VELOCITY = -650;
export const SUPER_JUMP_VELOCITY = -1050;
export const ROCKET_VELOCITY = -1400;
export const PROPELLER_VELOCITY = -950;

export const PLAYER_SPEED = 300;

export const PLATFORM_GAP_MIN = 60;
export const PLATFORM_GAP_MAX = 120;

export const SPAWN_RATES = {
  stable: 0.55,
  moving: 0.18,
  breaking: 0.12,
  reorg: 0.10,
  genesis: 0.05,
};

export const POWERUP_RATES = {
  spring: 0.04,
  propeller: 0.025,
  rocket: 0.012,
};

export const ENEMY_RATES = {
  bug: 0.10,
};

export const DIFFICULTY = {
  initialGap: 100,
  gapIncreasePer1000: 12,
  maxGap: 160,
  enemyIncreasePer1000: 0.015,
  maxEnemyRate: 0.30,
};

// Height (px climbed) at which harder content starts appearing.
export const UNLOCK = {
  reorg: 600,
  failedTx: 800,
  mevBot: 1500,
};

export const SCORE = {
  basePoints: 10,
  genesisBonus: 50,
  genesisJumps: 5,
  genesisMultiplier: 2,
  stompBonus: 25,
  comboStep: 0.1,
  comboMax: 3,
  fallResetDistance: 300,
};

export const PHYSICS = {
  stompTolerance: 12,
  landTolerance: 10,
  maxFallSpeed: 950, // terminal velocity cap — prevents landing tunneling
};

export const POWERUP_DURATION = {
  propeller: 3500,
  rocket: 3000,
};
