Back to library
3 lines324 words

Snake Game

Applies across 0 technologies and 4 prompt categories. Save it to your workspace or launch it with your favorite assistant.

Technologies

No specific tooling required for this prompt.

Categories
Arcade Games
Classic Games
Snake
Web Games

Create the classic Snake game using HTML5 Canvas, CSS3, and JavaScript. Implement a snake that grows longer when eating food, with smooth movement in four directions (up, down, left, right). Add collision detection for walls and the snake's own body (game over conditions). Generate food items at random positions on the grid with special visual effects. Include different food types: normal food (grows snake by 1), golden food (grows by 2, bonus points), and speed boost food (temporarily increases speed). Implement a scoring system with points increasing based on snake length and food type. Add difficulty levels affecting snake speed: Easy, Medium, Hard, and Expert. Include a high score system with top 10 scores saved in localStorage. Implement a pause feature with clear pause overlay. Add lives system where players can continue after hitting walls (optional mode). Create a grid-based playing field with clear visual boundaries. Include classic mode (walls kill) and no-walls mode (snake wraps around edges). Add power-ups that spawn randomly: slow-motion (slows snake temporarily), invincibility (can pass through self), and point multiplier. Implement smooth animations for snake movement and food consumption. Add particle effects when eating food. Create different visual themes/skins for the snake and game board. Include keyboard controls (arrow keys, WASD) and swipe support for mobile. Add sound effects for eating, game over, level up, and background music (with mute option). Implement progressive difficulty where snake speeds up as it grows longer. Add obstacles that appear at higher levels making the game more challenging. Include achievement system for milestones (length 10, 25, 50, 100, etc.). Create a countdown timer for timed challenge mode. Add multiplayer local mode with two snakes on same board. Include detailed statistics: longest snake, total food eaten, games played, survival time records. Make the design responsive and playable on all devices. Add a retro pixel art style option and a modern smooth style option. Include accessibility features and color blind mode with different snake/food colors.