Example #1
0
 public GameStateManager()
 {
     World      = LevelLoader.CreateWorld11();
     State      = new MainWorldState(this);
     Background = (State as MainWorldState).Background;
     Background.Play();
     Background.IsLooped = true;
     IsHiddenWorld       = false;
     PauseFlag           = false;
     Delay    = false;
     WonFlag  = false;
     GameOver = false;
     prestate = State;
 }
Example #2
0
 public void GetInMainWorld()
 {
     World = LevelLoader.CreateWorld11();
     TreeNewBee.SuperMarioBros.Instance.World = World;
     State         = new MainWorldState(this);
     IsHiddenWorld = false;
     TreeNewBee.SuperMarioBros.Instance.ScManager.ScoreState = new MainWorldScore(TreeNewBee.SuperMarioBros.Instance.ScManager, TreeNewBee.SuperMarioBros.Instance.ScManager.Position);
     PauseFlag = false;
     WonFlag   = false;
     GameOver  = false;
     Background.Stop();
     Background = (State as MainWorldState).Background;
     Background.Play();
     Background.IsLooped = true;
 }