Piano Tiles – Week 3 (Python)

Our this week aim was to check if the person clicks on the right tile or not, and if any tile goes out of the screen without being clicked.

For that we made Button class in it we introduced a function click, the purpose of this function was to take the x,y coordinates of the point where player clicks and then check if that point was in the range of height and width of the generated tile. Then we initiated a dictionary, and appended all the tiles generated on the screen in it. And then we started a while loop until any tile was missed or any white space was pressed, we increased our tiles speed and score in this loop.

Now there is one problem that if I press twice on the same tile, it breaks that while loop. So next we will work on this problem and will add menu screen, end screen, and music.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s