Better circle image, images no longer look all pixellated

This commit is contained in:
Yair Morgenstern 2018-08-10 11:34:30 +03:00
parent c67d515ec4
commit e51ac717d7
4 changed files with 173 additions and 168 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.8 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 873 KiB

After

Width:  |  Height:  |  Size: 892 KiB

View File

@ -2,6 +2,7 @@ package com.unciv.game.desktop;
import com.badlogic.gdx.backends.lwjgl.LwjglApplication;
import com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.tools.texturepacker.TexturePacker;
import com.unciv.UnCivGame;
@ -12,6 +13,10 @@ class DesktopLauncher {
settings.maxWidth = 2048;
settings.maxHeight = 2048;
settings.combineSubdirectories=true;
// This is so they don't look all pixelated
settings.filterMag = Texture.TextureFilter.MipMapLinearLinear;
settings.filterMin = Texture.TextureFilter.MipMapLinearLinear;
TexturePacker.process(settings, "images", "images", "game");
LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();