Mercurial > skaapsteker
comparison scripts/level-editor @ 42:4a9e26f1f35a
Remove area keyword for pygame 1.8 compatability
author | Neil Muller <drnlmuller@gmail.com> |
---|---|
date | Sun, 03 Apr 2011 20:33:43 +0200 |
parents | fa1bb94cfa76 |
children | 7f7b4bfbaf0e |
comparison
equal
deleted
inserted
replaced
41:55bb5bb40873 | 42:4a9e26f1f35a |
---|---|
49 position[1] = min(position[1], level.pixel_size[1] - SCREEN[1]) | 49 position[1] = min(position[1], level.pixel_size[1] - SCREEN[1]) |
50 | 50 |
51 clip_rect = pygame.Rect(position, screen_surface.get_size()) | 51 clip_rect = pygame.Rect(position, screen_surface.get_size()) |
52 level_surface.set_clip(clip_rect) | 52 level_surface.set_clip(clip_rect) |
53 level.draw(level_surface) | 53 level.draw(level_surface) |
54 screen_surface.blit(level_surface, (0, 0), area=clip_rect) | 54 screen_surface.blit(level_surface, (0, 0), clip_rect) |
55 | 55 |
56 pygame.display.flip() | 56 pygame.display.flip() |
57 clock.tick(FRAMERATE) | 57 clock.tick(FRAMERATE) |
58 | 58 |
59 def main(): | 59 def main(): |