Skip to content
This repository has been archived by the owner on May 13, 2021. It is now read-only.

ryanatkn/snake-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake game

A simple game of Snake made with 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 that separates data and logic. It's inconsistently and poorly designed, or more favorably, it experiments with different design patterns.

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

Rewriting the game state and actions with an ECS would be interesting.

Develop

See create-react-app for more.

npm install
npm start

More?

  • obstacles
  • feedback for dying
  • sounds
  • eat self mechanics?
  • config like # apples, exposed as advanced form

Create React App

Fast, intuitive, helpful. Would use again!

License

public domain (The Unlicense)

About

a simple game of Snake rendered with React

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published