Example usage for com.badlogic.gdx.graphics.g2d ParticleEffect load

List of usage examples for com.badlogic.gdx.graphics.g2d ParticleEffect load

Introduction

In this page you can find the example usage for com.badlogic.gdx.graphics.g2d ParticleEffect load.

Prototype

public void load(FileHandle effectFile, TextureAtlas atlas, String atlasPrefix) 

Source Link

Usage

From source file:com.uwsoft.editor.data.manager.TextureManager.java

License:Apache License

public void loadCurrentProjectParticles(String path) {
    particleEffects.clear();//from  ww  w. java2  s . co  m
    FileHandle sourceDir = new FileHandle(path);
    for (FileHandle entry : sourceDir.list()) {
        File file = entry.file();
        String filename = file.getName();
        if (file.isDirectory() || filename.endsWith(".DS_Store"))
            continue;

        ParticleEffect particleEffect = new ParticleEffect();
        particleEffect.load(Gdx.files.internal(file.getAbsolutePath()), currentProjectAtlas, "");
        particleEffects.put(filename, particleEffect);
    }

}