コード例 #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
ファイル: MenuScreen.cs プロジェクト: jreese/snailspace
 /// <summary>
 /// Constructor for the screen
 /// </summary>
 /// <param name="game">Snails Pace instance</param>
 public MenuScreen(SnailsPace game)
     : base(game)
 {
 }
コード例 #3
0
ファイル: LoadingScreen.cs プロジェクト: jreese/snailspace
 /// <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
ファイル: LevelOverScreen.cs プロジェクト: jreese/snailspace
 /// <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
ファイル: HighScoreScreen.cs プロジェクト: jreese/snailspace
 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
ファイル: GameScreen.cs プロジェクト: jreese/snailspace
 /// <summary>
 /// Constructor for the screen
 /// </summary>
 /// <param name="game">Snails Pace Instance</param>
 public GameScreen(SnailsPace game)
     : base(game)
 {
     ready = false;
 }