Skip to content

anandthegreat/SnakeVSBlocks

Repository files navigation

SnakeVSBlocks

A Snake game using JavaFX similar to SnakeVsBlocks. Protect the snake from blocks greater than its length and break other blocks to gain points.

Instructions

  • You have to control the snake, collect food balls, and destroy blocks to get points.
  • The speed of snake will increase gradually with time.
  • Each food ball has some points, which will be counted towards snake length.
  • Each Block has some value and could be destroyed completely only if the snake's length is more than its value.
  • If you collide with a block with value greater than snake's length, the snake dies.

Controls

  • Press A or Left Key to move the snake left.
  • Press D or Right Key to move the snake right.

Tokens

There are 4 token which could help you in scoring and tackling the falling blocks.

  1. Ball : Increases snake's length by its value.
  2. Destroy Blocks : Destroys all blocks on the screen and increases score by its value.
  3. Magnet : Attracts coins towards the snake within a range.
  4. Shield : Protects the snake against any block for 5 seconds.
  5. Coin : Increases the score by value of the coin.

Documentation

We have made a detailed documentation for this project using Javadoc tool. Just download the files in javadoc folder and open index.html file in a browser to see the documentation.

Contributors

Anand and Atul Anand

Game Screenshots

Releases

No releases published

Packages

No packages published

Languages