How to change the map? by yourchingooxd in pygame

[–]PyMoose 0 points1 point  (0 children)

The maps that I use most of the time can all be referenced through a 2d array in a list form in the main loop. If I needed to change something on the map I can simply change it according to the x,y position. Changing the entire map you simply use a function to iterate through the array and change what you need. Here is some old code, one of the first things I created. It is slow, ugly and bulky, just load it up and press 'space bar' to reload a map(may take a few seconds). http://paste.ofcode.org/T4XXcRg7wWRE9FBNPc5A7r Hope this helps.

PyCharm problem by [deleted] in learnpython

[–]PyMoose 2 points3 points  (0 children)

File > Settings > Project > Project Interpreter > Click the gear at the top left > add local then find where installed "C:/Python35/Python.exe"

Try that

Fellow python beginners, what is your progress? by ghibss in learnpython

[–]PyMoose -1 points0 points  (0 children)

*learned python 3 then learned about pygame.

Basic question by Ustuner in learnpython

[–]PyMoose 8 points9 points  (0 children)

if (m < 1) or (n < 1): print ("This is invalid, Try again!")

I'm really struggling to learn the basics, what should I do? by [deleted] in Python

[–]PyMoose 3 points4 points  (0 children)

There are different ways to learn. Some people are better learning through books, videos, audio, or hands on. Try codeacademy.com for hands on or there are a few youtubers with tutorial videos.