For a first game this is pretty good. I like the idea of collecting a bunch of coins before fighting the boss and needing to keep your health consistent, but since the boss can spawn on top of you it's very easy to die to it unfairly, plus the coins can spawn randomly and land either on you or on top of an enemy and making too easy or too difficult.
You have a lot of potential, keep making games!