diff --git a/core/src/ru/deadsoftware/cavedroid/game/GameSaver.java b/core/src/ru/deadsoftware/cavedroid/game/GameSaver.java
index 0d796b8b3a22583ed5e7e540bcb3b0ebe5bfe6a0..38e295931f27b864ed98fa94ecad05698e323e94 100644 (file)
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.files.FileHandle;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.files.FileHandle;
-import org.jetbrains.annotations.NotNull;
import ru.deadsoftware.cavedroid.CaveGame;
import java.io.*;
import ru.deadsoftware.cavedroid.CaveGame;
import java.io.*;
private static final int VERSION = 0;
private static final int VERSION = 0;
- @NotNull
+
private static byte[] intToBytes(int i) {
return ByteBuffer.allocate(4).putInt(i).array();
}
private static byte[] intToBytes(int i) {
return ByteBuffer.allocate(4).putInt(i).array();
}
- private static void saveMap(@NotNull FileHandle file, @NotNull int[][] map) throws IOException {
+ private static void saveMap(FileHandle file, int[][] map) throws IOException {
int rl, bl;
int width = map.length;
int height = map[0].length;
int rl, bl;
int width = map.length;
int height = map[0].length;
out.close();
}
out.close();
}
- @NotNull
- private static int[][] loadMap(@NotNull FileHandle file) throws Exception {
+
+ private static int[][] loadMap(FileHandle file) throws Exception {
int[][] map;
int ver, width, height;
int rl, bl;
int[][] map;
int ver, width, height;
int rl, bl;
loadMap(Gdx.files.absolute(CaveGame.GAME_FOLDER + "/saves/backmap.sav"))
);
gameProc.physics = new GamePhysics();
loadMap(Gdx.files.absolute(CaveGame.GAME_FOLDER + "/saves/backmap.sav"))
);
gameProc.physics = new GamePhysics();
- gameProc.resetRenderer();
+ gameProc.input = new GameInput();
} catch (Exception e) {
Gdx.app.error("GameSaver", e.getMessage(), e);
Gdx.app.exit();
} catch (Exception e) {
Gdx.app.error("GameSaver", e.getMessage(), e);
Gdx.app.exit();