Class AssetLoader

java.lang.Object
me.arcademadness.omni_dungeon.util.AssetLoader

public class AssetLoader extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static com.badlogic.gdx.graphics.Texture
    Loads a texture from the given path, falling back to specifically default.png if missing.
    static com.badlogic.gdx.graphics.Texture
    loadTexture(String path, String defaultName)
    Loads a texture from the given path, falling back to a given default texture if missing.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AssetLoader

      public AssetLoader()
  • Method Details

    • loadTexture

      public static com.badlogic.gdx.graphics.Texture loadTexture(String path, String defaultName)
      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

      public static com.badlogic.gdx.graphics.Texture loadTexture(String path)
      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")