예제 #1
0
파일: player.py 프로젝트: SentulAsia/pygame
 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()
예제 #2
0
 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()