This is a prototype of an idea i had. The inspiration came from playing a platform game (made inn scratch, of course!), in which, as usual, there were some enemies to fight. They took multiple hits with a weapon to kill, but had no indication of their HP. I had the idea of having a "built in" HP bar as a part of the enemies' sprite, so that it would appear above their head like in many games. Of course, you can just have the variable visible, as it is here as well, but the HP bar just looks cooler IMHO. Press space to attack for a demonstration.