Collision checking for outer bounds works apparentlly solely on Windows, commented out for now #1
@ -67,10 +67,11 @@ public class Endscreen extends JDialog {
|
|||||||
lblDeinPunktestand.setFont(new Font("Times New Roman", Font.PLAIN, 25));
|
lblDeinPunktestand.setFont(new Font("Times New Roman", Font.PLAIN, 25));
|
||||||
contentPanel.add(lblDeinPunktestand, BorderLayout.NORTH);
|
contentPanel.add(lblDeinPunktestand, BorderLayout.NORTH);
|
||||||
|
|
||||||
Image resultImage = Toolkit.getDefaultToolkit()
|
//TODO: the display ofthe result image could work, but not guaranteed
|
||||||
.getImage(this.getClass()
|
// Image resultImage = Toolkit.getDefaultToolkit()
|
||||||
.getResource((score < goodOrBadResult) ? "/Snake/src/main/resources/Try_Again.jpg" : "/Snake/src/main/resources/1211548-200.png"));
|
// .getImage(this.getClass()
|
||||||
resultImage.flush();
|
// .getResource((score < goodOrBadResult) ? "/Snake/src/main/resources/Try_Again.jpg" : "/Snake/src/main/resources/1211548-200.png"));
|
||||||
|
// resultImage.flush();
|
||||||
|
|
||||||
setVisible(true);
|
setVisible(true);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user