diff --git a/index.html b/index.html index db84a5a..b7b49a0 100644 --- a/index.html +++ b/index.html @@ -22,7 +22,15 @@ AI_EASY: { speed: 200, reactionDelay: 0.3, errorMargin: 20 }, AI_MEDIUM: { speed: 320, reactionDelay: 0.1, errorMargin: 5 }, - AI_HARD: { speed: 400, reactionDelay: 0.05, errorMargin: 2 } + AI_HARD: { speed: 400, reactionDelay: 0.05, errorMargin: 2 }, + + PALETTES: { + MAGENTA: { accent: '#ff00cc', glow: 'rgba(255,0,204,0.6)', name: 'Magenta' }, + CYAN: { accent: '#00ffff', glow: 'rgba(0,255,255,0.6)', name: 'Cyan' }, + LIME: { accent: '#00ff00', glow: 'rgba(0,255,0,0.6)', name: 'Lime' }, + WHITE: { accent: '#ffffff', glow: 'rgba(255,255,255,0.6)', name: 'White' } + }, + PALETTE_KEYS: ['MAGENTA', 'CYAN', 'LIME', 'WHITE'] }; const Renderer = { @@ -116,10 +124,16 @@ score2: 0, mode: null, // null = mode select screen; 'ai' = Solo vs AI; '2p' = 2-Player local difficulty: 'medium', // 'easy', 'medium', 'hard' - gameState: 'modeSelect',// 'modeSelect', 'diffSelect', 'playing', 'scored', 'gameover' - winner: null // null, 'player1', 'player2', 'ai' + gameState: 'title', // 'title', 'settings', 'modeSelect', 'diffSelect', 'playing', 'scored', 'gameover' + winner: null, // null, 'player1', 'player2', 'ai' + activePalette: null, // Set after GameConfig defined — see init sequence + soundEnabled: true, + selectedMenu: 0, + previousState: null }; + GameState.activePalette = GameConfig.PALETTES.MAGENTA; + const Input = { keys: { w: false, s: false, arrowUp: false, arrowDown: false }, _handleKeyDown: null,