All Projects → Rikora → ParticleEditor

Rikora / ParticleEditor

Licence: MIT license
Particle editor for SFML/Thor based applications

Programming Languages

C++
36643 projects - #6 most used programming language

Projects that are alternatives of or similar to ParticleEditor

Crsfml Examples
Simple games made with CrSFML
Stars: ✭ 47 (+235.71%)
Mutual labels:  sfml
Gbemu
A Gameboy emulator in modern C++
Stars: ✭ 149 (+964.29%)
Mutual labels:  sfml
Managed Doom
A Doom port written in C Sharp
Stars: ✭ 185 (+1221.43%)
Mutual labels:  sfml
Fury3d
A simple but modern graphic engine
Stars: ✭ 84 (+500%)
Mutual labels:  sfml
Nasnas
An intuitive and user friendly 2D game framework for C++
Stars: ✭ 131 (+835.71%)
Mutual labels:  sfml
Sfml Vscode Boilerplate
A cross-platform SFML 2.5.1 & C++17 build environment for Visual Studio Code
Stars: ✭ 156 (+1014.29%)
Mutual labels:  sfml
Wallbreaker
Arkanoid/Breakout clone written in C++ and SFML
Stars: ✭ 21 (+50%)
Mutual labels:  sfml
Pubg mobile memory hacking examples
Pubg Mobile Emulator Gameloop Memory Hacking C++ code examples. Ex: Name, Coord, Bones, Weapons, Items, Box, Drop etc.
Stars: ✭ 224 (+1500%)
Mutual labels:  sfml
Python Sfml
Official binding of SFML for Python
Stars: ✭ 145 (+935.71%)
Mutual labels:  sfml
Gwork
Skinnable GUI with useful widget collection. Fork of GWEN.
Stars: ✭ 179 (+1178.57%)
Mutual labels:  sfml
Is Engine
SFML C++ game engine that allows to create games on Web (HTML 5 - CSS 3), Android and PC
Stars: ✭ 94 (+571.43%)
Mutual labels:  sfml
Sfml Tmxloader
SFML 2.x based tmx tilemap parser for files created with Tiled tile map editor
Stars: ✭ 100 (+614.29%)
Mutual labels:  sfml
Mapgen Viewer
Map generator based on Voronoi Diagram and Perlin noise
Stars: ✭ 169 (+1107.14%)
Mutual labels:  sfml
Cpp3ds
Basic C++ gaming framework and library for Nintendo 3DS
Stars: ✭ 80 (+471.43%)
Mutual labels:  sfml
Simplenes
An NES emulator in C++
Stars: ✭ 2,915 (+20721.43%)
Mutual labels:  sfml
Passfml
Pascal binding for SFML
Stars: ✭ 45 (+221.43%)
Mutual labels:  sfml
Proceduralmapgenerator
A procedural map generator for roguelike games
Stars: ✭ 156 (+1014.29%)
Mutual labels:  sfml
Tmxlite
lightweight C++14 parser for Tiled tmx files
Stars: ✭ 248 (+1671.43%)
Mutual labels:  sfml
Csfml
Official binding of SFML for C
Stars: ✭ 211 (+1407.14%)
Mutual labels:  sfml
Xygine
2D engine / framework built around SFML
Stars: ✭ 174 (+1142.86%)
Mutual labels:  sfml

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:

  • Save particle data to a json file
  • Open an existing json file with particle data
  • Change particle texture with file browsing

Screenshot

screenshot

How-to

Setting up:

  • Build the provided Visual Studio 2017 solution (sln) as x86 (Debug)
  • Copy the contents of the dll folder to your Debug folder
  • Run the program

How-to integrate

  • Add json to your project include settings
  • Add ParticleLoader.hpp and ParticleLoader.cpp to your project

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

  • The size of a particle is uniform and thus ranges from a particle size to another
  • Trying to manipulate a range input field with invalid input will cause the range to reset

Dependencies

License

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].