A simple browser-based snake game built with TypeScript, bundled with Webpack, and featuring hot reloading for development.
- Classic snake gameplay
- Score tracking
- Game over screen with restart option
- Hot module replacement for development
- Node.js and npm installed on your system
- Clone the repository or download the source code
- Install dependencies:
npm install
To start the development server with hot reloading:
npm run dev
This will open the game in your default browser and automatically reload when you make changes to the source code.
To build the production version:
npm run build
The output will be in the dist directory.
- Use the arrow keys to control the snake
- Eat the red food to grow and earn points
- Avoid hitting the walls or yourself
- Click the "Restart" button to play again after game over
ISC