Add my first interface element: a Bar!
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.
This commit is contained in:
parent
388754e5dd
commit
5a9df0a322
4 changed files with 46 additions and 2 deletions
10
erynrl/interface/color.py
Normal file
10
erynrl/interface/color.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
# 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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue