
Project Overview
A replication of the classic Snake game using HTML Canvas and JavaScript. Features include snake movement, spawning power-ups when user reach certain score, sound effects, easter egg, difficulty(gradually increase snake's length, slithering speed) and mobile touch controls.
Challenges
- Implementing smooth controls and collision detection
- Auto scalling game board for different screen sizes
- Implement wall wrapping - when snake hit the wall, it appears on the other side of the board
Future Improvements
- Implement leaderboard
- Add visual effect when snake consumes power-ups
- Create more advanced levels with obstacles
Reflection
This project was a fun way to learn about JS events and game development concepts like game loops, collision detection, and state management. I also gained experience with the Canvas API.
Project Details
Technologies
HTML5 Canvas
JavaScript
Web Game
Tags
HTML
Canvas
JavaScript
Game Development