It renders a bar of a certain width and a percentage full. Use it to render HP. Add a new Python package called interface. The Bar class lives there. Also add a bunch of color defintions to a module called interface.color.
10 lines
No EOL
150 B
Python
10 lines
No EOL
150 B
Python
# Eryn Wells <eryn@erynwells.me>
|
|
|
|
'''
|
|
A bunch of colors.
|
|
'''
|
|
|
|
BLACK = (0, 0, 0)
|
|
WHITE = (255, 255, 255)
|
|
GREY10 = (26, 26, 26)
|
|
GREY50 = (128, 128, 128) |