Need help with P5.JS

Hi everyone,

I’m working on a project for a coding class and am having quite a bit of difficulty. I told my professor I could create a replica of Galaga/Space invaders with more simple shapes ( I cannot). I managed to get the objects in the right places and put in a movement function but I can’t seem to get it to actually work. I have a hunch I need to use the mousePressed function but I don’t know how to implement it. Any help to get this thing running is greatly appreciated. If you could, reply what you think I could implement instead of changing it directly on the p5 page.

Thanks so much for taking the time. The forum is telling me I can’t post links yet, so if you’re willing to help please reply and I’ll send it to you some other way, via email or something.

I appreciate it!

I can help you

To use the mouse pressed function, type this in : "function mousePressed(){//your code here:}"