Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions car_race.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

pg.init()

crash_sound = pg.mixer.Sound("Crash_Sounds.wav")
pg.mixer.music.load("Pagani_zonda.wav")
crash_sound = pg.mixer.Sound("Crash_Sounds.wav") #crash sound
pg.mixer.music.load("Pagani_zonda.wav")

display_width = 800
display_width = 800 # Main window hight width
display_height = 600

car_width = 70
Expand All @@ -24,7 +24,7 @@
pg.display.set_caption("car race")
clock = pg.time.Clock()

carImg = pg.image.load('car.png')
carImg = pg.image.load('car.png') #loading car image
pause = False

def car(x,y):
Expand Down Expand Up @@ -223,4 +223,4 @@ def gameloop():
clock.tick(60)
game_intro()
gameloop()
gameQuit()
gameQuit()