Health_bar

This module is part of the dungeon_gui package, for the graphical representation of the dungeon

class health_bar.HealthBar(blink_counter, x=50, y=260, max_health=100, current_health=100)

Bases: object

This class describes the representation of the Health Bar Object

draw(screen)

Draws the Health Bar Object on the screen

Parameters

param screen:

Screen where dungeon_gui runs

type screen:

pygame Surface

update_health(health)

Updates current_health, blinking and hp_text attributes

Parameters

param health:

Hero health value

type health:

int