- MOdified some sounds and added a fail sound

- Modified the splash screen (higher Quali differen font)
- ABleton Project also updated
master
Steve Clement 8 years ago
parent e7a151492e
commit 045737f7a4
  1. BIN
      audio/AvoTheCado Project/ExportTheCado.als
  2. BIN
      audio/click.wav
  3. BIN
      audio/poop.wav
  4. 15
      avocado.py
  5. BIN
      img/splashScreen.png

Binary file not shown.

Binary file not shown.

@ -31,6 +31,7 @@ class Avocado:
# Avocado sounds
self.click = self.loadClick()
self.clickFail = self.loadFailClick()
def setTargetColor(self, targetColor):
@ -57,14 +58,18 @@ class Avocado:
if self.rect.left < mousex and self.rect.right > mousex and \
self.rect.top < mousey and self.rect.bottom > mousey:
self.click.play()
if self.color == self.target:
self.has_been_pinned = True
self.is_still_falling = False
self.click.play()
return True
else:
self.clickFail.play()
return False
# BUG - isHit is called 4 times upon click which makes it return the
# first time but fail the consecutive times
#else:
# self.clickFail.play()
def isFalling(self):
@ -101,5 +106,11 @@ class Avocado:
return pygame.mixer.Sound("audio/click.wav")
def loadFailClick(self, sound=True):
if not sound:
return
return pygame.mixer.Sound("audio/poop.wav")
def destroy(self):
del(self)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 508 KiB

After

Width:  |  Height:  |  Size: 1.1 MiB

Loading…
Cancel
Save