This project is a Python script that automates the game Stick Hero using the Android Debug Bridge (ADB) and image processing.
- Connects to an Android device using ADB.
- Takes screenshots of the game.
- Processes the screenshots to determine the positions of the platforms.
- Calculates the distance the hero needs to travel.
- Automates the game based on the calculated distances.
- Python 3
- ADB installed and configured
- An Android device with Stick Hero installed
- The following Python packages:
ppadb
,PIL
,numpy
-
Clone this repository.
-
Install the required Python packages using pip:
pip install -r requirements.txt
-
Run the script:
python stickhero.py
- Connect your Android device to your computer.
- Start the Stick Hero game on your device.
- Run the script on your computer.
Contributions are welcome. Please open an issue to discuss your idea or submit a pull request.
This project is licensed under the terms of the MIT license.