@gnosis.pm/cow-runner-game
TypeScript icon, indicating that this package has built-in type declarations

0.2.9 • Public • Published

Cow Runner Game - React component

The trex runner game extracted from chrome offline error page, but with less dinosaurs and more Cows!

This project is a typescript library that provides CowGame as a react component.

Changes over the original:

  • Broken down into smaller entities (see src/game/model)
  • Converted into typescript project
  • The game has ben wrapped into a React component
  • The React component is exported as a library
  • Integrated with webpack. You can build the HTML page or run it in dev mode

🏗 Pending to add the sprites and styles for the cow game.

Usage

Add dependency to your project:

yarn add @gnosis.pm/cow-runner-game

Use the CowGame react component:

import { CowGame } from '@gnosis.pm/cow-runner-game'

export default function Your () {
  return (
    <div>
      <h1>Cow Game</h1>
      <p>Try not to get 🥪</p>

      <CowGame />
    </div>
  )
}

Development

Install dependencies

yarn

Run dev browser

yarn start

Build library

yarn build

Readme

Keywords

none

Package Sidebar

Install

npm i @gnosis.pm/cow-runner-game

Weekly Downloads

0

Version

0.2.9

License

none

Unpacked Size

247 kB

Total Files

61

Last publish

Collaborators

  • giacomo.licari