Hello! I need some help/pointers with this small project I’m working on!
I’m making this maze game in p5js for a school project. So far it’s the largest thing I’ve made in JS and one of the first times I’ve tried to incorporate object oriented JS into a project. I’m almost certain I’m doing plenty of things incorrect, unoptimized, or with bad practice. If anyone can give me some pointers on how I can improve the game I’d really appreciate it! (I haven’t commented much yet so I can clarify as needed)
The biggest issue id like help with, outside of the above, is with the collision. I have no clue how to get it “unjanky”. Hitting walls moves the player back a bit too far, causing a shaky effect, and the corners and edges are sticky. I’ve played around with the code alot, but a lot of the math from the collision guide I was following went over my head, so some direction would be greatly appreciated.
Code: