PhotoShaman

Untitled

Jul 18th, 2016
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 7.96 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Threading;
  7.  
  8. namespace ConsoleApplication65
  9. {
  10.     class Program
  11.     {
  12.         static void Main(string[] args)
  13.         {
  14.             Console.SetWindowSize(120, 30);
  15.             Console.Title = "Doors OS";
  16.             KittyImage();
  17.             Interface();
  18.             //BlueBG(Console.WindowHeight);
  19.             //ChooseYourWindowsVersion();
  20.             Console.ReadLine();
  21.         }
  22.  
  23.         //private static void Indent(int k)
  24.         //{
  25.         //    for (int i = 0; i < k; i++)
  26.         //    {
  27.         //        Console.Write("\n");
  28.         //    }
  29.         //}
  30.  
  31.         //private static void MakeCenter(string message)
  32.         //{
  33.         //    Console.Write(message.PadLeft((Console.WindowWidth / 2) - (message.Length / 2) + message.Length).PadRight(Console.WindowWidth));
  34.         //}
  35.  
  36.         //private static void ChooseYourWindowsVersion()
  37.         //{
  38.         //    Indent(5);
  39.         //    MakeCenter("Выберите свою версию Windows");
  40.         //    FirstLoading();
  41.         //}
  42.  
  43.         //private static void FirstLoading()
  44.         //{
  45.         //    MakeCenter("            ███████████              ");
  46.         //    MakeCenter("        ████           ████          ");
  47.         //    MakeCenter("      ██                   ██        ");
  48.         //    MakeCenter("    ██                       ██      ");
  49.         //    MakeCenter("    ██                       ██      ");
  50.         //    MakeCenter("  ██                           ██    ");
  51.         //    MakeCenter("  ██                           ██    ");
  52.         //    MakeCenter("  ██                           ██    ");
  53.         //    MakeCenter("  ██                           ██    ");
  54.         //    MakeCenter("  ██                           ██    ");
  55.         //    MakeCenter("  ██                           ██    ");
  56.         //    MakeCenter("  ██                           ██    ");
  57.         //    MakeCenter("  ██                           ██    ");
  58.         //    MakeCenter("    ██                       ██      ");
  59.         //    MakeCenter("    ██                       ██      ");
  60.         //    MakeCenter("      ██                   ██        ");
  61.         //    MakeCenter("        ████           ████          ");
  62.         //    MakeCenter("            ███████████              ");
  63.  
  64.         //    Console.WriteLine("              ████");
  65.         //    Console.WriteLine("            ████");
  66.         //    Console.WriteLine("████      ████");
  67.         //    Console.WriteLine("  ████  ████");
  68.         //    Console.WriteLine("    ██████");
  69.         //    Console.WriteLine("      ██");
  70.         //}
  71.  
  72.  
  73.  
  74.         //static void Massive()
  75.         //{
  76.         //    int[,] a = { {30, 30 }, {31, 31}, {32, 32} };
  77.  
  78.         //    Console.SetCursorPosition();
  79.  
  80.  
  81.         //    Console.ReadLine();
  82.         //}
  83.  
  84.  
  85.         private static void Box(int Width, int Height, int XPos, int YPos)
  86.         {
  87.             for (int i = 0; i < Height; i++)
  88.             {
  89.                 Console.SetCursorPosition(XPos, YPos);
  90.                 for (int j = 0; j < Width; j++)
  91.                 {
  92.                     Console.Write(" ");
  93.                 }
  94.                 YPos++;
  95.             }
  96.         }
  97.  
  98.         private static void DesktopBG()
  99.         {
  100.  
  101.         }
  102.  
  103.         private static void KittyArray()
  104.         {
  105.  
  106.         }
  107.  
  108.         private static void KittyImage()
  109.         {
  110.             Console.ResetColor();
  111.             int[,] kitty = new int[,]
  112.             {
  113.                 {0,1,1,0,0,0,0,0,0,0,0,0,1,1,0,0,5},
  114.                 {0,1,2,1,0,0,0,0,0,0,0,1,2,2,1,0,5},
  115.                 {0,1,2,2,1,0,0,0,0,0,1,2,2,2,1,0,5},
  116.                 {0,1,2,2,2,1,1,1,1,1,2,2,2,2,1,0,5},
  117.                 {1,2,2,2,2,2,2,2,2,2,2,2,2,2,1,0,5},
  118.                 {1,2,2,2,2,2,2,2,2,2,2,2,2,2,1,0,5},
  119.                 {1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,5},
  120.                 {1,2,2,2,3,1,2,2,2,2,2,3,1,2,2,1,5},
  121.                 {1,2,2,2,1,1,2,2,2,1,2,1,1,2,2,1,5},
  122.                 {1,2,4,4,2,2,2,2,2,2,2,2,2,4,4,1,5},
  123.                 {1,2,4,4,2,1,2,2,1,2,2,1,2,4,4,1,5},
  124.                 {0,1,2,2,2,2,1,1,2,1,1,2,2,2,1,0,5},
  125.                 {0,0,1,2,2,2,2,2,2,2,2,2,2,1,0,0,5},
  126.                 {0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,5}
  127.             };
  128.  
  129.  
  130.             int m = (Console.WindowWidth / 2 - 16);
  131.  
  132.             int n = (Console.WindowHeight - 18) / 2;
  133.  
  134.             Console.SetCursorPosition(m, n);
  135.  
  136.             for (int i = 0; i < kitty.GetLength(0); i++)
  137.             {
  138.                 for (int j = 0; j < kitty.GetLength(1); j++)
  139.                 {
  140.                     if (kitty[i, j] == 0)
  141.                     {
  142.                         Console.ResetColor();
  143.                         Console.BackgroundColor = ConsoleColor.Blue;
  144.                         Console.Write("  ");
  145.                     }
  146.                     if (kitty[i, j] == 1)
  147.                     {
  148.                         Console.ForegroundColor = ConsoleColor.Black;
  149.                         Console.Write("██");
  150.                     }
  151.                     if (kitty[i, j] == 2)
  152.                     {
  153.                         Console.ForegroundColor = ConsoleColor.DarkGray;
  154.                         Console.Write("██");
  155.                     }
  156.                     if (kitty[i, j] == 3)
  157.                     {
  158.                         Console.ForegroundColor = ConsoleColor.White;
  159.                         Console.Write("██");
  160.                     }
  161.                     if (kitty[i, j] == 4)
  162.                     {
  163.                         Console.ForegroundColor = ConsoleColor.DarkRed;
  164.                         Console.Write("██");
  165.                     }
  166.                     if (kitty[i, j] == 5)
  167.                     {
  168.                         n++;
  169.                         Console.SetCursorPosition(m, n);
  170.                     }
  171.                 }
  172.             }
  173.             Console.SetCursorPosition(0, 0);
  174.         }
  175.  
  176.         private static void Interface()
  177.         {
  178.  
  179.             Console.BackgroundColor = ConsoleColor.Blue;
  180.             Console.WriteLine();
  181.             for (int i = 1; i <= Console.WindowHeight - 2; i++)
  182.             {
  183.                 Console.Write(" ");
  184.                 Console.Write(" ".PadRight(Console.WindowWidth - 1));
  185.             }
  186.  
  187.             Console.BackgroundColor = ConsoleColor.DarkCyan;
  188.             Box(Console.WindowWidth, 3, 0, (Console.WindowHeight - 4));
  189.  
  190.  
  191.             for (int i = 1; i <= 3; i++)
  192.             {
  193.                 Console.SetCursorPosition(11, Console.WindowHeight - i - 1);
  194.                 Console.Write("║");
  195.             }
  196.  
  197.  
  198.             Console.BackgroundColor = ConsoleColor.Green;
  199.             Box(9, 3, 1, (Console.WindowHeight - 4));
  200.  
  201.             Box(9, 3, 1, (Console.WindowHeight - 4));
  202.  
  203.             Box(30, 3, (Console.WindowWidth - 30), (Console.WindowHeight - 4));
  204.  
  205.             Console.ForegroundColor = ConsoleColor.Black;
  206.             Console.SetCursorPosition(2, Console.WindowHeight - 3);
  207.             Console.Write("Спуск");
  208.             KittyImage();
  209.             while (true)
  210.             {
  211.                 Console.BackgroundColor = ConsoleColor.Green;
  212.                 Console.ForegroundColor = ConsoleColor.Black;
  213.                 Console.SetCursorPosition(Console.WindowWidth - 26, Console.WindowHeight - 3);
  214.                 Console.Write(DateTime.Now.ToString("dd MMMM yyyy | HH:mm:ss"));
  215.                 Console.SetCursorPosition(0, 0);
  216.                 Thread.Sleep(1000);
  217.             }
  218.  
  219.            
  220.             //Console.WriteLine("visota\t" + Console.WindowHeight);
  221.             //Console.WriteLine("shirina\t" + Console.WindowWidth);
  222.            
  223.         }
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230.  
  231.     }
  232. }
Advertisement
Add Comment
Please, Sign In to add comment