Package org.newdawn.slick.particles

Examples of org.newdawn.slick.particles.ParticleSystem


   *
   * @param additive
   *            True if the particle system should be set to additive
   */
  public void clearSystem(boolean additive) {
    system = new ParticleSystem("org/newdawn/slick/data/particle.tga", 2000);
    if (additive) {
      system.setBlendingMode(ParticleSystem.BLEND_ADDITIVE);
    }
    system.setRemoveCompletedEmitters(false);
  }
View Full Code Here


  public void init(GameContainer container) throws SlickException {
    container.getInput().addListener(listener);
    container.setShowFPS(false);
   
    system = new ParticleSystem("org/newdawn/slick/data/particle.tga", 2000);
    system.setBlendingMode(ParticleSystem.BLEND_ADDITIVE);
    system.setRemoveCompletedEmitters(false);

    for (int i = 0; i < waiting.size(); i++) {
      system.addEmitter((ParticleEmitter) waiting.get(i));
View Full Code Here

  /**
   * @see org.newdawn.slick.BasicGame#init(org.newdawn.slick.GameContainer)
   */
  public void init(GameContainer container) throws SlickException {
    Image image = new Image("testdata/particle.tga", true);
    system = new ParticleSystem(image);
   
    system.addEmitter(new FireEmitter(400,300,45));
    system.addEmitter(new FireEmitter(200,300,60));
    system.addEmitter(new FireEmitter(600,300,30));
   
View Full Code Here

TOP

Related Classes of org.newdawn.slick.particles.ParticleSystem

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.