Mercurial > pyntnclick
comparison gamelib/state.py @ 88:053bc8e167fc
Don't render with BLEND_ADD, use normal overlay.
author | Simon Cross <hodgestar+bzr@gmail.com> |
---|---|
date | Tue, 24 Aug 2010 00:33:52 +0200 |
parents | 593bddfacf18 |
children | 350ce4ebe122 |
comparison
equal
deleted
inserted
replaced
87:4c6fea1b242b | 88:053bc8e167fc |
---|---|
150 sub = surface.subsurface( | 150 sub = surface.subsurface( |
151 Rect(5, 5, *self._current_description.size)) | 151 Rect(5, 5, *self._current_description.size)) |
152 self._current_description.draw_all(sub) | 152 self._current_description.draw_all(sub) |
153 | 153 |
154 def draw_background(self, surface): | 154 def draw_background(self, surface): |
155 surface.blit(self._background, (0, 0), None, BLEND_ADD) | 155 surface.blit(self._background, (0, 0), None) |
156 | 156 |
157 def draw_things(self, surface): | 157 def draw_things(self, surface): |
158 for thing in self.things.itervalues(): | 158 for thing in self.things.itervalues(): |
159 thing.draw(surface) | 159 thing.draw(surface) |
160 | 160 |
211 def set_thing(self, thing): | 211 def set_thing(self, thing): |
212 pass | 212 pass |
213 | 213 |
214 def draw(self, surface): | 214 def draw(self, surface): |
215 if self.image is not None: | 215 if self.image is not None: |
216 surface.blit(self.image, self.rect, None, BLEND_ADD) | 216 surface.blit(self.image, self.rect, None) |
217 | 217 |
218 | 218 |
219 class InteractNoImage(Interact): | 219 class InteractNoImage(Interact): |
220 | 220 |
221 def __init__(self, x, y, w, h): | 221 def __init__(self, x, y, w, h): |