Back to Browse

Understanding Pygame masks

46.9K views
Dec 4, 2021
1:00:29

A tutorial on how to use masks in pygame. It can be used for more advanced collisions or filling surfaces/giving them outlines. If you want to support me: https://www.patreon.com/clearcode (You also get lots of perks) Social stuff: Twitter - https://twitter.com/clear_coder Discord - https://discord.com/invite/a5C6pYw2w5 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

Download

1 formats

Video Formats

360pmp478.7 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Understanding Pygame masks | NatokHD