Thanks for the feedback! I've created this game on the p5.js web editor, so i will just drop a link to the project so you can check out the source code!
Please note: this game was created for a game jam in a limited time, which means the code has no comments and was done in a hurry, so this code probably won't make too much sense, sorry :c