Golf Game with pygame

This is the code

pygame.mixer.init()
pygame.mixer.music.load("sounds/music.mp3")
pygame.mixer.music.play(-1)
blip = pygame.mixer.Sound("sounds/blip.wav")
ball = pygame.mixer.Sound("sounds/ball.ogg")

when you want to make the sound to play:

blip.play()

The code

https://github.com/techwithtim/Golf-Game

The author tutorial


Subscribe to the newsletter for updates
Tkinter templates
Avatar My youtube channel

Twitter: @pythonprogrammi - python_pygame

Videos

Speech recognition game

Pygame's Platform Game

Other Pygame's posts

Published by pythonprogramming

Started with basic on the spectrum, loved javascript in the 90ies and python in the 2000, now I am back with python, still making some javascript stuff when needed.