I am making a top-down game. I’ve got a Player and I’ve drawn a level made up of black and white sections as a .png file. How could I implement a collision detection system where the player can move on the white section but not on the black parts.
Sorry if this is a simple question but I’m pretty new to game programming.
Thanks for any help!