wechat_jump_game
微信《跳一跳》Python 辅助
A Python script that automatically plays the WeChat Jump mobile game by connecting to an Android phone via ADB, analyzing screenshots to find the jump target, and sending the correct tap to the screen.
This repository contains a Python script that plays the WeChat "Jump" mobile mini-game automatically. Jump is a casual game released within the WeChat app in late 2017 where a small figure must jump from platform to platform. Holding your finger on the screen charges the jump, and releasing it sends the character forward. A longer press equals a longer jump. The goal is to land precisely on each platform and build up a high score on the leaderboard.
The script works by connecting to an Android phone via ADB, which is a standard developer tool for communicating with Android devices from a computer. It captures a screenshot of the current game state, analyzes the image to find where the character is standing and where the next platform is located, then calculates how far apart they are in pixels. From that distance, it computes how long to press the screen and sends that press command back to the phone via ADB. The result is that the character jumps the correct distance without any human input.
The README describes two operation modes. In the manual mode, a screenshot is shown on screen and the user clicks two points to indicate the start and target positions, then the script handles the tap. In the automatic mode, the script identifies the character and target platform by their colors in the screenshot and does the whole thing without human involvement.
The README includes a note that WeChat's anti-cheat detection has improved significantly, and the bypass code in the repository may no longer work. The authors describe it as primarily a learning resource rather than a practical tool, since the game's detection is now strict enough to catch most automated clients.
The code is written in Python 3 and uses ADB shell commands for device interaction and image processing for the visual analysis step.
Where it fits
- Learn how ADB lets a computer send tap commands to an Android phone by reading the automation script.
- Study image processing techniques that detect objects by color in screenshots to calculate jump distances.
- Understand how to build a game automation bot that captures screenshots and acts on what it sees.