Advertisement
Guest User

Untitled

a guest
Mar 3rd, 2018
5,673
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.56 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.  
  7. namespace GeforceNow
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.  
  14.  
  15.             Console.Title = "GeForce Now: BETA";
  16.    
  17.             Console.WriteLine("Username:");
  18.             string myUsername = Console.ReadLine();
  19.  
  20.             string pass = "";
  21.             Console.Write("Password:");
  22.             ConsoleKeyInfo key;
  23.  
  24.             do
  25.             {
  26.                 key = Console.ReadKey(true);
  27.  
  28.                 // Backspace Should Not Work
  29.                 if (key.Key != ConsoleKey.Backspace)
  30.                 {
  31.                     pass += key.KeyChar;
  32.                     Console.Write("*");
  33.                 }
  34.                 else
  35.                 {
  36.                     Console.Write("\b");
  37.                 }
  38.             }
  39.             // Stops Receving Keys Once Enter is Pressed
  40.             while (key.Key != ConsoleKey.Enter);
  41.  
  42.             Console.WriteLine(" ");
  43.             Console.WriteLine("Hello, " + myUsername + " welcome to GeForce Now." );
  44.             Console.WriteLine("Please type a game you want to play.");
  45.             Console.WriteLine("Our current games are Fortnite: Battle Royale, Minecraft, and CS:GO");
  46.             Console.ReadLine();
  47.  
  48.             bool fortnite = true;
  49.  
  50.             if (fortnite == true)
  51.             {
  52.                 Console.WriteLine("Launching Fortnite: Battle Royale!");
  53.                
  54.             }
  55.             Console.Read();
  56.         }
  57.     }
  58. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement