Home

Awesome

Particle Editor

Particle editor based on the Thor library extension to SFML.

Features

The editor covers most of the features provided by the particle module from Thor. There is also support for:

Screenshot

screenshot

How-to

Setting up:

How-to integrate

Example code

#include <SFML/Graphics/RenderWindow.hpp>
#include <SFML/Window/Event.hpp>
#include <SFML/System/Clock.hpp>
#include "ParticleLoader.hpp"

int main()
{
    sf::RenderWindow window(sf::VideoMode(800, 600), "Particles");
    px::ParticleLoader system("src/res/data/example.json", sf::Vector2f(400.f, 400.f));
    sf::Clock clock;

    while (window.isOpen())
    {
        sf::Event event;
        while (window.pollEvent(event))
        {
            if (event.type == sf::Event::Closed)
                window.close();
        }
		
        system.update(clock.restart());
        window.clear();
        window.draw(system);
        window.display();
    }

    return 0;
}

Remarks

Dependencies

License

This library is licensed under the MIT License, see LICENSE for more information.