Anpassung an Grafik

This commit is contained in:
andreas
2014-11-04 12:14:31 +01:00
parent a72e27369d
commit 45a5fa6f59
4 changed files with 6 additions and 16 deletions
@@ -27,16 +27,16 @@ public class ImageLoader {
imageFileName="src/de/heatup/resources/images/25x25_wall_orange_2.png"; imageFileName="src/de/heatup/resources/images/25x25_wall_orange_2.png";
break; break;
case 'u': case 'u':
imageFileName="src/de/heatup/resources/images/little_green_guy_up.png"; imageFileName="src/de/heatup/resources/images/little_green_guy_verysmall.png";
break; break;
case 'd': case 'd':
imageFileName="src/de/heatup/resources/images/little_green_guy.png"; imageFileName="src/de/heatup/resources/images/little_green_guy_verysmall.png";
break; break;
case 'l': case 'l':
imageFileName="src/de/heatup/resources/images/little_green_guy_left.png"; imageFileName="src/de/heatup/resources/images/little_green_guy_verysmall.png";
break; break;
case 'r': case 'r':
imageFileName="src/de/heatup/resources/images/little_green_guy_right.png"; imageFileName="src/de/heatup/resources/images/little_green_guy_verysmall.png";
break; break;
default: default:
imageFileName="src/de/heatup/resources/images/dummy_image.png"; imageFileName="src/de/heatup/resources/images/dummy_image.png";
+1 -11
View File
@@ -90,17 +90,7 @@ public class StaticObject extends JComponent {
} }
// public void setRescale(double rescaleFactorX, double rescaleFactorY) { // TODO: getter für höhe breite position
// this.rescaleFactorX = rescaleFactorX;
// this.rescaleFactorY = rescaleFactorY;
// this.doRescale = true;
// }
// public void unsetRescale() {
// this.rescaleFactorX = 0.0;
// this.rescaleFactorY = 0.0;
// this.doRescale = false;
// }
public void setAutoBounds(int x, int y) { public void setAutoBounds(int x, int y) {
this.setBounds(x, y, this.bf1.getWidth(), this.bf1.getHeight()); this.setBounds(x, y, this.bf1.getWidth(), this.bf1.getHeight());
+1 -1
View File
@@ -84,7 +84,7 @@ public class logic {
//System.out.println("x: " + dynObj.getX() + " y: " + dynObj.getY()); //System.out.println("x: " + dynObj.getX() + " y: " + dynObj.getY());
//System.out.println("h: " + dynObj.getHeight() + " w: " + dynObj.getWidth()); //System.out.println("h: " + dynObj.getHeight() + " w: " + dynObj.getWidth());
try { try {
Thread.sleep(10); Thread.sleep(40);
} catch (InterruptedException e) { } catch (InterruptedException e) {
// TODO Auto-generated catch block // TODO Auto-generated catch block
e.printStackTrace(); e.printStackTrace();
Binary file not shown.

After

Width:  |  Height:  |  Size: 774 B