Creating particle effects in pygame
HTML-код
- Опубликовано: 8 июн 2024
- LETS MAKE NYANCAT RAINBOW PARTICLES! But we are also going to look at the logic pf particle systems and ultimately create 3 different particle styles:
Timestamps:
0:00 - Intro
1:08 - Basic particles
16:57 - Nyan Cat particles
29:18 - Star Particles
Files can be found here: github.com/clear-code-project...
Or if you just want the code: github.com/clear-code-project...
Please don't stop your pygame videos!! They are hidden gems!!
This is just perfect... thank you
the best programming tutorial channel, thank you
Thanks! Amazing tutorial
Pls support him because he is so hard working and he has so less subs
Thanks - very useful and informative :)
Helpful video. Thanks!
you are really a good teacher
Great tutorial! Could you possibly do a tutorial on lighting in Pygame?
This is a gem
Thats amazing!
I need to thank you.
Cool tutorial :)
at 14:20 you could use list unpacking --> pos_x, pos_y = pygame.mouse.get_pos()
your vids are totally great it has helped me a lot Thank you very much for these videos :)
Excelente!! Thanks!!
Thankyou sir😍😍😍🥰
Perfect. Perhaps you could make a video of an object like a pumpkin exploding and falling apart in many small pieces. Or is that not possible with pygame?
you just need to think a little; collide, event, get pos, remove object, show flying chunks (particles)... just put the pieces together
Nice ;D
Thank u alot
thank youu
anything on shaders?
how do i make a particle appear only when i press a certain key, instead of a timer?
greAt !
I need Suggestions, should I learn unity game engine or pygame?
Sir, please make playlists. Make playlists for all Python Pygame Godot tutorials pleaaaase
I wish you were my teacher
this is going to slow down if you start to add thousands of particles, isn't it?
please make a space shooter game using pygame
can you make a snake game tutorial using pygame
Working on that actually, should be out on Friday :)
@@ClearCode Thanks a lot, Most of the tutorials on snake game aren't like you, so asked
@@ClearCode It's Saturday and were u talking about next Friday or this one that passed
@@RohanKumar-zd3pc this Friday... but I got too busy, sorry. I recorded 90% of it and it will be up on Tuesday for sure.
@@ClearCode Oh don't worry about that you can release it as soon as you comfortably can.
:D
I know you are targeting beginners but I truely think using Vector2 for position is a major skill to learn.
Instead of using something like position[0] for horizontal coordinate and position[1] for vertical coordinate, which isn't really self explanatory, using position.x and position.y would be much much easier to grasp and make sense in the long run.
Your particle structure is a list which contains a list for position, it might be hard to make sense for beginners.
"When do I have to subscript once (particle[2]) ? Twice (particle[0][1]) ?"
Another improvement over your version would be to use a dictionary instead of a list for your particle structure. That way, instead of using index values which aren't really explicit in their role, you'd just have to access the data member by their name.
particle = {
'position': pygame.Vector2(250, 250),
'radius': 10,
'direction': -1
}
I Watch your complete ads so that you can earn more .
i lost the meaning of particle
Sooo many adverts, couldn't get through the video.
sorry about that, I disabled most of them so it should be better now!
@@ClearCode Nice!!!!!
We should use adblock