Class AssetLoader
java.lang.Object
me.arcademadness.omni_dungeon.util.AssetLoader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.badlogic.gdx.graphics.TextureloadTexture(String path) Loads a texture from the given path, falling back to specifically default.png if missing.static com.badlogic.gdx.graphics.TextureloadTexture(String path, String defaultName) Loads a texture from the given path, falling back to a given default texture if missing.
-
Constructor Details
-
AssetLoader
public AssetLoader()
-
-
Method Details
-
loadTexture
Loads a texture from the given path, falling back to a given default texture if missing.- Parameters:
path- The path to the texture (e.g. "assets/sword.png")defaultName- The fallback filename inside default_assets/ (e.g. "default_item.png")
-
loadTexture
Loads a texture from the given path, falling back to specifically default.png if missing.- Parameters:
path- The path to the texture (e.g. "assets/sword.png")
-