Press space to attack. Try to press space before the enemy can! I used this way because I was too lazy to make sprites for separate attacks.
Credit to Nintendo for bob-ombs Please comment any bugs so I can fix them!