Skip to content

prasanaworld/Snake_Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake Game

A Simple Snake_Game using javascript canvas. it also allow dynamic configuration of game object using JSON.

Gameplay

alt tag

prerequiste

  • HTML
  • CSS 3
  • Javascript

Configuration object

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
}, 

Version

1.0.0

LICENSE

MIT license

About

A Simple Snake_Game using javascript canvas.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published