diff --git a/core/src/io/anuke/mindustry/core/Control.java b/core/src/io/anuke/mindustry/core/Control.java index 3e88e82311..3952e6cb6a 100644 --- a/core/src/io/anuke/mindustry/core/Control.java +++ b/core/src/io/anuke/mindustry/core/Control.java @@ -35,6 +35,7 @@ import static io.anuke.mindustry.Vars.*; public class Control implements ApplicationListener{ public final Saves saves; public final MusicControl music; + public final Tutorial tutorial; private Interval timer = new Interval(2); private boolean hiscore = false; @@ -44,8 +45,8 @@ public class Control implements ApplicationListener{ public Control(){ batch = new SpriteBatch(); saves = new Saves(); + tutorial = new Tutorial(); music = new MusicControl(); - data = new GlobalData(); Unit.dp.product = settings.getInt("uiscale", 100) / 100f; @@ -101,6 +102,7 @@ public class Control implements ApplicationListener{ Events.on(ResetEvent.class, event -> { player.reset(); + tutorial.reset(); hiscore = false; diff --git a/core/src/io/anuke/mindustry/game/Tutorial.java b/core/src/io/anuke/mindustry/game/Tutorial.java new file mode 100644 index 0000000000..0655257ac0 --- /dev/null +++ b/core/src/io/anuke/mindustry/game/Tutorial.java @@ -0,0 +1,21 @@ +package io.anuke.mindustry.game; + +/** Handles tutorial state. */ +public class Tutorial{ + private TutorialStage stage = TutorialStage.values()[0]; + + public void reset(){ + stage = TutorialStage.values()[0]; + } + + /** Goes on to the next tutorial step. */ + public void next(){ + + } + + + public enum TutorialStage{ + intro; + } + +}