An open API service indexing awesome lists of open source software.

https://github.com/mirokrastanov/snakejs

🎮🐍🍎Web-based JavaScript implementation of the popular game - Snake.
https://github.com/mirokrastanov/snakejs

canvas css game html javascript react web

Last synced: 3 months ago
JSON representation

🎮🐍🍎Web-based JavaScript implementation of the popular game - Snake.

Awesome Lists containing this project

README

          

# Snake JS
🎮🐍🍎Web-based JavaScript implementation of the popular game - Snake.

game-image

## Live Demo
[run-button](https://app-library-13e36.web.app/apps/snake)
### The Demo is now part of my app library
- Check out the [App Library](https://app-library-13e36.web.app/)

## Description
- The game [Snake](https://en.wikipedia.org/wiki/Snake_(video_game_genre)) involves a player controlling a constantly moving snake in an attempt to help the snake eat as many apples as possible, without biting its tail or hitting the wall.
- The game is played on a 20x20 board (15x15 for the React implementation in my App Library).
- The snake's length increases each time it eats an apple.
- Once an apple has been eaten a new one spawns at a random location.

## How to play
- To control the snake use the arrow keys to change its direction. Enjoy the game!

- ` ` ⬆️ ` `

- ⬅️⬇️➡️

## How to win
- Do not hit the wall
- Do not bite your tail

## Game Screenshots

image


image


image


image

## Live Demo
[run-button](https://app-library-13e36.web.app/apps/snake)
- [Original Source Code](https://github.com/mirokrastanov/snakeJS)
- [React Implementation Code for the App Library](https://github.com/mirokrastanov/app-library/tree/main/client/src/apps/snake)