Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Im python I am creating a 2d game.

It is a maze game with different shapes of walls.

When I collide with the walls at the minute the user can go through them but I want to be able to block him from doing that. I want them to be solid!

How do i do this? Would i use an array? I have created an outside wall before in another game but that was just setting the bounds in the user class. There has to be an easier way with a number amount of walls.

The more help the better thanks.
Posted

1 solution

We call it "Collision Detection[^]".
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900