public class Assets
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static com.badlogic.gdx.graphics.g2d.Animation |
CLUE_GLINT
This it the animation for the clue glint to be drawn where a clue is hidden
|
static com.badlogic.gdx.graphics.Texture |
CLUE_SHEET
This is the asset sheet for clues
|
static com.badlogic.gdx.graphics.g2d.TextureRegion |
DOWN_ARROW |
static com.badlogic.gdx.graphics.g2d.BitmapFont |
FONT
This is the default font for the game.
|
static com.badlogic.gdx.graphics.g2d.TextureRegion |
INTROFRAME1
The 2 seperate frames for the splashscreen
|
static com.badlogic.gdx.graphics.g2d.TextureRegion |
INTROFRAME2 |
static com.badlogic.gdx.graphics.g2d.TextureRegion |
LEFT_ARROW |
static com.badlogic.gdx.graphics.Texture |
OPENING
This is the texture of splashscreen frames
|
static com.badlogic.gdx.graphics.g2d.TextureRegion |
RIGHT_ARROW |
static com.badlogic.gdx.graphics.Texture |
TAG_BORDER
This is the asset for the RoomTag
RoomTag |
static com.badlogic.gdx.graphics.g2d.TextureRegion |
UP_ARROW
These TextureRegions store the 4 different directions that the room changing
arrows can face.
|
Constructor and Description |
---|
Assets() |
Modifier and Type | Method and Description |
---|---|
static com.badlogic.gdx.graphics.g2d.TextureRegion |
getArrowDirection(java.lang.String direction)
This method takes a direction and returns the corresponding arrow asset for that direction
|
static com.badlogic.gdx.graphics.g2d.BitmapFont |
getFontWithSize(int size)
This method gets the default font but at the requested size
|
static void |
load()
Loads all the elements the game needs such as the player.
|
static com.badlogic.gdx.graphics.Texture |
loadTexture(java.lang.String file) |
public static com.badlogic.gdx.graphics.Texture CLUE_SHEET
public static com.badlogic.gdx.graphics.Texture OPENING
public static com.badlogic.gdx.graphics.g2d.TextureRegion INTROFRAME1
public static com.badlogic.gdx.graphics.g2d.TextureRegion INTROFRAME2
public static com.badlogic.gdx.graphics.g2d.TextureRegion UP_ARROW
public static com.badlogic.gdx.graphics.g2d.TextureRegion DOWN_ARROW
public static com.badlogic.gdx.graphics.g2d.TextureRegion LEFT_ARROW
public static com.badlogic.gdx.graphics.g2d.TextureRegion RIGHT_ARROW
public static com.badlogic.gdx.graphics.Texture TAG_BORDER
RoomTag
public static com.badlogic.gdx.graphics.g2d.BitmapFont FONT
public static com.badlogic.gdx.graphics.g2d.Animation CLUE_GLINT
public static com.badlogic.gdx.graphics.Texture loadTexture(java.lang.String file)
file
- - The file that contains the textures.public static void load()
public static com.badlogic.gdx.graphics.g2d.TextureRegion getArrowDirection(java.lang.String direction)
direction
- - The direction to fetchpublic static com.badlogic.gdx.graphics.g2d.BitmapFont getFontWithSize(int size)
size
- - The size you want the font to be