how to make wall detection in a platformer using p5js?
(ignore the repl)
i have planned out a platformer game, but while coding it in vscode i encountered a problem that i don't know how to fix. i don't know how to do wall/collision detection. i have a list of where all the walls and floors are but i have no idea where to start here.
(ps i once saw a p5 phaser game tutorial with wall detection on repl.it, but i can't find it anymore.)