From 9e6bb56f372a55c1f1c20f63c4a5237947fb5781 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Tue, 27 Sep 2022 00:10:51 +0600 Subject: oops forgor moment --- core/src/com/ilotterytea/maxoning/MaxonGame.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/src/com/ilotterytea/maxoning/MaxonGame.java') diff --git a/core/src/com/ilotterytea/maxoning/MaxonGame.java b/core/src/com/ilotterytea/maxoning/MaxonGame.java index 4ee3861..6f26b12 100644 --- a/core/src/com/ilotterytea/maxoning/MaxonGame.java +++ b/core/src/com/ilotterytea/maxoning/MaxonGame.java @@ -7,7 +7,7 @@ import com.badlogic.gdx.assets.AssetManager; import com.badlogic.gdx.graphics.g2d.SpriteBatch; import com.badlogic.gdx.graphics.glutils.ShapeRenderer; import com.ilotterytea.maxoning.player.MaxonPlayer; -import com.ilotterytea.maxoning.screens.AssetLoadingScreen; +import com.ilotterytea.maxoning.screens.SplashScreen; import com.ilotterytea.maxoning.utils.I18N; import com.ilotterytea.maxoning.utils.serialization.GameDataSystem; @@ -53,7 +53,7 @@ public class MaxonGame extends Game { assetManager = new AssetManager(); - this.setScreen(new AssetLoadingScreen(this)); + this.setScreen(new SplashScreen(this)); } @Override -- cgit v1.2.3 From c9bb9b34d005a9f396e4963c6f077d3a92a272fe Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Thu, 6 Oct 2022 01:15:12 +0600 Subject: garbage cuz game has more than 1 savegame slot --- core/src/com/ilotterytea/maxoning/MaxonGame.java | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'core/src/com/ilotterytea/maxoning/MaxonGame.java') diff --git a/core/src/com/ilotterytea/maxoning/MaxonGame.java b/core/src/com/ilotterytea/maxoning/MaxonGame.java index 6f26b12..0ad6a8d 100644 --- a/core/src/com/ilotterytea/maxoning/MaxonGame.java +++ b/core/src/com/ilotterytea/maxoning/MaxonGame.java @@ -6,10 +6,8 @@ import com.badlogic.gdx.Preferences; import com.badlogic.gdx.assets.AssetManager; import com.badlogic.gdx.graphics.g2d.SpriteBatch; import com.badlogic.gdx.graphics.glutils.ShapeRenderer; -import com.ilotterytea.maxoning.player.MaxonPlayer; import com.ilotterytea.maxoning.screens.SplashScreen; import com.ilotterytea.maxoning.utils.I18N; -import com.ilotterytea.maxoning.utils.serialization.GameDataSystem; import java.io.IOException; @@ -36,14 +34,6 @@ public class MaxonGame extends Game { prefs = Gdx.app.getPreferences("Maxoning"); locale = new I18N(Gdx.files.internal("i18n/" + prefs.getString("lang", "en_us") + ".json")); - if (!GameDataSystem.exists()) { - try { - GameDataSystem.SaveData(new MaxonPlayer()); - } catch (IOException e) { - throw new RuntimeException(e); - } - } - prefs.putInteger("width", Gdx.graphics.getWidth()); prefs.putInteger("height", Gdx.graphics.getHeight()); prefs.flush(); -- cgit v1.2.3 From e548d4b78d89bb752b38d107b2bb7d9e0302acbf Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Sat, 15 Oct 2022 18:17:49 +0200 Subject: ненужный импорт иоексепшн MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/src/com/ilotterytea/maxoning/MaxonGame.java | 2 -- 1 file changed, 2 deletions(-) (limited to 'core/src/com/ilotterytea/maxoning/MaxonGame.java') diff --git a/core/src/com/ilotterytea/maxoning/MaxonGame.java b/core/src/com/ilotterytea/maxoning/MaxonGame.java index 0ad6a8d..f361d20 100644 --- a/core/src/com/ilotterytea/maxoning/MaxonGame.java +++ b/core/src/com/ilotterytea/maxoning/MaxonGame.java @@ -9,8 +9,6 @@ import com.badlogic.gdx.graphics.glutils.ShapeRenderer; import com.ilotterytea.maxoning.screens.SplashScreen; import com.ilotterytea.maxoning.utils.I18N; -import java.io.IOException; - public class MaxonGame extends Game { public SpriteBatch batch; public ShapeRenderer shapeRenderer; -- cgit v1.2.3