コード例 #1
0
ファイル: Game1.cs プロジェクト: Aleksandr175/SimpleGame
 /// <summary>
 /// рисуем "вы проиграли"
 /// </summary>
 public void PrintFail()
 {
     failed = true;
     gameState = GameState.Fail;
     Texture2D imgAdvice = storage.Pull2DTexture("failed");
     advice = new Advice(imgAdvice);
 }
コード例 #2
0
ファイル: Game1.cs プロジェクト: Aleksandr175/SimpleGame
 /// <summary>
 /// рисуем "игра пройдена"
 /// </summary>
 public void PrintSuccess()
 {
     gameState = GameState.Success;
     Texture2D imgAdvice = storage.Pull2DTexture("advice_final");
     advice = new Advice(imgAdvice);
 }
コード例 #3
0
ファイル: Game1.cs プロジェクト: Aleksandr175/SimpleGame
 /// <summary>
 /// Ф-ция отрисовывает подсказку перед уровнем
 /// </summary>
 /// <param name="currentLvl">Номер уровня</param>
 public void PrintAdvice(int currentLvl)
 {
     gameState = GameState.Advice;
     if (currentLvl > maxLvl)
     {
         PrintSuccess();
         return;
     }
     if (currentLvl > 7) { currentLvl = 7; }
     Texture2D imgAdvice = storage.Pull2DTexture("advice" + currentLvl);
     //Texture2D imgAdvice = storage.Pull2DTexture("advice1");
     advice = new Advice(imgAdvice);
 }