Added pygame to requiremens.txt

master
David Raison 2014-08-30 22:02:17 +02:00
commit 1b07b502bb
3 changed files with 13 additions and 0 deletions

View File

@ -15,6 +15,7 @@ class Avocado:
self.has_been_pinned = False
return None
print('New avocado is ' + ','.join(str(color)))
self.screen = screen
self.color = color
self.select = select
@ -81,8 +82,16 @@ class Avocado:
def hasLanded(self):
if self.rect.bottom > self.screen_height or self.rect.top < 0:
self.is_falling = False
print('platch')
return True
def mute(self,mute=False):
if mute:
pygame.mixer.music.set_volume(0.0)
else:
pygame.mixer.music.set_volume(0.5)
def destroy(self):
del(self)

View File

@ -10,6 +10,7 @@ from pygame.locals import *
from support.colors import *
from interface import hud
def initialize_screen():
displayInfo = pygame.display.Info()
zoom = 1.3
@ -21,6 +22,8 @@ def initialize_screen():
def main():
pygame.init()
pygame.mixer.init()
pygame.mixer.music.set_volume(0.5)
pygame.display.set_caption('Pin Avo, the Cado!')
clock = pygame.time.Clock()

View File

@ -0,0 +1 @@
hg+https://bitbucket.org/pygame/pygame