Загрузка игры…
0%
ОГОНЬ
▲
◀
▶
▼
ПРЫЖОК
ВОДА
▲
◀
▶
▼
ПРЫЖОК
// Show iOS home-screen hint in landscape if (/iPhone|iPad|iPod/.test(navigator.userAgent)) { const hint = document.getElementById("ios-hint"); const check = () => { if (window.innerWidth > window.innerHeight && hint) { hint.classList.add("show"); } }; window.addEventListener("orientationchange", () => setTimeout(check, 300)); check(); } // Warn if keyboard layout is not Latin document.addEventListener("keydown", (e) => { if (e.key && e.key.length === 1 && e.key.charCodeAt(0) > 127) { const w = document.getElementById("layout-warn"); if (w) w.classList.add("show"); } }); document.addEventListener("keydown", (e) => { const player = window.rufflePlayer; const active = document.activeElement; const focused = player && (active === player || (player.contains && player.contains(active)) || active?.tagName === "RUFFLE-PLAYER" || active?.tagName === "CANVAS"); if (!focused && ["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","KeyW","KeyA","KeyS","KeyD","Space"].includes(e.code)) { const w = document.getElementById("focus-warn"); if (w) w.classList.add("show"); } }); document.addEventListener("pointerdown", (e) => { const c = document.getElementById("container"); if (c && c.contains(e.target)) { const w = document.getElementById("focus-warn"); if (w) w.classList.remove("show"); } });