Mercurial > nagslang
changeset 365:3aa3981a64a4
More sensible health bar positioning.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Fri, 06 Sep 2013 20:59:37 +0200 |
parents | 72a91d64c088 |
children | 9898fa231c4b |
files | nagslang/screens/area.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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))