UPDATE! the health stat now shows (hover your mouse over the little red thing on the bottom left) and the enemy now can attack you! This is an improved version of @smartguy007's battle arena engine for their game, Pixelon. i tried to make the code a little cleaner, and more importantly, i added a bunch of new graphics. by the way, for the pixel-throw, did i interpret the black dot correctly? i made it a rock, but i wasnt sure if thats what you were going for.
credit to @smartguy007 for the original engine, and the two characters that fight. everything else is by me oh, and credit to @lemonkitty513 for the suggestion of adding animation when your mouse hovers over a button