Skip to content

Latest commit

 

History

History
38 lines (23 loc) · 1.11 KB

README.md

File metadata and controls

38 lines (23 loc) · 1.11 KB

🐍 TypeScript Snake Game 🎮

A classic Snake game built with TypeScript.

🎯 Objective

The objective of the game is to eat as many food pellets as possible without running into yourself or the wall.

🕹️ How to Play

  • Use the arrow keys to move the snake: ↑ (up), ↓ (down), ← (left), → (right).
  • Eat the food pellets to grow longer.
  • Avoid running into the wall or the snake's own body.

🚀 How to Run

To run the game locally, follow these steps:

  1. Clone the repository: git clone https://github.com/devangtomar/typescript-snake-game.git
  2. Navigate into the project directory: cd typescript-snake-game
  3. Install dependencies: npm install
  4. Build the project: npm run build
  5. Open index.html in your browser to start the game.

🛠️ Technologies Used

  • TypeScript
  • HTML Canvas

🎨 Customization

If you want to customize the game, you can modify the following files:

  • index.ts: Change the game loop or add new features.

🤝 Contributing

Contributions are welcome! If you find a bug or have an idea for an improvement, please open an issue or submit a pull request.