Skip to content

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

License

Notifications You must be signed in to change notification settings

nitinkedia7/snake_1v1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published