summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2022-10-06 01:18:27 +0600
committerilotterytea <iltsu@alright.party>2022-10-06 01:18:27 +0600
commit6bd5bef619929d9903a44febdf5357f107365dad (patch)
tree84da3cda207ffe0a1b042b6978f6ba8d951bcf1f /core
parent9e17ac7008985c7c52c36dda7abacbf5cb21d2bc (diff)
MaxonPlayer is required in GameScreen parameters
Diffstat (limited to 'core')
-rw-r--r--core/src/com/ilotterytea/maxoning/screens/GameScreen.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/core/src/com/ilotterytea/maxoning/screens/GameScreen.java b/core/src/com/ilotterytea/maxoning/screens/GameScreen.java
index bb55484..f04cec0 100644
--- a/core/src/com/ilotterytea/maxoning/screens/GameScreen.java
+++ b/core/src/com/ilotterytea/maxoning/screens/GameScreen.java
@@ -53,11 +53,10 @@ public class GameScreen implements Screen, InputProcessor {
ArrayList<ArrayList<Sprite>> bgTiles;
- public GameScreen(MaxonGame game) throws IOException, ClassNotFoundException {
+ public GameScreen(MaxonGame game, MaxonPlayer sav) throws IOException, ClassNotFoundException {
this.game = game;
- player = new MaxonPlayer();
- player.load(GameDataSystem.LoadData());
+ player = sav;
// Initializing the stage and skin:
stage = new Stage(new FillViewport(Gdx.graphics.getWidth(), Gdx.graphics.getHeight()));