Code Monkey home page Code Monkey logo

chrome_dino_game's Introduction

恐龙快跑!

更容易嵌入的"恐龙快跑!"游戏.

恐龙快跑!(T-Rex Runner) 是 Chrome 浏览器在离线时出现的小游戏彩蛋.你可以断开网络后,在 Chrome 进入任意链接看到这个游戏.

虽然已经有人将这个游戏抽离出来了(见 https://github.com/wayou/t-rex-runner ),但为了更方便的将游戏嵌入第三方网站,于是我创建了这个项目.

另外,我对游戏源码做了一些修改,让它也能运行在非 Chrome 浏览器( safari,微信 )里.

当前版本的"恐龙快跑!"是从 Chrome 50.0.2661.86 (64-bit) 内抽离出来的.

如何使用

That's all:

<div id="container"></div>
<script src="runner.js"></script>
<script>
 initRunner('#container');
</script>

说明

更更更容易嵌入的恐龙快跑游戏,前作者的文件目录还是很复杂,还不够简洁,现在直接引入runner文件一步到位! runner.js可以处于任意位置,例如OSS云储存,Github,等。

chrome_dino_game's People

Contributors

linusxiong avatar lmk123 avatar npmcdn-to-unpkg-bot avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.