changeset 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 4de4f94c326d
children 4242066f771d
files skaapsteker/constants.py skaapsteker/levelscene.py
diffstat 2 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- 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
--- 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)