Add sounds
This commit is contained in:
@@ -15,7 +15,7 @@ coin.x = random.randint(0, 800)
|
||||
coin.y = random.randint(0, 600)
|
||||
|
||||
score = 0
|
||||
timer = 10
|
||||
timer = 35
|
||||
|
||||
def update():
|
||||
global score
|
||||
@@ -39,6 +39,8 @@ def update():
|
||||
coin.x = random.randint(0, 800)
|
||||
coin.y = random.randint(0, 600)
|
||||
score += 1
|
||||
sounds.sfx_coin_single1.play()
|
||||
|
||||
|
||||
def draw():
|
||||
if timer <= 0:
|
||||
|
||||
Reference in New Issue
Block a user