Mercurial > skaapsteker
diff skaapsteker/levelscene.py @ 523:c7c3f55554d4
add tofu and scroll totals to the hud
author | Adrianna Pińska <adrianna.pinska@gmail.com> |
---|---|
date | Sat, 09 Apr 2011 23:45:00 +0200 |
parents | a89ab402b569 |
children | b7f912705adb |
line wrap: on
line diff
--- a/skaapsteker/levelscene.py Sat Apr 09 23:45:00 2011 +0200 +++ b/skaapsteker/levelscene.py Sat Apr 09 23:45:00 2011 +0200 @@ -279,17 +279,17 @@ pygame.draw.rect(self._level_surface, fox_hud.HEALTH_FOREGROUND, bar) # Draw scroll count - pos = self._clip_rect.right - 20, self._clip_rect.top + fox_hud.SCROLL_TOP + 5 - count = Text("%s" % len(fox.scrolls), pos) + pos = self._clip_rect.right - 35, self._clip_rect.top + fox_hud.SCROLL_TOP + 30 + count = Text("%s/5" % len(fox.scrolls), pos) count.draw(self._level_surface) - pos = self._clip_rect.right - 55, self._clip_rect.top + fox_hud.SCROLL_TOP + pos = self._clip_rect.right - 35, self._clip_rect.top + fox_hud.SCROLL_TOP self._level_surface.blit(self._scroll, pos) # Draw tofu count - pos = self._clip_rect.right - 20, self._clip_rect.top + fox_hud.TOFU_TOP + 5 - count = Text("%s" % fox.tofu, pos) + pos = self._clip_rect.right - 42, self._clip_rect.top + fox_hud.TOFU_TOP + 28 + count = Text("% 3s%%" % fox.tofu, pos) count.draw(self._level_surface) - pos = self._clip_rect.right - 55, self._clip_rect.top + fox_hud.TOFU_TOP + pos = self._clip_rect.right - 35, self._clip_rect.top + fox_hud.TOFU_TOP self._level_surface.blit(self._tofu, pos)