nitinkedia7 / snake_1v1

An One-on-One implementation of the classic snake game.

Repository from Github https://github.comnitinkedia7/snake_1v1Repository from Github https://github.comnitinkedia7/snake_1v1

Classic 1v1 Snake Game. Try it here.

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

Made by Nitin Kedia

Credits Abhishek Kedia

About

An One-on-One implementation of the classic snake game.

License:GNU General Public License v3.0


Languages

Language:JavaScript 100.0%Language:HTML 0.0%Language:CSS 0.0%