From 2524b8d585b56afe2fe13311dd9d67805838baea Mon Sep 17 00:00:00 2001 From: EpicKnarvik97 Date: Wed, 26 Feb 2020 19:46:34 +0100 Subject: [PATCH] =?UTF-8?q?Gj=C3=B8r=20teksturen=20til=20robot=203=20lastb?= =?UTF-8?q?ar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../inf112/fiasko/roborally/utility/TextureConverterUtil.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/inf112/fiasko/roborally/utility/TextureConverterUtil.java b/src/main/java/inf112/fiasko/roborally/utility/TextureConverterUtil.java index f821751..69b55c7 100644 --- a/src/main/java/inf112/fiasko/roborally/utility/TextureConverterUtil.java +++ b/src/main/java/inf112/fiasko/roborally/utility/TextureConverterUtil.java @@ -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 tileSheetTileTextureMappings; private static Map tileSheetTileHasRotatedTextureMappings; private static Map 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."); }