Загрузка...

hacker matrix c#

Thread in C# created by DildoBeggins Jul 23, 2018. 674 views

  1. DildoBeggins
    DildoBeggins Topic starter Jul 23, 2018 Banned 39 Jan 2, 2018
    В школе на уроке информатики включить будет самое то
    Создаем консоль и пастим мой мега код
    [IMG]

    Code

    using System;

    namespace Matrix
    {
    class Program
    {
    static int Counter;
    static Random randomPosition = new Random();

    static int flowspeed = 100;
    static int fastflow = flowspeed + 30;
    static int textflow = fastflow + 50;

    static ConsoleColor baseColor = ConsoleColor.DarkGreen;
    static ConsoleColor greenColor = ConsoleColor.Green;
    static ConsoleColor fadedColor = ConsoleColor.White;

    static string endText = "LOLZTEAM";

    static char AsciiCharacters
    {
    get
    {
    int t = randomPosition.Next(10);

    if (t <= 2) return (char)('0' + randomPosition.Next(10));
    else if (t <= 4) return (char)('a' + randomPosition.Next(27));
    else if (t <= 6) return (char)('A' + randomPosition.Next(27));
    else return (char)(randomPosition.Next(32, 255));
    }
    }

    static void Main()
    {
    Console.ForegroundColor = baseColor;
    Console.WindowLeft = Console.WindowTop = 0;
    Console.WindowHeight = Console.BufferHeight = Console.LargestWindowHeight;
    Console.WindowWidth = Console.BufferWidth = Console.LargestWindowWidth;
    Console.SetWindowPosition(0, 0);
    Console.CursorVisible = false;

    int width, height;
    int[] y;
    Initialize(out width, out height, out y);

    while (true)
    {
    Counter++;
    ColumnUpdate(width, height, y);
    if (Counter > (3 * flowspeed)) Counter = 0;
    }


    }

    public static int YPositionFields(int yposition, int height)
    {
    if (yposition < 0) return yposition + height;
    else if (yposition < height) return yposition;
    else return 0;
    }

    private static void Initialize(out int width, out int height, out int[] y)
    {
    height = Console.WindowHeight;
    width = Console.WindowWidth;
    y = new int[width];
    Console.Clear();

    for (int x = 0; x < width; ++x) { y[x] = randomPosition.Next(height); }
    }

    private static void ColumnUpdate(int width, int height, int[] y)
    {
    int x;

    if (Counter < flowspeed)
    {
    for (x = 0; x < width; ++x)
    {
    if (x % 10 == 1) { Console.ForegroundColor = fadedColor; }
    else Console.ForegroundColor = baseColor;

    Console.SetCursorPosition(x, y[x]);
    Console.Write(AsciiCharacters);

    if (x % 10 == 9) { Console.ForegroundColor = fadedColor; }
    else Console.ForegroundColor = baseColor;

    int temp = y[x] - 2;
    Console.SetCursorPosition(x, YPositionFields(temp, height));
    Console.Write(AsciiCharacters);

    int temp1 = y[x] - 20;
    Console.SetCursorPosition(x, YPositionFields(temp1, height));
    Console.Write(' ');

    y[x] = YPositionFields(y[x] + 1, height);

    }
    }
    else if (Counter > flowspeed && Counter < fastflow)
    {

    for (x = 0; x < width; ++x)
    {
    Console.SetCursorPosition(x, y[x]);
    if (x % 10 == 9) { Console.ForegroundColor = fadedColor; }
    else Console.ForegroundColor = baseColor;

    Console.Write(AsciiCharacters);

    y[x] = YPositionFields(y[x] + 1, height);
    }
    }
    else if (Counter > fastflow)
    {

    for (x = 0; x < width; ++x)
    {
    Console.SetCursorPosition(x, y[x]);
    Console.Write(' ');

    int temp1 = y[x] - 2;
    Console.SetCursorPosition(x, YPositionFields(temp1, height));
    Console.Write(' ');

    if (Counter > fastflow && Counter < textflow)
    {
    if (x % 10 == 9) { Console.ForegroundColor = fadedColor; }
    else Console.ForegroundColor = baseColor;

    int temp = y[x] - 2;
    Console.SetCursorPosition(x, YPositionFields(temp, height));
    Console.Write(AsciiCharacters);
    }

    Console.SetCursorPosition(width / 2, height / 2);
    Console.Write(endText);
    y[x] = YPositionFields(y[x] + 1, height);
    }
    }
    }
    }
    }

     
  2. MIRELE
    MIRELE Jul 23, 2018 19 Jan 15, 2018
    Номана
     
  3. psz
    eto she?
     
  4. DildoBeggins
    DildoBeggins Topic starter Jul 23, 2018 Banned 39 Jan 2, 2018
    Program for hackers
     
  5. iSkill
    iSkill Jul 23, 2018 Новостной портал форума — t.me/lolz_news | 24/7 28,953 Aug 3, 2017
    Поясни что она делает, я просто сишки пока не изучал, в следующем году ток собираюсь
     
  6. DildoBeggins
    DildoBeggins Topic starter Jul 23, 2018 Banned 39 Jan 2, 2018
    Льётся дождь из рандомных букв/цифр, в конце с красивым эффектом
     
  7. iSkill
    iSkill Jul 24, 2018 Новостной портал форума — t.me/lolz_news | 24/7 28,953 Aug 3, 2017
    А где код вставлятб - визиал студио? Тип в школе не устануовлена по стандарту
     
  8. DildoBeggins
    DildoBeggins Topic starter Jul 24, 2018 Banned 39 Jan 2, 2018
    Попробуй в блокнот сунуть, думаю сработает :warpath:
     
  9. iSkill
    iSkill Jul 24, 2018 Новостной портал форума — t.me/lolz_news | 24/7 28,953 Aug 3, 2017
    батник сделать что ли?
     
  10. DildoBeggins
    DildoBeggins Topic starter Jul 24, 2018 Banned 39 Jan 2, 2018
    MVS файл -> создать -> проект -> Visual c# - > консольное приложение
     
Loading...
Top