Posts

Showing posts with the label PyGame

Python (Project after Level-2): Game coding with PyGame

  What software to use to learn Python(Integrated Development Environment: IDE). We will use  Visual Studio Code(VS Code)  later when you are used to Python. VScode is currently the most used editor by developers. https://code.visualstudio.com/ What is a module? https://www.w3schools.com/python/python_modules.asp Let's install pygame. https://www.pygame.org/wiki/GettingStarted  Windows Run VScode open terminal enter this pip install pygame if you see this message: You are using pip version 8.1.1, however version 10.0.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command. enter this python -m pip install --upgrade pip and then, enter this once again pip install pygame Mac https://www.pygame.org/wiki/GettingStarted#Mac%20installation Short introduction to Class  We will learn more about the " class " later, but for now, let's study only what is necessary to use pygame library. https://www.w3schools.com/python/python_classes.as...