https://github.com/devsargam/snakegame
A simple snake game made with vanilla javascript.
https://github.com/devsargam/snakegame
beginner game hacktoberfest javascript open-source vanilla-javascript
Last synced: 10 months ago
JSON representation
A simple snake game made with vanilla javascript.
- Host: GitHub
- URL: https://github.com/devsargam/snakegame
- Owner: devsargam
- License: mit
- Created: 2022-01-11T05:09:27.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-04-10T01:45:16.000Z (about 2 years ago)
- Last Synced: 2025-04-07T13:02:20.690Z (about 1 year ago)
- Topics: beginner, game, hacktoberfest, javascript, open-source, vanilla-javascript
- Language: JavaScript
- Homepage: https://snakeinjs.netlify.app/
- Size: 325 KB
- Stars: 36
- Watchers: 1
- Forks: 26
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Snake Game
## A game developed in vanilla javascript.
### Steps to run
#### Make sure you have node installed
*Fork the repository (Click the Fork button in the top right of this page)
*Clone the forked repository to your local machine.
```bash
git clone https://github.com//SnakeGame.git
cd SnakeGame
yarn
yarn start
```
This game works by drawing rectangles in canvas while making them seem like food and snake
### Feel free to contribute to this project by forking this project
### Don't forget to leave a star ⭐
## How to contribute:
- Drop a :star: on the Github repository (optional)
- Before Contribute Please read [CONTRIBUTING.md](https://github.com/devsargam/SnakeGame/blob/master/CONTRIBUTING.md) and [CODE_OF_CONDUCT.md](https://github.com/devsargam/SnakeGame/blob/master/CODE_OF_CONDUCT.md)
- Create an issue of the project or a feature you would like to add in the project and get the task assigned for youself.(Issue can be any bug fixes or any feature you want to add in this project).
- Fork the repo to your Github.
- Clone the Repo by going to your local Git Client in a particular local folder in your local machine by using this command with your forked repository link in place of below given link:
`git clone https://github.com//SnakeGame.git`
- Create a branch using below command.
`git branch `
- Checkout to your branch.
`git checkout `
- Add your code in your local machine folder.
`git add . `
- Commit your changes.
`git commit -m""`
- Push your changes.
`git push --set-upstream origin `
- Make a pull request! (compare your branch with the owner main branch)