react-old-snake-game

1.0.3 • Public • Published

React based snake game. Main purpose - use as little packages as possible to grasp basic main principles of plain react.

Installation

yarn add react-old-snake-game

And you should import styles

import 'react-old-snake-game/dist/assets/css/index.css'

Usage

import Snake from 'react-old-snake-game';
import 'react-old-snake-game/dist/assets/css/index.css'

const App = () => {
  return (
    <Snake/>
  )
}

export default App

Controls

  • With arrow keys

  • w goes ↑
  • d goes →
  • s goes ↓
  • a goes ←

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i react-old-snake-game

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

238 kB

Total Files

28

Last publish

Collaborators

  • dovydasbu