diff options
| -rw-r--r-- | core/src/com/ilotterytea/maxoning/screens/GameScreen.java | 5 |
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())); |
