In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
In this article, the editor introduces in detail "how to achieve the high score function of WeChat Mini Programs in the jump game". The content is detailed, the steps are clear, and the details are handled properly. I hope that this article "how to achieve the high score function of WeChat Mini Programs in a jump game" can help you solve your doubts. Let's follow the editor's ideas to learn new knowledge.
Configuration process
Note: the computer environment is not configured with python environment, please configure it by Google or Baidu, which will not be described here.
1. Copy the entire project of the above portal locally (use the git command, or download the package directly, here you are free). For example, I download the zip file here and extract the directory below my computer.
two。 The main building uses ios, which is more tedious to operate, and I don't bother to find a test to Android testing machine, so I put down the simulator test, first push the lightning simulator, install the lightning simulator, download and install Wechat in the simulator, and remember to download or update to the latest version of Wechat, otherwise I won't be able to open and jump Mini Game.
3. Configure the lightning simulator by yourself. The following is what the blogger set up during the test.
4. Change to the / Tools/adb directory of the project, and the cmd command executes the following command:
Adb devices
The illustration of emulator-5554 device shows that our simulator device is checked.
5. Change to the root directory of the project, create a new 'config.json' file, and copy the following to the json file (the parameters of the current model adjusted by the blogger):
{"under_game_score_y": 300, "press_coefficient": 1.392, "piece_base_height_1_2": 24, "piece_body_width": 79, "swipe": {"x1": 500, "y1": 1600, "x2": 1602}}
6. The lightning simulator first enters the jump Mini Program, click start, and then the cmd command line runs the following command in the project root directory to execute the python script:
Python wechat_jump_auto.py
Achievement
Attach a few successful pictures of the blogger:
After reading this, the article "how to achieve the high score function of WeChat Mini Programs in a jump game" has been introduced. If you want to master the knowledge points of this article, you still need to practice and use it before you can understand it. If you want to know more about related articles, welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.