From e6f4fea24c037f9b348b9e483bb3bb50d84d3004 Mon Sep 17 00:00:00 2001 From: aaronholz Date: Tue, 28 Jun 2016 08:20:33 +0200 Subject: [PATCH 1/2] Player-redraw Hallo --- Player.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Player.java b/Player.java index fceba65..24b73bc 100644 --- a/Player.java +++ b/Player.java @@ -261,7 +261,7 @@ public class Player extends Actor private void redraw(GreenfootImage statistics,GreenfootImage flag, int textSize) { - flag.scale(137,100); + flag.scale(137,83); statistics.drawImage(flag,0,textSize); GreenfootImage playerStatistics = new GreenfootImage(stats[0] + "||" + stats[1] + "||" + stats[2],textSize,new Color(0,0,0),new Color(1.0f,1.0f,1.0f,0.5f)); GreenfootImage playerStatistics2 = new GreenfootImage(stats[3] + "||" + stats[4] + "||" + stats[5],textSize,new Color(0,0,0),new Color(1.0f,1.0f,1.0f,0.5f)); From 42f78c03160ab9547051d975e108c9ec2d2173b5 Mon Sep 17 00:00:00 2001 From: aaronholz Date: Tue, 28 Jun 2016 08:37:44 +0200 Subject: [PATCH 2/2] Redraw Province Verbesserung Redraw Province Verbesserung, Verbesserung des Gesamtsystems --- Province.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Province.java b/Province.java index b1a7cc7..0b00510 100644 --- a/Province.java +++ b/Province.java @@ -169,7 +169,7 @@ public class Province extends Actor { int textSize; textSize = 20; - GreenfootImage province = new GreenfootImage(100,100); + GreenfootImage province = new GreenfootImage(120,100); GreenfootImage provinceName = new GreenfootImage(displayName,textSize,new Color(0,0,0),new Color(1.0f,1.0f,1.0f,0.5f)); province.drawImage(provinceName,0,0); oDecide(province,textSize); @@ -235,18 +235,18 @@ public class Province extends Actor if(eCountTanks == 2) { province.drawImage(tank,0,textSize); - province.drawImage(tank,17,textSize); + province.drawImage(tank,textSize,textSize); } if(eCountTanks == 3) { province.drawImage(tank,0,textSize); province.drawImage(tank,textSize,textSize); - province.drawImage(tank,textSize,textSize); + province.drawImage(tank,textSize*2,textSize); } } else { - GreenfootImage eCountTanksImage = new GreenfootImage(Integer.toString(eCountTanks) + "x",textSize,Color.CYAN,new Color(1.0f,1.0f,1.0f,0.5f)); + GreenfootImage eCountTanksImage = new GreenfootImage(Integer.toString(eCountTanks) + "x",textSize,Color.BLACK,new Color(1.0f,1.0f,1.0f,0.5f)); province.drawImage(eCountTanksImage,0,textSize); province.drawImage(tank,45,textSize); } @@ -255,7 +255,7 @@ public class Province extends Actor horse.scale(textSize,textSize); if(eCountHorse == 1) { - province.drawImage(horse,0,2 * textSize); + province.drawImage(horse,4*textSize,textSize); } GreenfootImage Inf = new GreenfootImage("images\\infanterieskal-" + ownerString + ".png"); int eCountInf = eCount - (eCountTanks * 5) - (eCountHorse * 3); @@ -264,12 +264,12 @@ public class Province extends Actor { if(eCountInf == 1) { - province.drawImage(Inf,0,3* textSize); + province.drawImage(Inf,5*textSize,textSize); } if(eCountInf == 2) { - province.drawImage(Inf,0,3 * textSize); - province.drawImage(Inf,25,3 * textSize); + province.drawImage(Inf,5*textSize,textSize); + province.drawImage(Inf,5*textSize,textSize); } } setImage(province);