Mercurial > mamba
comparison mamba/engine.py @ 152:8502e422cefc
Gray background
author | Stefano Rivera <stefano@rivera.za.net> |
---|---|
date | Tue, 13 Sep 2011 21:32:38 +0200 |
parents | 45dd79e9ba1b |
children | b93845471311 |
comparison
equal
deleted
inserted
replaced
151:a40c94b57602 | 152:8502e422cefc |
---|---|
62 def dispatch(self, ev): | 62 def dispatch(self, ev): |
63 self.container.event(ev) | 63 self.container.event(ev) |
64 | 64 |
65 def draw(self, surface): | 65 def draw(self, surface): |
66 if self.surface: | 66 if self.surface: |
67 self.surface.fill(pygame.Color('black')) | 67 self.surface.fill(pygame.Color('gray')) |
68 self.container.draw(self.surface) | 68 self.container.draw(self.surface) |
69 surface.blit(self.surface, self.surface.get_rect()) | 69 surface.blit(self.surface, self.surface.get_rect()) |
70 | 70 |
71 | 71 |
72 class UserEvent(object): | 72 class UserEvent(object): |