Ignore:
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TODO.txt

    r233 r242  
    4040                * smashable obstacle?
    4141                * tiles for different surfaces? e.g. damaging (pool of acid), slippery (ice), sticky (alien goop), etc.
     42
     43* Sounds required:
     44        * Environmental:
     45                * Passive:
     46                        * engine
     47                        * backround noises
     48                        * music
     49                        * reactor?
     50                * Active:
     51                        * doors
     52                        * crates
     53                        * switches
     54        * Aliens:
     55                * shooting (1-2 sounds)
     56                * movement
     57                * talking (generic and alarmed warbling)
     58                * death sound
     59        * Protagonist and other "humans":
     60                * attacking (shooting and gnawing (as werewolf))
     61                * movement - human and werewolf
     62                * talking (generic human mumbling and howling)
     63                * death sound
     64               
     65               
  • nagslang/screens/area.py

    r238 r244  
    177177            if overlay.is_visible():
    178178                overlay.render(surface, render_rect.topleft)
     179        self.render_health_bar(surface)
    179180
    180181    def tick_protagonist(self):
     
    186187        for drawable in self._drawables:
    187188            drawable.animate()
     189
    188190        super(AreaScreen, self).tick(seconds)
     191
     192    def render_health_bar(self, surface, health_as_percentage=50,
     193                         health_type='human'):
     194        rect = pygame.Rect(50, 500, 110, 50)
     195        pygame.draw.rect(surface,  pygame.color.THECOLORS['white'],
     196                         rect, 0)
     197        if health_type is 'human':
     198            health_colour = pygame.color.THECOLORS['red']
     199        else:
     200            health_colour = pygame.color.THECOLORS['purple']
     201        rect = pygame.Rect(55, 505, health_as_percentage, 40)
     202        pygame.draw.rect(surface,  health_colour,
     203                         rect, 0)
Note: See TracChangeset for help on using the changeset viewer.