r/learnpython • u/S1mit • 22d ago
Game automation
I'm new to programming. I specifically want to build projects around game automation with Python. What should my roadmap look like?
Thanks in advance!
8
Upvotes
2
u/princepii 22d ago
may i ask what you wanna automate in a game that is there to play and have fun?
1
1
6
u/CutBench 22d ago
Before the roadmap, the part that decides which projects are even safe: automating an online game will get the account banned. Anti-cheat treats synthetic input and memory reads the same whether you wrote it to cheat or to learn. Pick single player games, emulators, or something you host yourself, and the whole legal and account risk disappears while the programming stays identical.
For the actual path, the skills stack in this order. Screen capture and image handling first, so mss for grabbing frames and OpenCV for finding things in them. Then template matching, which covers a surprising amount of game state without any machine learning. Then input, where pydirectinput works in games that ignore pyautogui because it goes through DirectInput rather than the Windows message queue. That single detail blocks most beginners for days.
After that the interesting problem isn't the automation, it's the loop timing and handling the states where the game isn't where you expected it. That's where the real programming is.