List of usage examples for com.badlogic.gdx.graphics.g2d ParticleEmitter save
public void save(Writer output) throws IOException
From source file:com.westernarc.easterrun.gdx.graphics.g2d.ParticleEffect.java
License:Apache License
public void save(File file) { Writer output = null;//from w w w .j a v a 2 s . c om try { output = new FileWriter(file); int index = 0; for (int i = 0, n = emitters.size; i < n; i++) { ParticleEmitter emitter = emitters.get(i); if (index++ > 0) output.write("\n\n"); emitter.save(output); output.write("- Image Path -\n"); output.write(emitter.getImagePath() + "\n"); } } catch (IOException ex) { throw new GdxRuntimeException("Error saving effect: " + file, ex); } finally { try { if (output != null) output.close(); } catch (IOException ex) { } } }