∞ forever components

Retro & Glitch

Dungeon Raycaster

Dungeon Raycaster control in the 8-Bit Gaming system.

canvasmedium complexitymoderate motionclickaccessible

Open on the canvas to copy the code → Free account · 3 copies a day · membership goes unlimited

Live demo — the real component, running in a sandbox. One self-contained HTML file, zero dependencies. Open it on the canvas →
1

When to use it

Retro game or dungeon-crawler landing pages that need a small first-person view with big, high-contrast turn and step buttons.

When not to

Layouts that need a full-screen 3D scene or drag steering; the map is a fixed 8x8 grid and the view is a 90x60 px canvas scaled up.

Working with an AI agent

Every component ships agent-ready metadata. An example instruction for this one:

Edit the 8x8 map array to change the dungeon layout, the turn angle in the btnLeft/btnRight handlers (Math.PI / 4) and the step distance in btnStep (0.6). Recolour the wall shades in the corrDist branches and the .bg03-preset1, .bg03-preset2 and .bg03-preset3 classes. Keep the three <button> controls with their aria-labels and the idle turn timer in startDemo().

Safe to edit

  • map array (8x8 grid, 1 = wall)
  • turn angle (Math.PI / 4) and step distance (0.6)
  • wall shading colours (corrDist branches)
  • palette classes (.bg03-preset1, .bg03-preset2, .bg03-preset3)
  • idle demo turn interval (4000 ms in startDemo)

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.

arcade8-bitpixelretrogamingmicroswitchdungeon-raycasterglitchraycasterdungeonwolfensteinfov8-bit-gamingpseudo-3d

More Retro & Glitch components

  • CRT scanline screenGreen-phosphor CRT terminal: rolling CSS scanlines, vignette, glowing oscilloscope wave, blinking boot-text rows, and random canvas glitch flashes.
  • Pixel-art sprite marchThree rows of 8x8 two-frame pixel sprites march across a scrolling starfield at varying speeds; pointer horizontal position controls march speed.
  • ASCII shimmerGrid of ASCII ramp characters shimmers through interfering radial and plasma waves in green-teal hues; character density and wave center follow the pointer.
  • Dot-matrix tickerAmber LED dot-matrix marquee scrolling GAME OVER / INSERT COIN / HIGH SCORE across a dim dot grid. Custom 5x7 bitmap font with pulsing brightness per column.
  • Neon arcade signRose tube-lettered ARCADE sign with CSS flicker animations, a dusted verdigris sub-line and a yellow chasing-light marquee around a softly glowing rose frame.
  • Fake terminal typingSage-on-black CRT terminal auto-types a fake boot sequence with randomized keystroke delays, scanline overlay, and blinking block cursor; loops continuously.