made Game.updateDisplay() actually work. thanks whoever fucked it up!
closes #4. closes #2.
This commit is contained in:
parent
b2505d283d
commit
78b7645bfe
@ -1,5 +1,6 @@
|
|||||||
package cicaprojekt;
|
package cicaprojekt;
|
||||||
|
|
||||||
|
import javax.swing.*;
|
||||||
import java.awt.*;
|
import java.awt.*;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
@ -105,6 +106,12 @@ public class Game {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void updateDisplay() {
|
public void updateDisplay() {
|
||||||
display.repaint();
|
try {
|
||||||
|
display.drawVisuals();
|
||||||
|
display.repaint();
|
||||||
|
}
|
||||||
|
catch (IOException e) {
|
||||||
|
Control.ioErrorMessage();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user