Back to early work

Piano Tiles Game Hacking — Python Auto-Click Prototype

An early Python game-hacking experiment that used screen pixel detection and automated mouse clicks to play Piano Tiles.

Early project demo

Watch the demo directly on this page.

Open on YouTube

Overview

Piano Tiles Game Hacking was an early Python automation experiment from 2021 built around a simple gaming problem: Parth had started playing Piano Tiles and realized he was not very good at the game. Instead of only practising manually, he explored whether code could detect the black tiles and click them automatically. The project used Python desktop automation libraries to read pixel colours from the screen and trigger mouse clicks at the right positions. The word "hacking" here should be understood in the maker sense: finding creative gaps, experimenting with software automation, and learning how code can interact with real games on screen. This was maker-style game hacking and desktop automation — not cheating, bypassing security, or malicious hacking. This project is useful because it shows a different side of Parth's early learning. He was not limited to Arduino and C-style hardware projects. He was also exploring Python, desktop automation, screen reading, mouse control, and game interaction. It reflects a maker-style hacking mindset: seeing a gap, testing whether software can solve it, and moving into a new language and toolset to make the idea work. It also shows how Parth's gaming interest became a path into Python automation.

Problem solved

The project explored whether a repetitive visual game could be automated by detecting screen pixels and clicking the correct areas faster and more consistently than a human player.

What it does

The Python script checks specific screen coordinates where Piano Tiles lanes appear. If a pixel at one of those positions is black, the script triggers a mouse click at that coordinate. The loop continues until the escape key is pressed.

Contribution

Parth wrote the Python automation script, used pixel detection to identify black tiles, mapped screen coordinates to click positions, and connected visual detection with automated mouse input.

Piano Tiles Game Hacking — Python Auto-Click Prototype | Think Big AI Systems