Skip to content
Snippets Groups Projects
Commit c4a037b3 authored by Matyáš Latner's avatar Matyáš Latner
Browse files

#30 Enabled linear filtering for loader screen assets

parent 14863e02
Branches
Tags
No related merge requests found
package cz.nic.tablexia.screen.loader;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.scenes.scene2d.actions.Actions;
import com.badlogic.gdx.scenes.scene2d.ui.Image;
......@@ -42,19 +43,25 @@ public class LoaderScreen extends AbstractTablexiaScreen<Void> {
textureManager.finishLoading();
Image background = new Image(textureManager.getTexture(LOADER_BACKGROUND));
Texture backgroundTexture = textureManager.getTexture(LOADER_BACKGROUND);
backgroundTexture.setFilter(Texture.TextureFilter.Linear, Texture.TextureFilter.Linear);
Image background = new Image(backgroundTexture);
background.setPosition(0, 0);
background.setSize(getStage().getWidth(), TablexiaSettings.getMinWorldHeight());
getStage().addActor(background);
Image smallhand = new Image(textureManager.getTexture(LOADER_SMALL_HAND));
Texture smallHandTexture = textureManager.getTexture(LOADER_SMALL_HAND);
smallHandTexture.setFilter(Texture.TextureFilter.Linear, Texture.TextureFilter.Linear);
Image smallhand = new Image(smallHandTexture);
smallhand.setPosition(220, 355);
smallhand.setSize(10, 40);
getStage().addActor(smallhand);
smallhand.setOrigin(smallhand.getWidth() / 2, 5);
smallhand.addAction(Actions.forever(Actions.rotateBy(-360, 6)));
Image bighand = new Image(textureManager.getTexture(LOADER_BIG_HAND));
Texture bigHandTexture = textureManager.getTexture(LOADER_BIG_HAND);
bigHandTexture.setFilter(Texture.TextureFilter.Linear, Texture.TextureFilter.Linear);
Image bighand = new Image(bigHandTexture);
bighand.setPosition(220, 355);
bighand.setSize(10, 40);
getStage().addActor(bighand);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment