Special Thanks to FreeCodeCamp and their free video tutorials on youtube which are really helpful for beginners like me.
Link to the tutorial :- youtube.com/watch?v=H9CSWMxJx84
Note :- I have converted all the vanilla JS to P5.js to practice my skills in it. (Which was sometimes painful for me!)
If possible then Fork my Github repo and add more things to the game like power-ups etc , it’ll be a good practice task for you.