WeChat jump Jump Python Helper Script instance sharing

Source: Internet
Author: User
This article is mainly for everyone to sort out a jump on the auxiliary script content, this time we have to organize the content of the script is about Python, together to learn.

This time jump jump this game is very hot, but the score is very difficult for the programmer, the first idea is to write a helper script plug to make it easy to change, Python is now more fire, we come together in the Python language based on the following the fairy-tale of a jump of the auxiliary script, It is very helpful for you to learn Python when you are learning the main idea of how they are written.

1. Jump-Jump automatically run Python script

NOTES: Ideas

Core: After each fall, according to the coordinates of the chess piece and the midpoint coordinate of the next block's top face,

Times a long press based on the distance of two points multiplied by a time factor

Identify a piece: By the color of the piece to identify the position, by discovering that the bottom line is probably a straight line, from the top down a line to traverse,

Compare colors (colors are compared by an interval) find all the points in the bottom row, and then ask for a dot,

The coordinates of the center point are obtained by reducing the Y-coordinate to half the height of the piece's chassis.

Identify the board: by the color of the background and the square to do, starting from the position below the score, a line of scanning, because the circle of the top of the block is a line,

The square above is probably a point, so the use of similar identification pieces of the practice of more than a few points to find the midpoint,

The X-axis coordinates of the midpoint of the block are now assumed to be at the center of the current block,

The Y-coordinate of the midpoint is rolled out according to a fixed angle obtained

Finally: Get the long-press time (as if the X-axis distance is possible) by multiplying the distance by the coordinates of the two point.

2, score Bully list! Python helps you jump and get a high score.

Note: How this script works

On the jump page

Calculates the distance between the initial and the end points

Figure out how to measure the distance and pressure time

Find a way to press the phone for a specified time

Repeat 1-4

3. Jumping a little game python script

Rationale: Configure the ADB environment variable to add the path to the Adb.exe on My Computer – Properties – Advanced system settings – Environment variable – "path.

4, Python implementation of the jump-hop auxiliary tool steps detailed

This is a script on the PC-side simulation

Description

Install Android simulator on 1.windows, Android version 5.1 or above

2. Download and install the latest 6.6.1 in simulator

3. The best use of Python2.7,python3 Pyhook package has a bug, solve the more troublesome

5, jump jump python auxiliary software ideas and image identification source analysis

Core Ideas

Gets the distance from the center point of the piece to the next block.

Calculate the time to touch the screen

Tap the screen

Calculates the distance from the center point of a piece to the next block

Use the ADB shell screencap-p command to get your phone's current screen picture

The coordinates of the pawn and the center point of the next block are found by the information on the image.

Then the distance is calculated by the distance formula between two points.

6, Millet 5s jumping a small program python source code

This script is the Xiaomi 5S this mobile phone as an example of the principle and implementation of the same way as before.

7, Python3 realization jump Jump Click Jump

First, the overall thinking

The coordinates in which the pieces are located and the coordinates to be reached in the next step are calculated from two coordinates to jump between two points.

Second, the distribution of ideas

1, according to the command to get the initial diagram saved to the phone, and then upload to the local folder

2. Put the acquired in the new axis (matplotlib)

3, through the mouse click event to obtain the initial coordinates and focus coordinates, and calculate the straight distance

4, jump, empty the coordinates and update after the jump is complete

8, teach you to use Python to achieve a jump (Mac+ios version)

This is a script implemented in Python in a Mac environment and in the iOS system.

9, PYTHON+OPENCV Let the computer help you play a jump

The script in this article is slightly more complex and is suitable for advanced Python programmers to learn.

The above is the script house for everyone to write about using the Python language in different operating system context for the use of a skip-hop script assistance related content, if you are interested in this, then after studying the above content, you will have a more in-depth knowledge of python, by jumping this small game for example, More content can be extrapolate.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.