Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/keyurparalkar/snake-game

A simple 2d snake game built using react and typescript
https://github.com/keyurparalkar/snake-game

gaming javascript react redux redux-saga typescript

Last synced: 10 days ago
JSON representation

A simple 2d snake game built using react and typescript

Awesome Lists containing this project

README

        


snake-game


A simple 2d snake game built using react and typescript

## Motivation

This game involves a snake moving inside a box. If a snake eats the fruit that is present inside the box then it increases in size and the score is increased.

If the snake collides with itelf or with the boundaries of the box, then the game is over.

## Features

- Move the snake with keys `w`, `a`, `s`, and `d`.
- Dynamic increase in score and snake size when the fruit is consumed.
- Build with the `canvas` HTML element.

## Libraries

- UI Library: React
- Component Library: Chakra-UI
- State Management: Redux
- State Management Middlewares: Redux-saga

## How to start

```Shell
yarn
yarn run start
```

## You can reach out 😊😊

[![Linkedin Badge](https://img.shields.io/badge/linkedin-%230077B5.svg?&style=for-the-badge&logo=linkedin&logoColor=white)](https://www.linkedin.com/in/keyur-paralkar-494415107/)
[![Mail Badge](https://img.shields.io/badge/email-c14438?style=for-the-badge&logo=Gmail&logoColor=white&link=mailto:[email protected])](mailto:[email protected])
[![Twitter Badge](https://img.shields.io/badge/twitter-1DA1F2?style=for-the-badge&logo=twitter&logoColor=white)](https://twitter.com/keurplkar)
[![Github Badge](https://img.shields.io/badge/github-333?style=for-the-badge&logo=github&logoColor=white)](https://github.com/keyurparalkar/)

## License

This project is licensed under the MIT License - see the [LICENSE](LICENCE.md) file for details