https://github.com/sensational-code/snake-game
A rudimentary snake game side project I try to set aside ~25 minutes (1 pomodoro) a day to work on.
https://github.com/sensational-code/snake-game
javascript
Last synced: 20 days ago
JSON representation
A rudimentary snake game side project I try to set aside ~25 minutes (1 pomodoro) a day to work on.
- Host: GitHub
- URL: https://github.com/sensational-code/snake-game
- Owner: Sensational-Code
- Created: 2018-07-08T06:40:20.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-08-24T05:00:54.000Z (almost 6 years ago)
- Last Synced: 2025-01-19T10:43:29.729Z (over 1 year ago)
- Topics: javascript
- Language: JavaScript
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# snake-game
A rudimentary snake game side project I try to set aside ~25 minutes (1 pomodoro) a day to work on.
#### [Try it here](https://rawgit.com/Sensational-Code/snake-game/master/index.html)
## How to play
Control the snake to eat as much candy as you can to beat your high score!
Try not to collide with yourself or the walls, or you'll get a game over!
## Controls
Use the `UP`, `DOWN`, `LEFT`, and `RIGHT` arrows to control the snake.
To restart after a game over, click the game or press `SPACEBAR`.
## Installing
Clone this repo and run a local web server to host the index.html.
#### On Mac/Linux:
```
cd
git clone https://github.com/Sensational-Code/snake-game.git
cd snake-game
python -m SimpleHTTPServer
```
Replace with your desired directory and with your desired port number.
Then visit localhost: in your web browser of choice.