Implementing Particle System

public class SceneNameHere extends Scene {

    private GameObject particleSystem = new GameObject(this, "My Particle");

    public Scene(Game game) {
        super(game);
    }

    @Override
    public void Initialize() {
        particleSystem.getTransform().setPosition(new Vector2(32, 32));
        particleSystem.addComponent(new ParticleSystem(particleSystem, ParticleSystem.TYPE_CIRCULAR, 3, 16, 1, 2, 100, 32, Color.ORANGE));
    }

    @Override
    public void Update() {

    }

    @Override
    public void Render(Graphics g) {

    }

}

Last updated