Left/right arrow keys. Enemy does 4 damage per hit, has 110 total health points, and takes .2 seconds to recharge after a hit. You do 5 damage per hit, have 100 health points, and you take .1 seconds to recharge after a hit. Click to attack! Press space to move faster.
I've seen other fight games, but the code is my own. *UPDATE* This project is obsolete, check out the better one: https://scratch.mit.edu/projects/939093808/