Search in sources :

Example 1 with Texture

use of org.asassecreations.engine.texture.Texture in project Voxel_Game by ASasseCreations.

the class GameStateGuis method init.

public static final void init(final TextureProperties properties) {
    minimapImage = new GuiImage(-.75f, .55f, 0f, .4f, new Texture(Minimap.texture));
    minimapImage.flipYAxis = true;
    mouseTexture = TextureLoader.getTexture("/textures/crosshair.png", properties);
    mouseImage = new GuiImage(0f, 0f, 0f, .075f, mouseTexture);
    pointTexture = TextureLoader.getTexture("/textures/player.png", properties);
    pointImage = new GuiImage(0f, 0f, 0f, .1f, pointTexture, minimapImage);
    inventory = new GuiImage(0, 0, (float) Inventory.background.getWidth() / (float) Display.getWidth(), (float) Inventory.background.getHeight() / (float) Display.getHeight(), null);
    minimapImage.add();
    mouseImage.add();
    pointImage.add();
    inventory.add();
}
Also used : GuiImage(org.asassecreations.engine.gui.GuiImage) Texture(org.asassecreations.engine.texture.Texture)

Aggregations

GuiImage (org.asassecreations.engine.gui.GuiImage)1 Texture (org.asassecreations.engine.texture.Texture)1