How to Create PARTICLE EFFECTS in Python - Pygame Tutorial

preview_player
Показать описание
Did you know that creating particles are actually really easy? Let me show you how to do it the simplest and most effective way in Pygame using the built-in sprite module!

NOTE: I made a mistake as I used Particle instead of FloatingParticle at the end, although it works the same way as we made no modifications in the subclass. Find the fixed version on my GitHub :)

×oOo×-----------------------👽SOCIALS👽-----------------------×oOo×

(out of office at the moment)

×oOo×--------------------🙌🏼SUPPORTERS🙌🏼---------------------×oOo×

⭐ MisterDenko
⭐ Geekbean

×oOo×--------------------🕒TIMESTAMPS🕒---------------------×oOo×

00:00 - Setup
00:51 - Creating a Responsive Window
02:04 - Basic Particle Sprite Class
05:23 - Firework Effect
09:29 - Exploding Effect
13:10 - Sparkling Effect

×oOo×-------------------------💿MUSIC📀-------------------------×oOo×

From the Youtube Library.

×oOo×--------------------------✨TAGS✨--------------------------×oOo×

#pygame #python #gamedev
#indiedev #indiegame #indiegames
#indiegamedev #pixelart #gamedevelopment
#orkslayer #orkslayergamedev
#tutorial #particles #visuals
Рекомендации по теме
Комментарии
Автор

framerate independence is an important concept that I wouldn't mind seeing a more full tutorial on

MrDowntemp
Автор

7:52 u could use the build in collison check to see if a coordinate is colliding with the screen rect or not to remove the particle, or give a timer to self destroy after X time pass.

Anyway nice video. ;-)

Klannahar
Автор

Ive been meaning to figure this out. Thanks so much!

KRTO
Автор

Quiero que chatgpete escriba como voooos papaaa!!! capoo!!! ❤❤❤❤

ninjaelectrico
Автор

Have you messed around with Esper at all? It's an Entity Component System for python. I wonder if using it with a particle system could offer even further performance benefits? Regardless I'd love to learn more about it, because learning about ECS is something I've been struggling with.

MrDowntemp
Автор

If you were like me, using pygame to calculate delta time made the simulation extremely jittery and it would look extremely laggy. If found that using the time library works much better. If you take one time reading at the begging of the loop and one at the end, then subtract the two, it works much better.

galaxystudiosgaming
Автор

I can't find where you are importing the constants SCREEN_WIDTH & SCREEN_HEIGHT anywhere. Please help :)

Caper
Автор

if you can look past my hypocricy; instead of making small projects which turn out sort of meh in the grand scheme of things, try to stick to Ork Slayer and it would eventually become remarkable

bottlewisp
Автор

5:20 all of this for just this Bro you type almost 50 lines this thing is possible in just 20-30 lines using def and while and list

shalevforfor
Автор

1000%-ig biztos vagyok abban, hogy magyar vagy. :D

bence
welcome to shbcf.ru