def __init__(self, grid): self.setting = settings.player_setting self.grid_setting = settings.grid_setting self.grid = grid self.grid_on_screen = grids.sokoban_grid() self.window = pygame.display self.draw()
def __init__(self): self.grid_setting = settings.grid_setting self.setting = settings.window_setting self.size = (self.setting['width'], self.setting['height']) self.caption = self.setting['title'] self.window = pygame.display self.window.set_caption(self.caption) self.screen = self.window.set_mode(self.size, 0, 24) self.grids = grid.sokoban_grid() self.grids.draw() pygame.display.flip()