Mercurial > zrpn
changeset 49:d53bde6ae6c8
More complete init of display
| author | Radomir Dopieralski <sheep-devel@sheep.art.pl> |
|---|---|
| date | Sat, 07 Jul 2012 18:26:58 +0200 |
| parents | 60fab20f67b0 |
| children | 299a6ee13abc |
| files | zrpn/display.py |
| diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/zrpn/display.py Sat Jul 07 18:26:16 2012 +0200 +++ b/zrpn/display.py Sat Jul 07 18:26:58 2012 +0200 @@ -12,11 +12,11 @@ self.screen = pygame.display.set_mode((800, 600)) self.screen.fill((0x33, 0x33, 0x33)) self.background = self.screen.copy() + self.sprites = pygame.sprite.LayeredDirty() + self.cids = {} def load_board(self, board, board_ids): - self.sprites = pygame.sprite.LayeredDirty() - self.cids = {} for y, line in enumerate(board): for x, cell in enumerate(line): sprite = sprites.Cell((x, y), cell)
