Understanding Pygame masks (Patreon)
Published:
2021-11-30 22:39:56
Imported:
2026-06
haven't archived this post yet. have a subscription? use the importer!
Content
A tutorial on how to use masks in pygame. It can be used for more advanced collisions or filling surfaces/giving them outlines.
Timestamps
0:00:00 - What are masks?
0:03:05 - Masks with sprite collisions
0:14:53 - Mask collisions without sprites
0:28:15 - Filling a surface / creating an outline
0:50:39 - Coloring overlapping areas with masks
Project files
https://github.com/clear-code-projects/MaskTutorial
Files
Previews only