• Stars
    star
    252
  • Rank 161,363 (Top 4 %)
  • Language
    JavaScript
  • Created almost 7 years ago
  • Updated almost 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

😊 Nodejs 微信《跳一跳》辅助

游戏模式

Nodejs 微信《跳一跳》辅助

2017 年 12 月 28 日下午,微信发布了 6.6.1 版本,加入了「小游戏」功能,并提供了官方 DEMO「跳一跳」。这是一个 2.5D 插画风格的益智游戏,玩家可以通过按压屏幕时间的长短来控制这个「小人」跳跃的距离。分数越高,那么在好友排行榜更加靠前。通过 NodeJS 脚本自动运行,让你轻松霸榜

可能刚开始上手的时候,因为时间距离之间的关系把握不恰当,只能跳出几个就掉到了台子下面。如果能利用图像识别精确测量出起始和目标点之间测距离,就可以估计按压的时间来精确跳跃

原理说明

  1. 将手机点击到《跳一跳》小程序界面
  2. 用 ADB 工具获取当前手机截图,并用 ADB 将截图 pull 上来
adb shell mkdir -p /sdcard/wscats
adb shell screencap -p /sdcard/wscats/screen.png
adb pull /sdcard/wscats/screen.png .
adb shell rm -r /sdcard/wscats/
  1. 计算按压时间

因为写的这个是手动版本,在浏览器端显示游戏页面,用鼠标先点击起始点位置,然后点击目标位置,用勾股定理计算像素距离,再根据距离计算触按屏幕时间

  1. 用 ADB 工具点击屏幕蓄力一跳
adb shell input swipe x y x y time(ms)

使用教程

  1. 用GIT或者DownloadZIP下载项目,并在终端中执行以下命令
git clone https://github.com/Wscats/wechat-jump-game
cd wechat-jump-game
node index
  1. 打开浏览器,输入以下地址,然后打开微信跳一跳游戏界面,并在浏览器页面中进行点击操作
http://localhost:1314/index.html

相关软件工具安装和使用步骤请参考Node环境下使用adb驱动安卓手机

项目根目录下已经下载好了一个ADB的驱动包,可以直接在电脑上配置ADB的环境变量,测试的安卓手机是(1280*720)分辨率,手机一般要打开MTP和开发者调试模式,并进行一定的配置,详见Android和iOS操作步骤

参考项目

这里的思路参考了python 微信《跳一跳》辅助,用Nodejs重写了逻辑

More Repositories

1

articles

🔖My Learning Notes and Memories - 分享我的学习片段和与你的回忆
Lua
3,171
star
2

piano

🎹Play the piano with the keyboard - 用键盘8个键演奏一首蒲公英的约定送给自己或月亮代表我的心送给她
JavaScript
1,130
star
3

CV

🙈Front End Engineer Curriculum Vitae - 面试宝典和简历生成器
HTML
1,043
star
4

node-tutorial

☺️Some of the node tutorial -《Node学习笔记》
JavaScript
541
star
5

vue-tutorial

🎃 Some of the vue-tutorial - 《Vue学习笔记》
494
star
6

vue-cli

📃基于 Vue3.0 Composition Api 快速构建实战项目
Vue
478
star
7

emoji

⭕〽️❗Omi Emoji
JavaScript
426
star
8

react-tutorial

🐅Some of the react tutorial - 《React学习笔记》
JavaScript
423
star
9

angular-tutorial

🐰Some of the angular tutorial - 《Angular学习笔记》
387
star
10

news

🐼Based on angular.js, weui and node.js rewrite news client - 新闻客户端
JavaScript
363
star
11

vue-awesome-mui

🏆Mui component for Vue.js(1.x ~ 2.x)
JavaScript
350
star
12

iPhone-X

🐳A simple and easy way to keep your custom views layout properly on iPhone X
CSS
340
star
13

socket.io

NodeJS《你画我猜》游戏
JavaScript
309
star
14

layout-demo

Various Layouts Of CSS
Lua
300
star
15

cms

News Management System Written In PHP - 从零开始用 PHP 实现内容管理系统后台
HTML
294
star
16

blog

Waving wild hands in the wind, writing brilliant poems, no matter how tired
HTML
277
star
17

webpack

📜Some of the node tutorial -《Webpack学习笔记》
JavaScript
276
star
18

littlefish

How far a life has to go, and how many years have passed before we can reach the end
CSS
259
star
19

compile-hero

🔰Visual Studio Code Extension For Compiling Language
TypeScript
257
star
20

workerman

Workerman框架二次开发
PHP
249
star
21

openharmony-sheet

📊从零开始使用华为鸿蒙 OpenHarmony 开发游戏和表格渲染引擎
JavaScript
232
star
22

wechat-tnwz

Nodejs 微信《头脑王者》辅助
JavaScript
230
star
23

requirejs-demo

《RequreJS学习笔记》
JavaScript
198
star
24

browser-preview

🎢Preview html file in your default browser
TypeScript
195
star
25

virtual-dom

关于Vue,React,Preact和Omi等框架源码的解读
HTML
191
star
26

awesome

🚠Algorithm And Data Structure
JavaScript
189
star
27

omi-snippets

🔖Visual Studio Code Syntax Highlighting For Single File React And Omi Components - 编写React和Omi单文件组件的VSC语法高亮插件
HTML
186
star
28

omil

📝Webpack loader for Omi.js React.js and Rax.js components 基于 Omi.js,React.js 和 Rax.js 单文件组件的 Webpack 模块加载器
JavaScript
180
star
29

glup

Some of the gulp tutorial -《gulp笔记》
JavaScript
174
star
30

awesome-harmony

收录来源于网上鸿蒙系统开发的相关资料
JavaScript
168
star
31

search-online

🔍A simple extension for VSCode to search online easily using search engine.
TypeScript
164
star
32

python-tutorial

🏃 Some of the python tutorial - 《Python学习笔记》
JavaScript
157
star
33

regular

🔍The convenient paste of regular expression🔎
153
star
34

leetcode

leetcode
HTML
149
star
35

trip

Angular 仿携程的 demo
CSS
147
star
36

omi-electron

🚀Build cross platform desktop apps with Omi.js and Electron.js 基于Omi.js和Electron.js构建跨平台的桌面应用
HTML
146
star
37

egret

🐦Some of the egret tutorial -《白鹭引擎笔记》
JavaScript
146
star
38

less-demo

JavaScript
146
star
39

weixin-demo

JavaScript
143
star
40

swiper-iscroll-demo

JavaScript
141
star
41

see-you-again

😊 Because love is very heavy, but I don’t want to understand it, I’m afraid of being touched, I only walk in the opposite direction, with my back to the wet pupils, please let go, seek your own sky, if you lose, you’re tired, remember to turn around See You Again My Class~
141
star
42

cordova-demo

Objective-C
138
star
43

git-test

136
star
44

spy

A simple module that displays DOM attributes on mouseover inside a tooltip.
JavaScript
136
star
45

react-native

📱Test Directory Of React Native
JavaScript
135
star
46

create-angular-app

基于 Webpack 自定义 Angular 脚手架
TypeScript
135
star
47

react-redux

《Redux笔记》
JavaScript
131
star
48

vueno

Vue Conversion Plugin
JavaScript
124
star
49

create-react-app

基于Webpack自定义React脚手架
JavaScript
124
star
50

performance-decorator

🏇User behavior & Function execution tracking solution - 大型前端项目的用户行为跟踪,函数调用链分析,断点调试共享化和复用化实践
114
star
51

jest-tutorial

🎪Jest Architecture -《从零开始实现一个 Jest 单元测试框架》
JavaScript
100
star
52

omi-docs

📃Omil 文档
HTML
100
star
53

intersect

一道面试题的思考 - 6000万数据包和300万数据包在50M内存使用环境中求交集
JavaScript
97
star
54

media-tutorial

流处理,TCP和UDP,WebRTC和Blob
JavaScript
83
star
55

prototype

📖Prototype Document
82
star
56

vue-snippets

Visual Studio Code Syntax Highlighting For Vue3 And Vue2
JavaScript
67
star
57

sheet

📊OpenHarmony Sheet 表格渲染引擎
JavaScript
60
star
58

sweet

🍡Life needs a little sweet
51
star
59

html-snippets

Full HTML tags including HTML5 Snippets.
50
star
60

bullshit-generator

Greatly improve the production efficiency of nonsense.
TypeScript
49
star
61

Wscats

👨‍🚒 About me
48
star
62

command-runner

💻A VSCode extension that simply obtains the file path and executes the corresponding command
TypeScript
47
star
63

github-actions-tutorial

➿Github Action Tutorial - 《Github Action教程》
JavaScript
46
star
64

flappy

🐧OpenHarmony Flappy Bird
JavaScript
46
star
65

uni-app

Support commonly used code snippets in Hbuilder/HbuilderX.
Lua
44
star
66

yox-snippets

Visual Studio Code Syntax Highlighting For Yox
TypeScript
42
star
67

ACEM

TypeScript
42
star
68

java-snippets

Provide Java development 35000+ code snippets and detailed interface reminders, which greatly improves your development efficiency
HTML
42
star
69

dnd-tutorial

拖拽示例
TypeScript
42
star
70

dependency-injection

🌀Dependency injection to achieve inversion of control -《从零开始实现依赖注入框架》
TypeScript
42
star
71

chatgpt-demo

A demo repo based on OpenAI GPT-3.5 Turbo API
TypeScript
42
star
72

chrome-devtools-cli

Google Chrome Extension CLI
JavaScript
42
star
73

lerna-tutorial

💈Some of the lerna tutorial - 《Lerna学习笔记》
JavaScript
42
star
74

delete-node-modules

✂️ Simple extension for Visual Studio Code that allows you to quickly delete your project's node_modules directory
JavaScript
41
star
75

vscode-clipboard

一款 VSCode 插件,用于保留项目的复制和剪切内容,并可在面板的历史记录中重新选择粘贴。
TypeScript
41
star
76

vue-extension-pack

🚚Popular VS Code extensions for Vue.js development.
Vue
40
star
77

react-extension-pack

🚚Popular VS Code extensions for React.js development.
40
star
78

webpack-nx-build-coordination-plugin

Use to coordinate the compiling of the libs and the webpack linking.
TypeScript
40
star
79

monorepo-tutorial

💈Some of the lerna tutorial - 《Lerna学习笔记》
JavaScript
39
star
80

angular-extension-pack

🚚Popular VS Code extensions for Angular development.
39
star
81

assemblyscript-tutorial

Learning about webassembly
HTML
39
star
82

lazy-preload

Wraps the React.lazy API with preloaded functionality.
TypeScript
38
star
83

theia-extension

TypeScript
37
star
84

vscode-explore

Learning about vscode
TypeScript
37
star