Skip to content
Snippets Groups Projects
Commit 096ca86f authored by Matyáš Latner's avatar Matyáš Latner
Browse files

Robbery debug screen character size fix

parent 49e60695
Branches
Tags
No related merge requests found
......@@ -2,7 +2,6 @@ package cz.nic.tablexia.game.games.robbery;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.badlogic.gdx.scenes.scene2d.Actor;
import com.badlogic.gdx.scenes.scene2d.Stage;
import com.badlogic.gdx.scenes.scene2d.ui.Label;
......@@ -15,7 +14,6 @@ import com.badlogic.gdx.utils.Align;
import java.util.List;
import java.util.Map;
import cz.nic.tablexia.game.games.robbery.assets.RobberyAssets;
import cz.nic.tablexia.game.games.robbery.creature.CreatureRoot;
import cz.nic.tablexia.game.games.robbery.rules.GameRulesDefinition;
import cz.nic.tablexia.util.Log;
......@@ -120,10 +118,9 @@ public class DebugScreen extends AbstractRobberyScreen {
private void displayAllCreatures(List<CreatureRoot> creatures, Stage stage) {
if (creatures != null && creatures.size() > 0) {
float creatureScale = 0.4f;
TextureRegion sizeTextureRegion = getScreenTextureRegion(RobberyAssets.CREATURE_BACKGROUND_TEXTURE);
float creatureWidth = sizeTextureRegion.getRegionWidth() * creatureScale;
float creatureHeight = sizeTextureRegion.getRegionHeight() * creatureScale;
float creatureWidth = RobberyGame.CREATURES_WIDTH * creatureScale;
float creatureHeight = RobberyGame.CREATURES_HEIGHT * creatureScale;
float borderX = getStage().getWidth() / 40;
float borderY = getStage().getHeight() / 5;
......
......@@ -182,7 +182,7 @@ public class RobberyGame extends AbstractTablexiaGame<GameRule> {
@Override
public void run() {
showScreen(new GameScreen(RobberyGame.this), transaction);
showScreen(new DebugScreen(RobberyGame.this), transaction);
}
});
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment