v0.8.1: refactored the location of all asset files

This commit is contained in:
Evan Debenham
2020-05-07 21:29:41 -04:00
parent e943055564
commit 6ca138de23
649 changed files with 847 additions and 773 deletions

View File

Before

Width:  |  Height:  |  Size: 321 B

After

Width:  |  Height:  |  Size: 321 B

View File

Before

Width:  |  Height:  |  Size: 224 B

After

Width:  |  Height:  |  Size: 224 B

View File

Before

Width:  |  Height:  |  Size: 440 B

After

Width:  |  Height:  |  Size: 440 B

View File

Before

Width:  |  Height:  |  Size: 274 B

After

Width:  |  Height:  |  Size: 274 B

View File

Before

Width:  |  Height:  |  Size: 278 B

After

Width:  |  Height:  |  Size: 278 B

View File

@@ -135,7 +135,8 @@ public class DesktopLauncher {
DesktopWindowListener listener = new DesktopWindowListener();
config.setWindowListener( listener );
config.setWindowIcon( "icon_16.png", "icon_32.png", "icon_64.png", "icon_128.png", "icon_256.png" );
config.setWindowIcon("icons/icon_16.png", "icons/icon_32.png", "icons/icon_64.png",
"icons/icon_128.png", "icons/icon_256.png");
new Lwjgl3Application(new ShatteredPixelDungeon(new DesktopPlatformSupport()), config);
}

View File

@@ -121,10 +121,10 @@ public class DesktopPlatformSupport extends PlatformSupport {
fonts = new HashMap<>();
if (systemfont) {
basicFontGenerator = asianFontGenerator = new FreeTypeFontGenerator(Gdx.files.internal("DroidSansFallback.ttf"));
basicFontGenerator = asianFontGenerator = new FreeTypeFontGenerator(Gdx.files.internal("fonts/droid_sans.ttf"));
} else {
basicFontGenerator = new FreeTypeFontGenerator(Gdx.files.internal("pixel_font.ttf"));
asianFontGenerator = new FreeTypeFontGenerator(Gdx.files.internal("DroidSansFallback.ttf"));
basicFontGenerator = new FreeTypeFontGenerator(Gdx.files.internal("fonts/pixel_font.ttf"));
asianFontGenerator = new FreeTypeFontGenerator(Gdx.files.internal("fonts/droid_sans.ttf"));
}
fonts.put(basicFontGenerator, basicFonts);