Skip to content

pablorc/snaaake

Repository files navigation

Build Status Code Climate

Snake? Snaaaaaake!

Just a simple Snake game for your browser

It's not yet complete, but is playable somehow.

Why?

This is only a playground to get React and Redux working. And I always wanted to code a Snake game!.

How to play

Check it out here.

From the source

  1. Clone the code
  2. npm install
  3. npm run server
  4. Open it at http://localhost:8080/webpack-dev-server/www
  5. Click inside the browser page to get focus

Controls

  • Arrows
  • WASD
  • Vim movement controls (HJKL)
  • R to restart

Next steps

  • Basic styles
  • Snake movement
  • Eat food
  • Growing up
  • Detect collisions against walls
  • Basic scoring
  • Vim controls
  • Better styles
  • Landing page
  • Detect collisions against the snake itself
  • Better Game Over page
  • Restart option
  • Deploy it!

Next next steps

  • Power ups
  • Multiplayer support
  • Complex mazes
  • Adjust velocity
  • Leaderboards
  • Nibbler mode

Contribute

Sure! Feel free to clone and hack whatever you want. I'm open to PRs, don't be shy!

And remember...

After playing for a long time, you shoud get some rest too.