Esempio n. 1
0
 public StateSingle(LeGame g)
     : base(g)
 {
     #region Entities Construction
     player = new PlayerEntity(game, LeGame.PLAYER_STARTING_LOCATION);
     ogre = new OgreEntity(game, LeGame.OGRE_STARTING_LOCATION, 0.0f);
     mouse = new MouseEntity(game);
     #endregion
     #region Component Construction
     environment = new TileEnvironment(game, player, LeGame.ENVIRONMENT_WIDTH, LeGame.ENVIRONMENT_HEIGHT);
     audioControl = new AudioController(game, false, false);
     #endregion
 }
Esempio n. 2
0
 public StateMenu(LeGame g)
     : base(g)
 {
     Log("Creating state");
     background = new ScrollBackground(game, "menu/background");
     mouse = new MouseEntity(game);
     singleColor = multiColor = optionsColor = exitColor = TEXT_COLOR;
     isTransitioning = true;
     doChangeState = false;
     transitionCount = 0;
     targetState = StateManager.State.Single;
     currentTransition = TransitionType.FadeIn;
 }