mirror of
https://github.com/jokerx3/HeatUp
synced 2026-07-27 11:39:45 +02:00
Anpassung an Grafik
This commit is contained in:
@@ -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";
|
||||||
|
|||||||
@@ -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());
|
||||||
|
|||||||
@@ -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 |
Reference in New Issue
Block a user