mirror of
https://github.com/jokerx3/HeatUp
synced 2026-07-27 10:19:46 +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";
|
||||
break;
|
||||
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;
|
||||
case 'd':
|
||||
imageFileName="src/de/heatup/resources/images/little_green_guy.png";
|
||||
imageFileName="src/de/heatup/resources/images/little_green_guy_verysmall.png";
|
||||
break;
|
||||
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;
|
||||
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;
|
||||
default:
|
||||
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) {
|
||||
// this.rescaleFactorX = rescaleFactorX;
|
||||
// this.rescaleFactorY = rescaleFactorY;
|
||||
// this.doRescale = true;
|
||||
// }
|
||||
|
||||
// public void unsetRescale() {
|
||||
// this.rescaleFactorX = 0.0;
|
||||
// this.rescaleFactorY = 0.0;
|
||||
// this.doRescale = false;
|
||||
// }
|
||||
// TODO: getter für höhe breite position
|
||||
|
||||
public void setAutoBounds(int x, int y) {
|
||||
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("h: " + dynObj.getHeight() + " w: " + dynObj.getWidth());
|
||||
try {
|
||||
Thread.sleep(10);
|
||||
Thread.sleep(40);
|
||||
} catch (InterruptedException e) {
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 774 B |
Reference in New Issue
Block a user