Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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.

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