public void reset() throws SlickException { upperWall = new Vector<Integer>(); lowerWall = new Vector<Integer>(); upperWall.add(0); lowerWall.add(container.getHeight()); for (int i = 0; i < container.getWidth() / WALL_RES; i++) { addToWall(); } dudeHeight = container.getHeight() / 2; currentWallNo = 10; dudeWidth = WALL_RES * (currentWallNo - 1) + dudeSize.width / 2; wallOffset = 0; dead = false; speed = 0.06; distance = 0; movingUp = false; playTheGame = false; actualUpperWall = 0; actualLowerWall = 0; spX = 0; try { explosion = ParticleIO.loadConfiguredSystem(Conf.EMITTERS_PATH + "explosion.xml"); trail = ParticleIO.loadConfiguredSystem(Conf.EMITTERS_PATH + "smoketrail.xml"); } catch (IOException e) { throw new SlickException("Failed to load particle systems", e); } }