Esempio n. 1
0
 def __init__(self):
     pygame.init()
     renderer = pygame.display.set_mode(self.size)
     ccGlobals.set_renderer(renderer)
     ccGlobals.size = self.size
Esempio n. 2
0
 def __init__(self):
     pygame.init()
     ccGlobals.set_renderer(pygame.display.set_mode(ccGlobals.size))
     self.renderer = ccGlobals.get_renderer()