Skip to content
/ snek Public

The classic game Snake recreated using p5.js

License

Notifications You must be signed in to change notification settings

okiyama/snek

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

snek

Play now at https://okiyama.github.io/snek/ !

The classic game Snake recreated using p5.js. I got the idea to do this from Dan Shiffman's excellent Coding Train Youtube series. Though I've avoided watching any of the video so I can solve the problem myself, then compare afterwards.

I'm enjoying p5.js, visual programming is fun and it's amazing how expressive the environment can be. Great way to practice up on my vanilla JS too.

TODO:

  • Play around with weird movements, like sine waves and what not
  • Up then left/right shouldn't lose. This happens because move(left/right/up/down) use inacurrate "moving" values
  • Other fruit types:
    fruit that adds speed (self worth multiplier)
    Fruit that affects your movement, maybe by swapping up/down and left/right Fruit that affects size of either the player or the fruit or both. Could also be a sine wave

About

The classic game Snake recreated using p5.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published