dcwds / snake-game

Eat apples, don't eat yourself. Avoid walls too.

Home Page:https://dcwds-snakegame.netlify.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Snake Game

Eat apples, earn points. Don't eat yourself or the walls.

View the app on Netlify Netlify Status

What I Learned

  • I was able to get a bit of a performance boost from React memo
  • I found a reasonable use-case for useRef in the useGame hook
  • This was the first time I worked with a game loop.

Todo

  • Add controls for mobile, as the game is currently keyboard-driven
  • Fix some strange states when keys are quickly pressed
  • Performance optimizations (I've considered offloading some calculations to GPU)
  • Canvas implementation
  • Better styling

Technologies

About

Eat apples, don't eat yourself. Avoid walls too.

https://dcwds-snakegame.netlify.app


Languages

Language:JavaScript 80.6%Language:HTML 16.0%Language:CSS 3.4%