示例#1
0
 /// <summary>
 /// Creates the screen
 /// </summary>
 /// <param name="game">Snails Pace instance</param>
 /// <param name="levelsSetting">The levels for the game, [n][0] = display name, [n][1] = file</param>
 public LevelSelectScreen(SnailsPace game, String[][] levelsSetting )
     : base(game)
 {
     levels = new LevelDefinition[levelsSetting.Length];
     for (int index = 0; index < levelsSetting.Length; index++)
     {
         levels[index] = new LevelDefinition(levelsSetting[index][0], levelsSetting[index][1]);
     }
 }
示例#2
0
 /// <summary>
 /// Constructor for the screen
 /// </summary>
 /// <param name="game">Snails Pace instance</param>
 public MenuScreen(SnailsPace game)
     : base(game)
 {
 }
示例#3
0
 /// <summary>
 /// Sets up the loading screen
 /// </summary>
 /// <param name="game">The Snails Pace instance</param>
 /// <param name="nextState">The game state that the loading screen transitions into</param>
 protected LoadingScreen(SnailsPace game, SnailsPace.GameStates nextState)
     : base(game)
 {
     this.nextState = nextState;
     ready = true;
 }
示例#4
0
 /// <summary>
 /// Constructor for the screen
 /// </summary>
 /// <param name="game">Snails Pace instance</param>
 public GameLoadingScreen(SnailsPace game)
     : base(game, SnailsPace.GameStates.Game)
 {
 }
示例#5
0
 /// <summary>
 /// Constructor for the screen
 /// </summary>
 /// <param name="game">The instance of Snails Pace</param>
 public LevelOverScreen(SnailsPace game)
     : base(game, SnailsPace.GameStates.MainMenu)
 {
     // This screen waits for input before being ready to transition
     ready = false;
 }
示例#6
0
 public HighScoreScreen(SnailsPace game, String mapName)
     : base(game)
 {
     this.mapName = mapName;
 }
示例#7
0
 /// <summary>
 /// Creates the screen
 /// </summary>
 /// <param name="game">Snails Pace instance</param>
 public HighScoreMenuScreen(SnailsPace game)
     : base(game)
 {
 }
示例#8
0
 /// <summary>
 /// Constructor for the screen
 /// </summary>
 /// <param name="game">Snails Pace Instance</param>
 public GameScreen(SnailsPace game)
     : base(game)
 {
     ready = false;
 }