X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=core%2Fsrc%2Fru%2Fdeadsoftware%2Fcavecraft%2FAssets.java;h=45634ebfa449f2ed7fd4ec1357570d6f3e3d9562;hb=7115b8cce5cc8469c03ea1fa1fc24506a1e2765e;hp=fcbfe7a1a1ee8fd345216999555c06c710d0d53e;hpb=64a6c34329b06cedce95dbe32bf6deac97971249;p=cavedroid.git diff --git a/core/src/ru/deadsoftware/cavecraft/Assets.java b/core/src/ru/deadsoftware/cavecraft/Assets.java index fcbfe7a..45634eb 100644 --- a/core/src/ru/deadsoftware/cavecraft/Assets.java +++ b/core/src/ru/deadsoftware/cavecraft/Assets.java @@ -17,6 +17,10 @@ public class Assets { public static Texture terrain; public static TextureRegion[] blockTextures = new TextureRegion[BLOCK_TEXTURES]; + public static Texture gui; + public static TextureRegion invBar; + public static TextureRegion invCur; + public static void load() { charTexture = new Texture(Gdx.files.internal("char.png")); playerSprite[0] = new Sprite(new TextureRegion(charTexture, 0,0,8,30)); @@ -26,6 +30,10 @@ public class Assets { shade = new Sprite(new Texture(Gdx.files.internal("shade.png"))); + gui = new Texture(Gdx.files.internal("gui.png")); + invBar = new TextureRegion(gui,0,0,182,22); + invCur = new TextureRegion(gui,0,22,24,24); + terrain = new Texture(Gdx.files.internal("terrain.png")); for (int i=0; i