These resources are split into two sections: (1) tutorial series and (2) reference notes.
If you are new to pygame and are looking for a step-by-step introduction to using it. This series will guide you through creating a classic arcade style platformer game.
- Download and install the latest version of Python (currently 3.8.5) here - make sure you turn on the tick box to install Python into the path.
- Download and install VS code here
- Start VS code. Go to file / preferences / extensions. Search for and install the Python extension. Detailed instructions here if needed.
- Press Windows and X keys together, and select to open Windows Powershell (Admin). Type the command pip install pygame to install the Pygame library onto your system.
- Video walkthrough of installing Python, VS Code and how to install packages (though it is targeted to a different course so demonstrates installing packages different to Pygame)
1. Basic template, drawing on screen, movement
- Video: https://youtu.be/StJNBwpJmVs
- Initial template code: template.py
- End of lesson code: video1-rectangles-movement.py
2. Animated sprites
- Video: https://youtu.be/HGdmuylI56I
- Download the Kenney sprite collection
- Alternatively create your own sprites with PiskelApp
- End of lesson code: video2-player-sprites.py
3. Simple gravity
4. Tiled map editor
6. Change our world view
7. Standing on solid ground
8. Solid walls and ceilings
9. Health and points
- Video: https://youtu.be/nK3ayRh0-8s
- Video: https://youtu.be/uz8Jx1S8cW4
- Video: https://youtu.be/p5ixHSnvp5I
13. Sounds, music
- Video: https://youtu.be/1tDbZZid6l0
Resources for creative commons music and sound effects:
If you don't really need a tutorial, just need a lookup reference to remind yourself how to use a particular pygame feature, then refer to the following document: