Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Threading;
- namespace ConsoleApplication65
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.SetWindowSize(120, 30);
- Console.Title = "Doors OS";
- KittyImage();
- Interface();
- //BlueBG(Console.WindowHeight);
- //ChooseYourWindowsVersion();
- Console.ReadLine();
- }
- //private static void Indent(int k)
- //{
- // for (int i = 0; i < k; i++)
- // {
- // Console.Write("\n");
- // }
- //}
- //private static void MakeCenter(string message)
- //{
- // Console.Write(message.PadLeft((Console.WindowWidth / 2) - (message.Length / 2) + message.Length).PadRight(Console.WindowWidth));
- //}
- //private static void ChooseYourWindowsVersion()
- //{
- // Indent(5);
- // MakeCenter("Выберите свою версию Windows");
- // FirstLoading();
- //}
- //private static void FirstLoading()
- //{
- // MakeCenter(" ███████████ ");
- // MakeCenter(" ████ ████ ");
- // MakeCenter(" ██ ██ ");
- // MakeCenter(" ██ ██ ");
- // MakeCenter(" ██ ██ ");
- // MakeCenter(" ██ ██ ");
- // MakeCenter(" ██ ██ ");
- // MakeCenter(" ██ ██ ");
- // MakeCenter(" ██ ██ ");
- // MakeCenter(" ██ ██ ");
- // MakeCenter(" ██ ██ ");
- // MakeCenter(" ██ ██ ");
- // MakeCenter(" ██ ██ ");
- // MakeCenter(" ██ ██ ");
- // MakeCenter(" ██ ██ ");
- // MakeCenter(" ██ ██ ");
- // MakeCenter(" ████ ████ ");
- // MakeCenter(" ███████████ ");
- // Console.WriteLine(" ████");
- // Console.WriteLine(" ████");
- // Console.WriteLine("████ ████");
- // Console.WriteLine(" ████ ████");
- // Console.WriteLine(" ██████");
- // Console.WriteLine(" ██");
- //}
- //static void Massive()
- //{
- // int[,] a = { {30, 30 }, {31, 31}, {32, 32} };
- // Console.SetCursorPosition();
- // Console.ReadLine();
- //}
- private static void Box(int Width, int Height, int XPos, int YPos)
- {
- for (int i = 0; i < Height; i++)
- {
- Console.SetCursorPosition(XPos, YPos);
- for (int j = 0; j < Width; j++)
- {
- Console.Write(" ");
- }
- YPos++;
- }
- }
- private static void DesktopBG()
- {
- }
- private static void KittyArray()
- {
- }
- private static void KittyImage()
- {
- Console.ResetColor();
- int[,] kitty = new int[,]
- {
- {0,1,1,0,0,0,0,0,0,0,0,0,1,1,0,0,5},
- {0,1,2,1,0,0,0,0,0,0,0,1,2,2,1,0,5},
- {0,1,2,2,1,0,0,0,0,0,1,2,2,2,1,0,5},
- {0,1,2,2,2,1,1,1,1,1,2,2,2,2,1,0,5},
- {1,2,2,2,2,2,2,2,2,2,2,2,2,2,1,0,5},
- {1,2,2,2,2,2,2,2,2,2,2,2,2,2,1,0,5},
- {1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,5},
- {1,2,2,2,3,1,2,2,2,2,2,3,1,2,2,1,5},
- {1,2,2,2,1,1,2,2,2,1,2,1,1,2,2,1,5},
- {1,2,4,4,2,2,2,2,2,2,2,2,2,4,4,1,5},
- {1,2,4,4,2,1,2,2,1,2,2,1,2,4,4,1,5},
- {0,1,2,2,2,2,1,1,2,1,1,2,2,2,1,0,5},
- {0,0,1,2,2,2,2,2,2,2,2,2,2,1,0,0,5},
- {0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,5}
- };
- int m = (Console.WindowWidth / 2 - 16);
- int n = (Console.WindowHeight - 18) / 2;
- Console.SetCursorPosition(m, n);
- for (int i = 0; i < kitty.GetLength(0); i++)
- {
- for (int j = 0; j < kitty.GetLength(1); j++)
- {
- if (kitty[i, j] == 0)
- {
- Console.ResetColor();
- Console.BackgroundColor = ConsoleColor.Blue;
- Console.Write(" ");
- }
- if (kitty[i, j] == 1)
- {
- Console.ForegroundColor = ConsoleColor.Black;
- Console.Write("██");
- }
- if (kitty[i, j] == 2)
- {
- Console.ForegroundColor = ConsoleColor.DarkGray;
- Console.Write("██");
- }
- if (kitty[i, j] == 3)
- {
- Console.ForegroundColor = ConsoleColor.White;
- Console.Write("██");
- }
- if (kitty[i, j] == 4)
- {
- Console.ForegroundColor = ConsoleColor.DarkRed;
- Console.Write("██");
- }
- if (kitty[i, j] == 5)
- {
- n++;
- Console.SetCursorPosition(m, n);
- }
- }
- }
- Console.SetCursorPosition(0, 0);
- }
- private static void Interface()
- {
- Console.BackgroundColor = ConsoleColor.Blue;
- Console.WriteLine();
- for (int i = 1; i <= Console.WindowHeight - 2; i++)
- {
- Console.Write(" ");
- Console.Write(" ".PadRight(Console.WindowWidth - 1));
- }
- Console.BackgroundColor = ConsoleColor.DarkCyan;
- Box(Console.WindowWidth, 3, 0, (Console.WindowHeight - 4));
- for (int i = 1; i <= 3; i++)
- {
- Console.SetCursorPosition(11, Console.WindowHeight - i - 1);
- Console.Write("║");
- }
- Console.BackgroundColor = ConsoleColor.Green;
- Box(9, 3, 1, (Console.WindowHeight - 4));
- Box(9, 3, 1, (Console.WindowHeight - 4));
- Box(30, 3, (Console.WindowWidth - 30), (Console.WindowHeight - 4));
- Console.ForegroundColor = ConsoleColor.Black;
- Console.SetCursorPosition(2, Console.WindowHeight - 3);
- Console.Write("Спуск");
- KittyImage();
- while (true)
- {
- Console.BackgroundColor = ConsoleColor.Green;
- Console.ForegroundColor = ConsoleColor.Black;
- Console.SetCursorPosition(Console.WindowWidth - 26, Console.WindowHeight - 3);
- Console.Write(DateTime.Now.ToString("dd MMMM yyyy | HH:mm:ss"));
- Console.SetCursorPosition(0, 0);
- Thread.Sleep(1000);
- }
- //Console.WriteLine("visota\t" + Console.WindowHeight);
- //Console.WriteLine("shirina\t" + Console.WindowWidth);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment