# HG changeset patch # User Jeremy Thurgood # Date 1378493977 -7200 # Node ID 3aa3981a64a4db133d2ca6add4d1b60f87b0983c # Parent 72a91d64c0880efce3c1b7a897204877b54b5b06 More sensible health bar positioning. diff -r 72a91d64c088 -r 3aa3981a64a4 nagslang/screens/area.py --- a/nagslang/screens/area.py Fri Sep 06 20:45:02 2013 +0200 +++ b/nagslang/screens/area.py Fri Sep 06 20:59:37 2013 +0200 @@ -256,4 +256,5 @@ rect = pygame.Rect(5, 5, self.protagonist.get_health_level(), 40) pygame.draw.rect(bar_surface, health_colour, rect, 0) bar_surface.set_alpha(192) - surface.blit(bar_surface, (50, 500)) + y_pos = surface.get_height() - 20 - bar_surface.get_height() + surface.blit(bar_surface, (20, y_pos))