From 4b71cfb1ad842c2c93d2e22482a141942e640219 Mon Sep 17 00:00:00 2001 From: Rahul Kumar Tiwari <31995292+Rahul-Kumar-Tiwari@users.noreply.github.com> Date: Tue, 8 Oct 2019 15:26:24 +0530 Subject: [PATCH] some valuable comments are added --- car_race.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/car_race.py b/car_race.py index bcff081..430b992 100644 --- a/car_race.py +++ b/car_race.py @@ -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 @@ -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): @@ -223,4 +223,4 @@ def gameloop(): clock.tick(60) game_intro() gameloop() -gameQuit() \ No newline at end of file +gameQuit()