chore(assets): rename 'texture' to 'textures'
This commit is contained in:
@ -86,8 +86,8 @@ public class Assets {
|
|||||||
new FreeTypeFontGeneratorLoader(resolver));
|
new FreeTypeFontGeneratorLoader(resolver));
|
||||||
assetManager.setLoader(BitmapFont.class, ".ttf", new FreetypeFontLoader(resolver));
|
assetManager.setLoader(BitmapFont.class, ".ttf", new FreetypeFontLoader(resolver));
|
||||||
// Load all assets here
|
// Load all assets here
|
||||||
assetManager.load("texture/main_menu/background.png", Texture.class);
|
assetManager.load("textures/main_menu/background.png", Texture.class);
|
||||||
assetManager.load("texture/main_menu/title.png", Texture.class);
|
assetManager.load("textures/main_menu/title.png", Texture.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isLoadedAll() {
|
public static boolean isLoadedAll() {
|
||||||
|
|||||||
@ -22,8 +22,8 @@ public class MainMenu extends Scene {
|
|||||||
|
|
||||||
public MainMenu(Game game) {
|
public MainMenu(Game game) {
|
||||||
super(game);
|
super(game);
|
||||||
backgroundTexture = Assets.getAsset("texture/main_menu/background.png", Texture.class);
|
backgroundTexture = Assets.getAsset("textures/main_menu/background.png", Texture.class);
|
||||||
titleTexture = Assets.getAsset("texture/main_menu/title.png", Texture.class);
|
titleTexture = Assets.getAsset("textures/main_menu/title.png", Texture.class);
|
||||||
initializeLabels();
|
initializeLabels();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 574 KiB After Width: | Height: | Size: 574 KiB |
|
Before Width: | Height: | Size: 1.4 MiB After Width: | Height: | Size: 1.4 MiB |
Reference in New Issue
Block a user