Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
YifBookchainer authored Mar 16, 2017
1 parent 698939b commit 01154bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def main():

# Health bar
pygame.draw.rect(
screen, (255 - int((255 * player.hp / 100) // 1), int((255 * player.hp / 100) // 1, 0)), [100, 10, 800, 20]
screen, (255 - int((255 * player.hp / 100) // 1), int((255 * player.hp / 100) // 1), 0), [100, 10, 800*player.hp/100, 20]
)

# ALL CODE TO DRAW SHOULD GO ABOVE
Expand Down

0 comments on commit 01154bf

Please sign in to comment.