mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-01-31 23:29:36 +01:00
Gjør teksturen til robot 3 lastbar
This commit is contained in:
parent
8315c5ebd0
commit
2524b8d585
@ -25,6 +25,7 @@ public final class TextureConverterUtil {
|
||||
private static final Texture textureSheet = new Texture(Gdx.files.internal("assets/tiles.png"));
|
||||
private static final Texture robot1Texture = new Texture(Gdx.files.internal("assets/Robot.png"));
|
||||
private static final Texture robot2Texture = new Texture(Gdx.files.internal("assets/Robot2.png"));
|
||||
private static final Texture robot3Texture = new Texture(Gdx.files.internal("assets/Robot3.png"));
|
||||
private static Map<TileType, TextureConverterContainer> tileSheetTileTextureMappings;
|
||||
private static Map<TileType, Boolean> tileSheetTileHasRotatedTextureMappings;
|
||||
private static Map<WallType, TextureConverterContainer> tileSheetWallTextureMappings;
|
||||
@ -87,6 +88,8 @@ public final class TextureConverterUtil {
|
||||
return new TextureRegion(robot1Texture, 0, 0, 64, 64);
|
||||
} else if (robot.getRobotId() == RobotID.ROBOT_2) {
|
||||
return new TextureRegion(robot2Texture, 0, 0, 64, 64);
|
||||
} else if (robot.getRobotId() == RobotID.ROBOT_3) {
|
||||
return new TextureRegion(robot3Texture, 0, 0, 64, 64);
|
||||
}
|
||||
throw new IllegalArgumentException("Robot has no drawable texture.");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user