Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Simple Easy Particle Engine  (Read 2980 times)

0 Members and 1 Guest are viewing this topic.

Roose Bolton of the Dreadfort

  • Full Member
  • ***
  • Posts: 113
  • Full-time Procrastinator, Part-time programmer.
    • View Profile
    • Personal Portfolio/Website/Blog
Simple Easy Particle Engine
« on: February 25, 2013, 01:03:14 pm »
Hey All,

Been working on my game for about a month now and the other night decided I wanted a particle system in it. I didn't want to follow the usual route of 'effectors and emitters' but instead just wrote my own functions inside the particle manager eg 'Explode', 'Shrapnel', 'Afterburner' and its very easy to add more of your own particle effects.

I decided it could help some people so I decided to release it as it might be helpful to someone..

haven't released fully yet still cleaning up the code but will be released this week!

this is a video of the effects below, it just uses a simple sf::circleshape and a colour and this is what the outcome looks like.. note its only using 3 effects (afterburner, explode, supernova) I am not a designer so I am sure people can make even cooler stuff...

The system also uses some OpenGL shaders for glowing etc.



Cheers!
« Last Edit: February 25, 2013, 01:04:56 pm by Tally »
Trying so very hard to finish at-least one project.

Watch out for the RAII police, they will get you.

www.bantersaurus-games.com

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6286
  • Thor Developer
    • View Profile
    • Bromeon
Re: Simple Easy Particle Engine
« Reply #1 on: February 25, 2013, 02:12:08 pm »
Looks nice!

You say you don't use conventional emitters and affectors, but somehow you still have to add particles (emit) and change them over time (affect). How does one define own effects? (Maybe it's better to wait for the code)
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

Gan

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
Re: Simple Easy Particle Engine
« Reply #2 on: February 25, 2013, 06:36:27 pm »
That looks way cool. I'm really curious about the drawing code. Shaders fascinate me and your game seems to run super smooth.

mateandmetal

  • Full Member
  • ***
  • Posts: 171
  • The bird is the word
    • View Profile
    • my blog
Re: Simple Easy Particle Engine
« Reply #3 on: February 25, 2013, 09:22:32 pm »
Awesome!

You say you are using CircleShapes.. but can you use any other kind of Drawables too, like rectangles or Sprites?

CanĀ“t wait to see the code!  ::)
- Mate (beverage) addict
- Heavy metal addict _lml
- SFML 2 addict
- My first (and free) game: BichingISH!

 

anything