GitXplorerGitXplorer
j

nibbles

public
2 stars
2 forks
0 issues

Commits

List of commits on branch master.
Unverified
bb9f87c8c5fe5f828c0a9210328b5d7e7bd193cd

Added missing tween dep

committed 9 years ago
Unverified
d89d80ac687717a76471abf668aef846f4d61402

Merge branch 'master' of github.com:johnste/nibbles

committed 9 years ago
Unverified
2aecc7d9bc488df49177a76f1c758ee279d9f208

Remove event listener when snake is removed

committed 9 years ago
Unverified
923f60e82e001d3f50fc6b4de0681af2d49e815b

Add spec to readme

jjohnste committed 9 years ago
Unverified
3c4be34db886081aea1576857baa268d6fd84f9a

Merge branch 'master' of github.com:johnste/nibbles

committed 9 years ago
Unverified
42e64d7e3df83a0fbe60197242a11486d28b9260

Production build

committed 9 years ago

README

The README file for this repository.

Snake game built with Pixi.js

spec:

  • Snake can be controlled by arrows.
  • Snake food will be placed randomly on screen.
  • Snake food has a random timeout between 4 to 10 seconds
  • Snake elongates itself after eating the food.
  • Every food intake gives 1 point.
  • If the snake hits a boundary, the size of the game area should reduce by 113px and the direction of the snake reverses.
  • Game is over when snake gets in contact with itself.
  • Dimensions of food should be equal to dimension of one segment of the snake.
  • Dimension of food should be 16px X 16px.
  • The game area should be of size 800px X 800px.
  • "Play Again" button should appear once the game is over.
  • In the subsequent gameplays, if the score is greater than the previous gameplay score, then change the color of the score.