I write the game with save the location of the last capture of chess.
I just know how to save it. But what is the code of void load()?
Who can help??
public void save() { String save = ""; Actor[] allChess = GWorld.getAllObjects("Chess"); if ( allChess != null ) { for ( int i=0; i<allChess.length; i++) { Chess ch = (Chess) allChess[i]; save = save + ch.getX() + " " + ch.getY(); save = save + "\n"; } } }