Esempio n. 1
0
def pygame_setup():
    os.environ["SDL_VIDEODRIVER"] = "dummy"
    pygame.init()
    pygame.display.set_mode((Block.block_size * Engine.scene_width,
                             Block.block_size * Engine.scene_height))
    set_root(os.path.dirname(os.path.abspath(figgy.__file__)))
    yield None
    pygame.display.quit()
Esempio n. 2
0
 def setUpClass(cls):
     """Initialise the display and set loaders to target the current dir."""
     pygame.init()
     cls.surf = pygame.display.set_mode((200, 100))
     set_root(__file__)
Esempio n. 3
0
 def setUpClass(self):
     set_root(__file__)
Esempio n. 4
0
 def setUpClass(self):
     set_root(__file__)
Esempio n. 5
0
 def setUpClass(cls):
     set_root(__file__)
     pygame.init()
     pygame.display.set_mode((TEST_DISP_W, TEST_DISP_H))