A Simple Snake_Game using javascript canvas. it also allow dynamic configuration of game object using JSON.
- HTML
- CSS 3
- Javascript
snake Object
{
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
{
x:0, // x-coordinate
y:0, // y-coordinate
w:20, // width of food
h:20 // height of food
},
1.0.0
MIT license