Demelza Hue Labyrinth

By (@edgar) ·

Demelza Hue Labyrinth - image 1

Think you got a good memory? Bet. 😏 Demelza Hue Labyrinth is lowkey gonna test your brain cells.

It scales from 10 to 16 crazy geometric shapes, and it gets hella sweaty by level 10. No cap, your memory is gonna be tested.

The vibes are immaculate, every shape hits a melodic synth note, plus there's a chill af piano beat in the background (you can mute it if you need to lock in).

Best part? There are 10 lil robots roaming the background.
Hover or tap 'em and they’ll pause their grind to drop some legit AI facts.

Tech stack

  • ChatGPT
  • Cursor

Prompt

Act as a Senior Frontend Game Developer. Write a complete, single-file HTML/CSS/JS game called "Demelza Hue Labyrinth". Output ONLY the code inside a single code block. Do not use any external libraries, images, or audio files. Everything must be generated procedurally. 

Follow these exact specifications:

### 1. LAYOUT & RESPONSIVE ARCHITECTURE
- Must fit perfectly on `100vw` x `100dvh` with `overflow: hidden` (NO scrolling on desktop or mobile). Add `touch-action: manipulation` to the body to prevent mobile double-tap zoom.
- Implement a CSS 3-layer Z-index system:
  1. **Background (z-index 0):** Dark color (`#12121c`) with a subtle CSS grid pattern.
  2. **Outer Box (z-index 10):** A centered container. Set background to `rgba(232, 229, 230, 0.5)` (50% transparent). Set `pointer-events: none` on this box so users can interact with robots behind it.
  3. **Inner Gamepad Box (z-index 11):** Centered inside the Outer Box. Solid white (`#ffffff`) to block the background. Set `pointer-events: auto`. Use CSS Grid (`grid-template-columns: repeat(4, 1fr)`) and `aspect-ratio: 1/1` with `max-width: min(550px, 70vh)`.
- Top Right Controls (Solid UI): "Music: ON/OFF" button and "Main Men…

Comments (2)

  1. Jack Herzlich · · 1 like

    This is a lot of fun man. Thanks for sharing

9 likes · 4 comments · 10 views

Explore more on Prompted