# One-Shot Prompt

**Theme**: Neon Arcade
**Generated**: 2026-04-08

## Prompt

Write a complete Snake game using HTML5 Canvas with all HTML, CSS, and JavaScript in a single self-contained file themed as a neon arcade game called Serpentine.

The game should feel like a premium studio-built arcade cabinet: dark synthwave atmosphere, electric magenta and cyan accents, subtle scanlines, a glowing grid, and a polished HUD. The snake should have a bright energy trail, a head with visible eyes, and body segments that feel alive rather than like plain squares. Food should pulse like a neon beacon and burst into particles when eaten.

Use a strong visual hierarchy:
- Full-screen responsive canvas centered inside a cinematic frame
- Title screen with the name Serpentine, a short controls line, and a clear start prompt
- In-game HUD with score and high score
- Pause state with an obvious overlay
- Game-over state with final score, high score, and restart prompt

Gameplay requirements:
- Arrow keys and WASD both control direction
- Space starts and restarts the game
- P or Escape pauses and resumes
- Swipe controls on mobile
- Continuous movement with buffered turn input so fast direction changes are not lost
- Prevent 180-degree reversals
- Eating food grows the snake by one segment
- Wall or self collision ends the game
- Score and high score are persisted with localStorage
- Speed increases gradually as score rises, with a sensible cap
- Snake motion should interpolate smoothly between grid positions
- Food should animate with pulse, glow, or grow-in effects
- Include particle effects when food is eaten
- Include a subtle screen flash or shake on game over

Visual and interaction requirements:
- Canvas background with depth, not a flat color
- Subtle ambient motion even while paused
- Minimal, tasteful UI chrome that matches the arcade theme
- No external images and no framework dependencies
- No sound
- Use a favicon via an inline SVG data URI
- Support reduced motion preferences

The page title should be Serpentine. Keep the palette to about 3 to 5 tones and make every pixel feel intentional. The result should look and play like a designed arcade release, not a tutorial project.

## Notes

- Single-file HTML5 Canvas implementation
- Hosting: Vercel, CodePen, or Cloudflare Pages
