https://github.com/nitinkedia7/snake_1v1
An One-on-One implementation of the classic snake game.
https://github.com/nitinkedia7/snake_1v1
css html javascript p5js snake-multiplayer-game
Last synced: 9 months ago
JSON representation
An One-on-One implementation of the classic snake game.
- Host: GitHub
- URL: https://github.com/nitinkedia7/snake_1v1
- Owner: nitinkedia7
- License: gpl-3.0
- Created: 2017-06-02T12:55:49.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-05T06:13:22.000Z (about 8 years ago)
- Last Synced: 2025-02-06T14:32:54.269Z (11 months ago)
- Topics: css, html, javascript, p5js, snake-multiplayer-game
- Language: JavaScript
- Homepage:
- Size: 571 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Classic 1v1 Snake Game. Try it [here](https://nitinkedia7.github.io/snake_1v1/).
## Features:
- Pacman Sounds
- Pause/Resume
- Modular js code (can support any number of snakes)
## Controls
Action | Player 1 | Player 2
--- | --- | ---
Up | UP_ARROW | W
Down | DOWN_ARROW | S
Left | LEFT_ARROW | A
Right | RIGHT_ARROW | D
Pause/Resume | SPACE | SPACE
## Rules
Obviously the rules of a normal snake game apply, additional coplayer rules follow:
- Player 1 spawns as RED snake while Player 2 spawns as a GREEN snake.
- A snake dies if it's head touches any other part of itself or any part of another snake.
- Points are displayed as an array in console.
## Build With:
- HTML
- CSS
- Javascript
- [p5.js](https://p5js.org/)
Made by [**Nitin Kedia**](https://www.github.com/nitinkedia7/)
Credits [**Abhishek Kedia**](https://www.github.com/coderkd10)