Added Tutorial class

This commit is contained in:
Anuken 2019-08-03 19:47:57 -04:00
parent 4ee6f60531
commit a65592d511
2 changed files with 24 additions and 1 deletions

View File

@ -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;

View File

@ -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;
}
}