Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/prasanaworld/snake_game
A Simple Snake_Game using javascript canvas.
https://github.com/prasanaworld/snake_game
Last synced: about 1 month ago
JSON representation
A Simple Snake_Game using javascript canvas.
- Host: GitHub
- URL: https://github.com/prasanaworld/snake_game
- Owner: prasanaworld
- License: mit
- Created: 2016-03-08T06:41:21.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-03-08T07:22:53.000Z (almost 9 years ago)
- Last Synced: 2024-10-13T22:29:59.658Z (2 months ago)
- Language: JavaScript
- Size: 1.06 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Snake Game
A Simple Snake_Game using javascript canvas. it also allow dynamic configuration of game object using JSON.## Gameplay
![alt tag](https://github.com/prasanaworld/Snake_Game/blob/master/SnakeGame.png)## prerequiste
- HTML
- CSS 3
- Javascript
## Configuration object
**snake Object**``` javascript
{
x:100, // x-coordinate
y:40, // y-coordinate
w:20, // width of each snake cell
h:20, // height of each snake cell
s:5, // no of snake cell
d:"R" //Direction of the snake movement
}
```**Food object**
``` javascript
{
x:0, // x-coordinate
y:0, // y-coordinate
w:20, // width of food
h:20 // height of food
},
```### Version
1.0.0### LICENSE
MIT license