jaredru / snake-game

a simple game of Snake rendered with React https://ryanatkn.github.io/snake-game

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Snake game

A simple game of Snake written for a job interview. Build off of Facebook's create-react-app. Uses React for rendering in a way that has terrible performance, re-rendering everything every animation frame.

See src/index.js for how things fit together. The main game state src/models/GameState is mutated by the logic in src/actions. This game system design is somewhere in between traditional OO game objects and an ECS system that separates data and logic, and is not recommended for real use.

https://ryanatkn.github.io/snake-game

Develop

See create-react-app for more.

npm install
npm start

License

MIT

About

a simple game of Snake rendered with React https://ryanatkn.github.io/snake-game


Languages

Language:JavaScript 91.5%Language:HTML 5.0%Language:CSS 3.5%