Most snake-game prompts give you a joyless gray grid. I wanted arcade feel: particles, screen shake, an actual difficulty curve.
After a lot of trial and error the prompt below consistently produces a genuinely fun version. The key insight was asking for "game juice" by name and enumerating the specific effects.
Anyone have a variant that adds sound without breaking the single-file constraint?
Create a complete Snake game in a single HTML file with canvas. Beyond the basics, it must have GAME JUICE:
- screen shake on death (200ms, decaying)
- particle burst when eating food
- the snake's head slightly overshoots turns (squash & stretch)
- food pulses at 1Hz
- score popup floats up and fades when eating
- speed increases 4% per food eaten
- CRT scanline overlay effect
- start screen and game-over screen with high score in localStorage
Controls: arrows + WASD + swipe on mobile. 60fps game loop with requestAnimationFrame and fixed timestep. No external assets or libraries.