- autoMagic resize
parent
f77f15c0f3
commit
7d47746e7d
8
game.py
8
game.py
|
@ -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]
|
||||
|
||||
|
|
Loading…
Reference in New Issue