Mercurial > skaapsteker
changeset 324:ca428c1451a2
Hook up drawing tofu and scroll counts
author | Neil Muller <drnlmuller@gmail.com> |
---|---|
date | Sat, 09 Apr 2011 01:08:55 +0200 |
parents | 27471c877374 |
children | efa037c3c82c |
files | skaapsteker/levelscene.py |
diffstat | 1 files changed, 16 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/skaapsteker/levelscene.py Sat Apr 09 01:03:37 2011 +0200 +++ b/skaapsteker/levelscene.py Sat Apr 09 01:08:55 2011 +0200 @@ -211,6 +211,22 @@ tail_pos = self._clip_rect.left + 8, self._clip_rect.top + constants.FoxHud.TAIL_POSITIONS[tail] self._level_surface.blit(self._tail, tail_pos) + # Draw scroll count + + pos = self._clip_rect.right - 20, self._clip_rect.top + 225 + count = Text("%s" % fox.scrolls, pos) + count.draw(self._level_surface) + pos = self._clip_rect.right - 55, self._clip_rect.top + 220 + self._level_surface.blit(self._scroll, pos) + + # Draw tofu count + pos = self._clip_rect.right - 20, self._clip_rect.top + 255 + count = Text("%s" % fox.tofu, pos) + count.draw(self._level_surface) + pos = self._clip_rect.right - 55, self._clip_rect.top + 250 + self._level_surface.blit(self._tofu, pos) + + def _update_clip_rect(self): cr = self._clip_rect