Honestly I played through the game and more or less ignored the attack button the first time, then I played it again seeing that I can attack. I must say it's well done for someone's first time programming a game, arts nice too.
I must ask though I was noticing on my second play when I killed some of the enemies the coins in the level disappeared, was this intentional?