How would I go about loading a map file in Pygame / Python?
I would like to load a map file in this format;
EDIT: I’m guessing it’s a for loop, but I’m not sure on how to do that.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Though some people have helped open a file, I understand you are actually looking to import a text file as a map:
I did not write this, but have been using it as an example for my game: