Skip to content

LzxHahaha/react-dinosaur-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-dinosaur-game

仿制 Chrome 的离线恐龙游戏实现的 React 组件。

demo

Usage

$ npm i react-dinosaur-game -S
import Game from 'react-dinosaur-game';

...

render() {
    return <Game />;
}

Document

props

options: {
      fps: Number, defauult 60,
      skySpeed: Number, default 40,
      groundSpeed: Number, default 100
}

About

chrome dinosaur game, implement by React.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published