https://github.com/derrmru/react-snake
Classic (and addictive) Snake game - built as a reusable react component.
https://github.com/derrmru/react-snake
404-pages gatsbyjs reactjs snake-game
Last synced: 6 months ago
JSON representation
Classic (and addictive) Snake game - built as a reusable react component.
- Host: GitHub
- URL: https://github.com/derrmru/react-snake
- Owner: derrmru
- Created: 2020-12-12T11:51:27.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-12-14T12:06:28.000Z (almost 5 years ago)
- Last Synced: 2025-02-17T18:44:03.578Z (8 months ago)
- Topics: 404-pages, gatsbyjs, reactjs, snake-game
- Language: JavaScript
- Homepage: https://thepetersweeney.com/snake/
- Size: 223 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Snake
A classic game, built as reusable react component. Very lightweight, easy to install and get up and running.
Try the demo [here](https://thepetersweeney.com/snake/).
Typescript version available [here](https://github.com/derrmru/react-snake-404).
## Used Technologies and Libraries
- [Create React App](https://github.com/facebook/create-react-app)
- [React](https://reactjs.org/)## Installation
```
npm i snake-game-react --save
```## Usage
```
import Snake from 'snake-game-react';function App() {
return (
);
}export default App;
```
## PropsTo match branding, you can input your preferred color scheme.
Props:
1. color1: string
2. color2: string
3. backgroundColor: string## Dependencies
React of course.