/** * @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)); //system.setUsePoints(true); }
public void init(GameContainer container, StateBasedGame game) throws SlickException { mGame = game; Image image = new Image("res/effects/particle.tga", true); mParticleSystem = new ParticleSystem(image); mBd1 = (Image)DatasManager.getInstance().getFile("Image.menubackground"); mBd2 = (Image)DatasManager.getInstance().getFile("Image.menuplanet"); mParticleSystem.addEmitter(new FireEmitter(500, 400, 580)); }