Tkinter Game Update

Remember the last Tkinter game post where I said the game would run ONLY on Tkinter? I lied. I decided to use Pygame for it. Why? To add sounds to the game.

The code makes sure that whenever I click the ” Basic Attack ” button, a sound will play. The ability to play sound once a button is clicked isn’t really installed on Tkinter, so I imported Pygame to do that. Then, I downloaded an audio file of my choosing from a website. FYI, this website is safe, and I have experienced 0 viruses or errors surfing this site.

If there’s a lesson to learn from this code adventure, then it would something along the lines of ” Sometimes, you gotta break a few rules. “

Leave a Reply

Your email address will not be published. Required fields are marked *