Code Monkey home page Code Monkey logo

typescript-snake-game's Introduction

๐Ÿ 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.

typescript-snake-game's People

Contributors

devangtomar avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

kundan594

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.