Merge branch 'master' of github.com:lvl2/avocados

master
David Raison 2014-08-31 01:12:46 +02:00
commit 9f023b0c7d
1 changed files with 7 additions and 1 deletions

View File

@ -18,8 +18,14 @@ class TheGame:
pygame.init() pygame.init()
pygame.display.set_caption('Pin Avo, the Cado!') pygame.display.set_caption('Pin Avo, the Cado!')
displayInfo = pygame.display.Info()
self.resize = 1.3
self.WIDTH = int(displayInfo.current_w / self.resize)
self.HEIGHT = int(displayInfo.current_h / self.resize)
# initialize the game canvas # initialize the game canvas
self.size = (800, 600) self.size = (self.WIDTH, self.HEIGHT)
self.screen = pygame.display.set_mode(self.size) self.screen = pygame.display.set_mode(self.size)
self.colors = [BLUE, GREEN, RED, YELLOW] self.colors = [BLUE, GREEN, RED, YELLOW]
self.bg = pygame.image.load(os.path.join('img', 'lawyerCrystalBall.png')) self.bg = pygame.image.load(os.path.join('img', 'lawyerCrystalBall.png'))