At the start I have to say that I don't know anything about programming in any language, everything I did, I did with help of a tutorials, I'm just a pixelartist with a cool game concept, trying to make an indie game. :)
So I want to create a bullet hell game and I have a problem with adding shooting, I want the player to shot projectiles in the direction of the cursor and by clicking left mouse button.
Player code: https://pastebin.com/6h3kERX5
Spell (projectile) code: https://pastebin.com/pe31teGQ
What I have now: