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.
What is a module?
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
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.asp
pygame docs and tutorials
- https://www.pygame.org/docs/
- we will use this site:
- https://realpython.com/pygame-a-primer/
- pygame.shape
- pygame official site: http://www.pygame.org/docs/ref/draw.html
- with some examples: https://pythonprogramming.net/pygame-drawing-shapes-objects/
Comments
Post a Comment