SNAKE is a classic game where you play as the snake and you feed yourself with the food that randomly pops around the board. My variation of the game speeds up the snake the more food you eat.
- HTML
- CSS
- Javascript
- Firebase
- Created snake as an array to make it easier to add length into it.
- Set up the board with canvas
- Move snake inside the canvas by removing one piece of the tail and moving it to the head repeatedly.
- Direct the snake by arrow keys using event.which to distinguish which key is being used.
- Move snake with your arrow keys.
- Collect as much food as you can.
- DON'T DIE