Navigation
JRPG Battle Menu
JRPG Battle Menu control in the 8-Bit Gaming system.
cssmedium complexitymoderate motionclickaccessible
Open on the canvas to copy the code → Free account · 3 copies a day · membership goes unlimited
1
When to use it
Retro RPG or 8-bit game UI, battle or command menus, pixel-style option pickers where one choice stays highlighted.
When not to
Menus that need a light theme (dark palette only) or real game state: the log lines and HP/MP are fixed text. The idle demo steps the highlight every 4 s until first input.
Working with an AI agent
Every component ships agent-ready metadata. An example instruction for this one:
Edit the dialogs object to change the battle-log line for each action, add a fifth .bg06-item button with its own data-action and dialogs entry, or retune the palette (#162450 panel, #101c40 rows, #FFCC00 cursor and focus ring). Keep native buttons with aria-pressed, the .bg06-active highlight, arrow-key stepping, the :disabled / [aria-disabled] style and the demo-v1 takeover.
Safe to edit
- battle-log lines (dialogs object)
- menu labels and data-action values (.bg06-item buttons)
- party HUD text (.bg06-party-hud)
- idle step interval (4000 ms in idleDemo)
- panel palette (#162450, #101c40, #FFCC00)
- pixel font (Press Start 2P link)
Keep intact
- demo-v1 preview lifecycle: initialize demoEnabled from window.__foreverPreview and stop attract work on the window forever:interactive event; retain manual feedback, settling, cleanup and explicit sessions
Known limitations
- State remains local to each mounted instance; format/theme remount preserves takeover, not component values.
- Rests until used (owner rule, 2026-11-21): the idle demo runs only when a host sets window.__foreverPreview.demoEnabled to true, such as the preview Forever button. The first input still stops it for good.
More Navigation components
- Magnify DockmacOS-style frosted-glass dock of six gradient tiles that scale up and lift toward the cursor; idle sweep that stops at first deliberate input keeps it…
- Hamburger MorphThree-line hamburger button spring-morphs into a glowing teal X on click; button border gains teal glow when open. Auto-cycles as demo.
- Radial Fan MenuA core button rotates to an X and fans five glowing stone-toned icon petals outward in a staggered spring arc; auto-cycles open/close as a demo.
- Slide-in DrawerHamburger icon morphs to an X while a side panel slides in over a dark scrim, revealing four nav items with staggered fade-in animations.
- Underline FollowA flat saffron underline slides and resizes to follow hovered nav links; wanders until first deliberate input across links when unhovered.
- Sliding PillA 3-segment Day/Week/Month toggle where a raised cobalt-glaze thumb with contact and ambient shadows slides between options with a spring bounce in a…