Giter Club home page Giter Club logo

tojump's Introduction

toJump

用网页玩微信跳一跳小游戏

安装

安装 Node.js

git clone https://github.com/wotermelon/toJump.git

# 安装依赖
npm install

# 开启服务器,端口为4000,可通过config.js修改
npm start

使用方法

预先设置

安卓

  • 1.打开安卓手机的usb调试模式并授权连接的电脑

    如果是小米手机,在USB调试下方有USB调试(安全设置)打开允许模拟点击

    其他需要模拟点击授权的手机需要打开允许模拟点击

  • 2.在config中将device设置为android

IOS

  • 1.参考教程配置好WDA
  • 2.在config中将device设置为ios
  • 3.在config中配置WDA中得到的地址

开始使用

  • 1.打开微信跳一跳,并点击开始
  • 2.开启服务器,如上
  • 3.点击开始,先点击小人底部适当位置,然后再点想要跳的箱子的位置即可完成,结束之后可点击开始可重新开始

ps: 跳的精度不准问题可通过config.js中的magicNumber微调。。。

截图预览

截图

感谢

  • 增加对ios设备的支持 @moonou

由于图片未做处理,加载可能会有点慢。。。

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.