Learn how to use masks for pixel perfect collision detection in Pygame.
Author: Russ
Learn how to handle collisions in Pygame using the different collision types such as rectangles, points and lines.
Why Use Rectangles? One of the key concepts in pygame is working with rectangles. They allow you to position and
Introduction To Shapes Typically a pygame project will contain images and spritesheets, but for simpler shapes we can use the
Creating A Helper Function Pygame doesn’t have built in functionality for drawing text, this is something we have to add
Mouse Input Options Just like keyboard input, there are two different ways to get mouse input: Using the event handler
Keyboard Input Options There are two different ways of getting keyboard input in pygame: Using the event handler Using the
Introduction To Events In pygame when working with keyboard or mouse inputs we talk about an event handler, but what
Install Pygame Requirements: Python & pip installed from python.org The easiest way to install pygame is through the command prompt