// 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; })();