A small health bar demo project.
Usage
You can tweak the values in the draw_lives() function to change the appearance of the health bar. The 'x' and 'y' variables control the x and y of the top left corner of the health bar, the 'off' variable alters the spacing between the hearts and the 'life' variable controls the number of lives, out of the 'max' variable.
Feel free to use this in any project you may be working on!
[Please log in to post a comment]