Skip to content

Commit

Permalink
added pre init calls for game
Browse files Browse the repository at this point in the history
  • Loading branch information
wilfriedE committed May 9, 2016
1 parent 084121b commit 1a61f8f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions game/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ class PyCutGame():
"""docstring for PyCutGame"""
def __init__(self):
self.data = None
#pre-inits for pygame?
pygame.mixer.pre_init(44100, -16, 1, 512*2)
pygame.display.init()
pygame.font.init()
pygame.mixer.init(44100)
########################
self.screen = pygame.display.get_surface()
self.width = 1000
self.height = 900
Expand Down

0 comments on commit 1a61f8f

Please sign in to comment.