A fun and challenging classic snake game where you control a snake and try to eat as much food as possible without hitting the walls or yourself. The game features simple controls and progressively increasing difficulty.
In Snake Game, you control a snake that moves around the screen. Eat food to grow longer, but be careful not to collide with the walls or your own tail! The game combines quick reflexes with strategic planning.
- React + TypeScript
- HTML5 Canvas
- Vite for fast development
- Modern CSS with Tailwind (coming soon)
- Clone the repository
- Install dependencies:
npm install
- Start the development server:
npm run dev
- Open http://localhost:5173 in your browser
src/
├── components/ # React components
├── game/ # Game logic and canvas rendering
├── types/ # TypeScript type definitions
└── utils/ # Utility functions
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE.md file for details.
- Inspired by the classic Snake game
- Special thanks to the open-source community