Skip to content

finsimco/react-snake

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake

A classic game, built as reusable react component. Very lightweight, easy to install and get up and running.

Try the demo here.

Typescript version available here.

Used Technologies and Libraries

Installation

npm i snake-game-react --save

Usage

import Snake from 'snake-game-react';

function App() {
  return (
    <div className="App">
      <Snake 
        color1="#248ec2"
        color2="#1d355e"
        backgroundColor="#ebebeb"
        />  
    </div>
  );
}

export default App;

Props

To match branding, you can input your preferred color scheme.

Props:

  1. color1: string
  2. color2: string
  3. backgroundColor: string

Dependencies

React of course.

About

Classic (and addictive) Snake game - built as a reusable react component.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 77.8%
  • HTML 11.2%
  • CSS 11.0%