diff options
author | Alan Aguiar <alanjas@hotmail.com> | 2013-10-16 16:15:57 (GMT) |
---|---|---|
committer | Alan Aguiar <alanjas@hotmail.com> | 2013-10-16 16:15:57 (GMT) |
commit | fcfcd989ee5ba9d04d711e6bc852a4c451e386cb (patch) | |
tree | 6864b3fcbab8db0ded8933acac8a84ef5ead3645 | |
parent | 68c87bbd0a701df74f0e35ebf012ff461ebc8ef4 (diff) |
use all screen
-rwxr-xr-x | cells.py | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -36,14 +36,18 @@ class Game(): def __init__(self, fps = 30): self.fps = fps - self.cursor = pygame.cursors.compile(cursor.cursor_data) def load_all(self): pygame.init() + self.cursor = pygame.cursors.compile(cursor.cursor_data) pygame.mouse.set_cursor((32,32), (1,1), *self.cursor) + info = pygame.display.Info() + self.ScreenWidth = info.current_w + self.ScreenHeight = info.current_h self.screen = pygame.display.get_surface() if not(self.screen): - self.screen = pygame.display.set_mode((1200, 800)) + self.screen = pygame.display.set_mode((self.ScreenWidth, + self.ScreenHeight), pygame.FULLSCREEN) # time stuff self.clock = pygame.time.Clock() |