Imitation python version implementation

Environmental requirements

  1. The Node 8.9.1
  2. Android mobile phone
  3. The Adb driver

The principle of

  1. Use Adb to take a screenshot of the phone and copy it to the static file directory in the project
  2. The browser opens the page, establishes the WS connection, clicks the two coordinates, calculates the pressing time, and notifies the server
  3. The server receives the notification and uses Adb to simulate clicking on the phone, repeating 123

Using the step

  1. Install node dependencies and run the program
npm i
npm run dev
Copy the code
  1. Wechat open the small program jump a jump, and start the game
  2. Modify � app/public/index. HTML
<meta name='viewport' content='width={width of your phone}'>Copy the code
  1. Browser open http://127.0.0.1:7001/index.html �, enabled device simulation
  2. Click on the center of the two objects

The relevant data

  1. egg
  2. egg-socket.io
  3. socket.io
  4. The adb USES