Decided to resume working on my game and for some reason eclipse decided to delete every single one of the assets I created. I have finally finished making them again, but now they wont even render in the game. I have yet to change any of the code, I just remade all the textures. What is happening?
spriteBatch.setProjectionMatrix(camera.combined);
spriteBatch.begin();
spriteBatch.draw(BackGround, 0, 0);
spriteBatch.draw(TitleBackGround, 0, 0);
player.render(spriteBatch);
spriteBatch.draw(planet, 550, 200, 240/2, 240/2, 240, 240, 1, 1, planetDirection, 0, 0, 240, 240, false, false);
if(currentOption == 0){
spriteBatch.draw(Selector, 280, 435);
}
if(currentOption == 1){
spriteBatch.draw(Selector, 285, 396);
}
if(currentOption == 2){
spriteBatch.draw(Selector, 185, 362);
}
spriteBatch.end();
Player render method :
@Override
public void render(SpriteBatch batch) {
batch.draw(ShipTexture, Position.x, Position.y, 96 / 2, 32 / 2, 68, 32, 1, 1, rotation, 0, 0, 96, 32, false,
false);
renderer.begin(ShapeType.Line);
renderer.polygon(collisionPolygon.getTransformedVertices());
renderer.end();
}