I am making a game in pygame, my character is simply going through the walls and I want it to stop whenver it collides with a wall. Instead of creating a rect around each and every wall I want to just check whether it is colliding with the color of the wall. This way I wouldn't have to create hundreds of rects around my wall.
Asked
Active
Viewed 17 times
0
-
can you show the code so we can help to make it works as you want? – Ismaili Mohamedi Oct 30 '22 at 10:03