Thanks!
I have to admit, the reason the boss kills you with one shot is the same reason old games are so difficult: to extend playtime (I'm not very proud of this).
The way you hurt the boss isn't the best either but was the easiest way to code it.
Not very proud of the game in general, but at least I learned a lot.
Thanks for the comment :)