PAUSADO
Espaço - Pausar/Continuar
← → - Ajustar velocidade do giro
↑ ↓ - Ajustar gravidade (0 a 2x normal)
B - Criar bola no centro
Clique/touch - Criar bola no ponto tocado
R - Reiniciar com 5 bolas
M - Alternar som
// Expose state on window (guaranteed) exposeHexagonState(); // Also expose immediately for external access (function() { const state = { estado: isPaused ? "pausa" : "jogando", angulo: hexAngle, rotacao: hexAngularVel, gravidade: currentGravity, centro: { x: CANVAS_W / 2, y: CANVAS_H / 2 }, vertices: vertices.map(v => ({ x: v.x, y: v.y })), bolas: balls.map(b => ({ x: b.x, y: b.y, vx: b.vx, vy: b.vy, r: b.r })), adicionarBola: function(x, y) { createBall(x, y); }, reiniciar: function() { restartSimulation(); } }; window.HEXAGONO = state; })();