import { CONFIG } from '../config.js';

export const state = {
  screen: 'splash',
  running: false,
  gameOver: false,
  score: 0,
  highscore: 0,
  temperature: CONFIG.startTemperature,
  elapsed: 0,
  combo: 0,
  hits: 0,
  misses: 0,
  gameOverReason: ''
};

export function resetState() {
  state.running = true;
  state.gameOver = false;
  state.score = 0;
  state.temperature = CONFIG.startTemperature;
  state.elapsed = 0;
  state.combo = 0;
  state.hits = 0;
  state.misses = 0;
  state.gameOverReason = '';
}
