I am 2th grade student. I have a question about one of my assingments. I need to make a maze game in pygame but I cannot find an effective way to forbid my charater to pass through the walls. Here is my background photo:
How can I add these walls as blocks to my script?