List of usage examples for com.badlogic.gdx.graphics.g2d ParticleEffect load
public void load(FileHandle effectFile, TextureAtlas atlas, String atlasPrefix)
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); } }