This intermediate tutorial focuses on teaching you the core features of the Python programming language and using a free library called pygame to create 2D video games. Game programming provides all the same challenges as other kinds of programming, but games are also visual and interactive which I think helps to motivate students new to the field. While it helps if you have had some exposure to coding before (e.g., p5.js), you’ll find that these notes review all of the basic concepts of programming from scratch.
1.0 Getting Started with Python
1-8 Input, Processing, Output (IPO)
1-10 Passing Data to Functions
1-11 Returning Data from Functions
2.0 Python Fundamentals
2-5 More On Loops.. More On Loops..
3.0 Advanced Python
3-9 Creating a Tic-Tac-Toe Game
4.0 Object-Oriented Programming (OOP) and Pygame
4-1 What is Object-Oriented Programming?
4-3 Inheritance and Polymorphism
4-4 Getting Started with Pygame
4-7 Responding to Basic Events
4-13 Building a Complete Game: pyPong v1.0