filmov
tv
Sprite Mask Magic! - PyGame Thursdays 31
Показать описание
In this video we'll add a Sprite Mask to our Platformer game with PyGame and Python.
Our player doesn't fall off the cliff when they hang over, because the transparent part of the image is still touching.
We can get around that problem by using Sprite Masks to mask just the outline of the player and use that for our collision detection.
#pygame #codemy #JohnElder
Timecodes
0:00 - Introduction
1:11 - Problem Explanation
2:00 - Rename Images & Sizes
3:27 - Draw Square Around Player
5:00 - Create A Mask
5:28 - Draw The Mask
6:48 - Mask Collision Update
7:53 - CPU Intensive
8:40 - Create Grass Mask
9:35 - Remove Blue Box
10:02 - Remove Red Lines
10:54 - Conclusion
Our player doesn't fall off the cliff when they hang over, because the transparent part of the image is still touching.
We can get around that problem by using Sprite Masks to mask just the outline of the player and use that for our collision detection.
#pygame #codemy #JohnElder
Timecodes
0:00 - Introduction
1:11 - Problem Explanation
2:00 - Rename Images & Sizes
3:27 - Draw Square Around Player
5:00 - Create A Mask
5:28 - Draw The Mask
6:48 - Mask Collision Update
7:53 - CPU Intensive
8:40 - Create Grass Mask
9:35 - Remove Blue Box
10:02 - Remove Red Lines
10:54 - Conclusion
Sprite Mask Magic! - PyGame Thursdays 31
PyGame: Creating Sprites and making Alpha Masks
Five really cool things you can do with pygame.mask
How to make entities take damage with color collision in pygame?
Pygame FG 4 - Readable code and More sprites
Donut drawn completely in pygame primatives!
Pygame Collisions
Rotating a sprite around its center in pygame using arctan2
Tutorial 37.16 - Adding The Ability to Jump (PyGame Python)
pygame_functions: Sprite collision
Simple question 👀
What if there was a faster way to animate your pixel art?
Sprite Stacking in Python and Pygame
Python. get a 10 level in pygame game, magic pixel.
Bullet projectiles and collision detection pygame | Aeroblasters PART 5 | python gamedev | #pyguru
How to hide sprites behind other sprites in HaxeFlixel | 2D Stealth indie game devlog #5
PyGame - Alpha and images
Pygame Outlines Tutorial - Outline Any Surface Any Color
Weapon wheel in Pygame
PyGame Tutorial - Building a Flappy Bird Clone
Creating a Zelda style game in Python [with some Dark Souls elements]
Pygame - Surface.get_rect()
10 Minute Pixel Sprite TUTORIAL for COMPLETE BEGINNERS
PyGame: Using Trigonometry to POWERUP your game
Комментарии