cam.update();
batch = new SpriteBatch();
batch.setProjectionMatrix(cam.combined);
shipTexture = new Texture("data/ship.png");
shipTexture.setFilter(TextureFilter.Linear, TextureFilter.Linear);
followerTexture = new Texture("data/follower.png");
followerTexture.setFilter(TextureFilter.Linear, TextureFilter.Linear);
bulletTexture = new Texture("data/bullet.png");
bulletTexture.setFilter(TextureFilter.Linear, TextureFilter.Linear);
sr = new ShapeRenderer();
exhaust = new ParticleEmitter();
try {
exhaust.load(Gdx.files.internal("data/exhaust").reader(2024));
} catch (IOException e) {
e.printStackTrace();
}
Texture ballTexture = new Texture(Gdx.files.internal("data/particle.png"));
Sprite ball = new Sprite(ballTexture);
exhaust.setSprite(ball);
exhaust.getScale().setHigh(0.3f);
exhaust.start();
}