bmanager = new ParticleManager(100, display.getRenderer().getCamera());
bmanager = new ParticleManager(100);
    protected void simpleInitGame() {        SoundSystem.init(display.getRenderer().getCamera(), SoundSystem.OUTPUT_DEFAULT);        snode = SoundSystem.createSoundNode();        uiNode = new Node("UINODE");                String[] names = { "main", "nice" };        String[] locs = { fontLocation, "jmetest/data/font/conc_font.png" };        UIFonts _fonts = new UIFonts(names, locs);        UIColorScheme _scheme = new UIColorScheme();                _scheme._foregroundcolor = ColorRGBA.white;                playerScoreText = new UIText("UINODE", _fonts, "nice", "Player : 0", 600, 0,                50.0f, 0.0f, 30, 0, _scheme, 0);                computerScoreText = new UIText( "UINODE", _fonts, "nice", "Computer : 0", 50, 0,                 50.0f, 0.0f, 30, 0, _scheme, 0);                //playerScoreText.setText("Player : 0");        //computerScoreText.setText("Computer : 0");                uiNode.attachChild(playerScoreText);        uiNode.attachChild(computerScoreText);        display.getRenderer().setBackgroundColor(new ColorRGBA(0, 0, 0, 1));        cam.setFrustum(1f, 5000F, -0.55f, 0.55f, 0.4125f, -0.4125f);        Vector3f loc = new Vector3f(0, 0, -850);        Vector3f left = new Vector3f(1, 0, 0);        Vector3f up = new Vector3f(0, 1, 0f);        Vector3f dir = new Vector3f(0, 0, 1);        cam.setFrame(loc, left, up, dir);        display.getRenderer().setCamera(cam);        player = new Box("Player", new Vector3f(0, 0, 0), 5f, 50f, 5f);        player.getLocalTranslation().x = -400;        player.setModelBound(new BoundingBox());        player.updateModelBound();        computer = new Box("Computer", new Vector3f(0, 0, 0), 5f, 50f, 5f);        computer.getLocalTranslation().x = 400;        computer.setModelBound(new BoundingBox());        computer.updateModelBound();        ball = new Sphere("Ball", 15, 15, 5f);        ball.setModelBound(new BoundingBox());        ball.getLocalTranslation().z = -00f;        ball.updateModelBound();        ballSound = SoundSystem.create3DSample("D:/eclipse/workspace/JMonkeyEngine/src/jmetest/data/sound/turn.wav");        explodeSound = SoundSystem.create3DSample("D:/eclipse/workspace/JMonkeyEngine/src/jmetest/data/sound/explosion.wav");                SoundSystem.bindEventToSample(ballSound, WALL_BOUNCE_EVENT);        SoundSystem.bindEventToSample(explodeSound, MISS_EVENT);        SoundSystem.setSampleMaxAudibleDistance(ballSound, 5000);        SoundSystem.addSampleToNode(ballSound, snode);        SoundSystem.addSampleToNode(explodeSound, snode);                       lowerWall = new Box("Left Wall", new Vector3f(0, -300, 0), 450f, 5f, 5f);        lowerWall.setModelBound(new BoundingBox());        lowerWall.updateModelBound();        upperWall = new Box("Right Wall", new Vector3f(0, 300, 0), 450f, 5f, 5f);        upperWall.setModelBound(new BoundingBox());        upperWall.updateModelBound();                        manager = new ParticleManager(300, display.getRenderer().getCamera());        manager.setGravityForce(new Vector3f(0.0f, 0.0f, 0.0f));        manager.setEmissionDirection(new Vector3f(0.0f, 1.0f, 0.0f));        manager.setEmissionMaximumAngle(3.1415927f);        manager.setSpeed(1.4f);        manager.setParticlesMinimumLifeTime(1000.0f);        manager.setStartSize(5.0f);        manager.setEndSize(5.0f);        manager.setStartColor(new ColorRGBA(1.0f, 0.312f, 0.121f, 1.0f));        manager.setEndColor(new ColorRGBA(1.0f, 0.24313726f, 0.03137255f, 0.0f));        manager.setRandomMod(0.0f);        manager.setControlFlow(false);        manager.setReleaseRate(300);        manager.setReleaseVariance(0.0f);        manager.setInitialVelocity(1.0f);        manager.setParticleSpinSpeed(0.0f);        manager.warmUp(1000);        manager.getParticles().addController(manager);                                bmanager = new ParticleManager(100, display.getRenderer().getCamera());        bmanager.setGravityForce(new Vector3f(0.0f, 0.0f, 0.0f));        bmanager.setEmissionDirection(new Vector3f(-1.0f, 0.0f, 0.0f));        bmanager.setEmissionMaximumAngle(0.1f);        bmanager.setSpeed(0.4f);        bmanager.setParticlesMinimumLifeTime(100.0f);        bmanager.setStartSize(5.0f);        bmanager.setEndSize(5.0f);        bmanager.setStartColor(new ColorRGBA(1.0f, 0.312f, 0.121f, 1.0f));        bmanager.setEndColor(new ColorRGBA(1.0f, 0.24313726f, 0.03137255f, 0.0f));        bmanager.setRandomMod(0.0f);        bmanager.setControlFlow(false);        bmanager.setReleaseRate(300);        bmanager.setReleaseVariance(0.0f);        bmanager.setInitialVelocity(0.3f);        bmanager.setParticleSpinSpeed(-0.5f);        bmanager.warmUp(1000);        bmanager.getParticles().addController(bmanager);                                       AlphaState as1 = display.getRenderer().createAlphaState();        as1.setBlendEnabled(true);        as1.setSrcFunction(AlphaState.SB_SRC_ALPHA);        as1.setDstFunction(AlphaState.DB_ONE);        as1.setTestEnabled(true);        as1.setTestFunction(AlphaState.TF_GREATER);        as1.setEnabled(true);        TextureState ts = display.getRenderer().createTextureState();        ts.setTexture(            TextureManager.loadTexture(            PongRevisited.class.getClassLoader().getResource(            "jmetest/data/texture/flaresmall.jpg"),            Texture.MM_LINEAR_LINEAR,            Texture.FM_LINEAR));        ts.setEnabled(true);        manager.setRepeatType(Controller.RT_CLAMP);        Node myNode = new Node("Particle Nodes");        myNode.setRenderState(as1);        myNode.setRenderState(ts);        Node mybNode = new Node("Particle Nodes");        mybNode.setRenderState(as1);        mybNode.setRenderState(ts);                mybNode.attachChild(bmanager.getParticles());        myNode.attachChild(manager.getParticles());                rootNode.attachChild(myNode);        rootNode.attachChild(mybNode);                rootNode.attachChild(player);        lightState.setEnabled(!lightState.isEnabled());        rootNode.attachChild(computer);        rootNode.attachChild(lowerWall);        rootNode.attachChild(upperWall);        rootNode.attachChild(ball);        rootNode.attachChild(uiNode);        input.setMouseSpeed(0);        input.setKeySpeed(40);        input.addKeyboardAction("moveUp", KeyInput.KEY_UP, new MoveUpAction());        input.addKeyboardAction("moveDown", KeyInput.KEY_DOWN,                new MoveDownAction());        //KeyBindingManager.getKeyBindingManager().remove("forward");        //KeyBindingManager.getKeyBindingManager().remove("backward");        KeyBindingManager.getKeyBindingManager().remove("lookUp");        KeyBindingManager.getKeyBindingManager().remove("lookDown");    }