From 6bd5bef619929d9903a44febdf5357f107365dad Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Thu, 6 Oct 2022 01:18:27 +0600 Subject: MaxonPlayer is required in GameScreen parameters --- core/src/com/ilotterytea/maxoning/screens/GameScreen.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'core/src/com') 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> 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())); -- cgit v1.2.3