Various persistent state things
parent
e4b18eaa85
commit
4aa0bd2022
|
@ -335,7 +335,7 @@ public class GamePanel extends JPanel implements Runnable, KeyListener, Serializ
|
||||||
playerFrameCounter -= 5;
|
playerFrameCounter -= 5;
|
||||||
// if the player has moved enough to justify a frame change, a new save will also be made
|
// if the player has moved enough to justify a frame change, a new save will also be made
|
||||||
try {
|
try {
|
||||||
FileManager.writeObjectToFile("local/game_state", this);
|
FileManager.writeObjectToFile("local/game_state", new ArrayList()); // this is placeholder, replace with this
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue