- autoMagic resize

master
Steve Clement 2014-08-31 01:07:45 +02:00
parent f77f15c0f3
commit 7d47746e7d
1 changed files with 7 additions and 1 deletions

View File

@ -18,8 +18,14 @@ class TheGame:
pygame.init()
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
self.size = (800, 600)
self.size = (self.WIDTH, self.HEIGHT)
self.screen = pygame.display.set_mode(self.size)
self.colors = [BLUE, GREEN, RED, YELLOW]