# HG changeset patch # User Adrianna PiƄska # Date 1302385500 -7200 # Node ID c7c3f55554d41978457a5e36f2f0f79521216819 # Parent 4de4f94c326d61c36a314f150313ea125303d3ff add tofu and scroll totals to the hud diff -r 4de4f94c326d -r c7c3f55554d4 skaapsteker/constants.py --- a/skaapsteker/constants.py Sat Apr 09 23:45:00 2011 +0200 +++ b/skaapsteker/constants.py Sat Apr 09 23:45:00 2011 +0200 @@ -59,4 +59,4 @@ HEALTH_WIDTH = 20 SCROLL_TOP = 220 - TOFU_TOP = 250 + TOFU_TOP = 280 diff -r 4de4f94c326d -r c7c3f55554d4 skaapsteker/levelscene.py --- 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)