Advertisement
Guest User

Untitled

a guest
Apr 27th, 2017
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 5.40 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 ConsoleGame
  9. {
  10.  
  11.  
  12.     class Program
  13.     {
  14.  
  15.         public static PlayerCharacter pc;
  16.  
  17.         static void Main(string[] args)
  18.         {
  19.             Console.WindowHeight = 35;
  20.             Console.WindowWidth = 100;
  21.             Console.Title = @"ConsoleGame";
  22.             Console.ForegroundColor = ConsoleColor.Blue;
  23.             Console.WriteLine("Todays Message: Copy & Paste RuleZz");
  24.             Console.ForegroundColor = ConsoleColor.White;
  25.             Console.WriteLine("");
  26.             Console.WriteLine("1. New Game \n2. Load Game \n3. Credits \n4. Rip");
  27.             MAINMENU_OPTION choice;
  28.  
  29.             do
  30.             {
  31.                 choice = (MAINMENU_OPTION)Int16.Parse(Console.ReadLine());
  32.                 switch (choice)
  33.                 {
  34.                     case MAINMENU_OPTION.NEW_GAME:
  35.                         Console.Clear();
  36.                         newgame();
  37.                         break;
  38.                     case MAINMENU_OPTION.LOAD_GAME:
  39.                         Console.Clear();
  40.                         break;
  41.                     case MAINMENU_OPTION.SHOW_CREDITS:
  42.                         Console.Clear();
  43.                         credits();
  44.                         break;
  45.                     case MAINMENU_OPTION.EXIT:
  46.                         break;
  47.                     default:
  48.                         Console.WriteLine("I don't under... F*CK OFF!!!");
  49.                         break;
  50.                 }
  51.             } while (choice < MAINMENU_OPTION.NEW_GAME || choice > MAINMENU_OPTION.EXIT);
  52.         }
  53.         static void newgame()
  54.         {
  55.             Console.WriteLine("Choose your Class:\n");
  56.             Console.WriteLine(@"1. Warrior 2. Mage 3. Rogue");
  57.  
  58.             CHARSELECT_OPTION choice;
  59.  
  60.             do
  61.             {
  62.                 choice = (CHARSELECT_OPTION)Int16.Parse(Console.ReadLine());
  63.                 switch (choice)
  64.                 {
  65.                     case CHARSELECT_OPTION.PICK_CLASS_WARRIOR:
  66.                         pc.gold = 0;
  67.                         pc.level = 1;
  68.                         pc.hp = 50;
  69.                         pc.maxhp = 50;
  70.                         pc.mp = 10;
  71.                         pc.maxmp = 10;
  72.                         pc.strength = 7;
  73.                         pc.dexterity = 4;
  74.                         pc.intelligence = 3;
  75.                         pc.stamina = 6;
  76.                         pc.exp = 0;
  77.                         pc.maxexp = 50;
  78.                         Console.Clear();
  79.                         Console.WriteLine("You've choosen the path of the warrior!");
  80.                         break;
  81.                     case CHARSELECT_OPTION.PICK_CLASS_MAGE:
  82.                         pc.gold = 0;
  83.                         pc.level = 1;
  84.                         pc.hp = 25;
  85.                         pc.maxhp = 25;
  86.                         pc.mp = 25;
  87.                         pc.maxmp = 25;
  88.                         pc.strength = 3;
  89.                         pc.dexterity = 5;
  90.                         pc.intelligence = 8;
  91.                         pc.stamina = 4;
  92.                         pc.exp = 0;
  93.                         pc.maxexp = 50;
  94.                         Console.Clear();
  95.                         Console.WriteLine("You've choosen the path of the mage!");
  96.                         break;
  97.                     case CHARSELECT_OPTION.PICK_CLASS_ROUGE:
  98.                         pc.gold = 0;
  99.                         pc.level = 1;
  100.                         pc.hp = 35;
  101.                         pc.maxhp = 35;
  102.                         pc.mp = 15;
  103.                         pc.maxmp = 15;
  104.                         pc.strength = 3;
  105.                         pc.dexterity = 8;
  106.                         pc.intelligence = 3;
  107.                         pc.stamina = 6;
  108.                         pc.exp = 0;
  109.                         pc.maxexp = 50;
  110.                         Console.Clear();
  111.                         Console.WriteLine("You've choosen the path of the rogue!");
  112.                         break;
  113.                     default:
  114.                         Console.WriteLine("I don't under... F*CK OFF!!!");
  115.                         break;
  116.                 }
  117.             } while (choice < CHARSELECT_OPTION.PICK_CLASS_WARRIOR || choice > CHARSELECT_OPTION.PICK_CLASS_ROUGE);
  118.  
  119.             for (int i = 0; i < 3; i++)
  120.             {
  121.                 Console.Write(".");
  122.                 Thread.Sleep(1000);
  123.             }
  124.             gamemenu();
  125.  
  126.         }
  127.  
  128.         static void gamemenu()
  129.         {
  130.             Console.WriteLine("");
  131.             Console.WriteLine(" 1. Grind \n 2. Dungeon \n 3. Tavern \n 4. Inventory & Stats \n");
  132.             string choose = Console.ReadLine();
  133.             int chooseInt = Convert.ToInt32(choose);
  134.             Console.Clear();
  135.             switch (chooseInt)
  136.             {
  137.                 case 1:
  138.                     break;
  139.                 case 2:
  140.                     break;
  141.                 case 3:
  142.                     break;
  143.                 case 4:
  144.                     break;
  145.             }
  146.             Console.ReadLine();
  147.         }
  148.         static void credits()
  149.         {
  150.             Console.WriteLine("Who the F*CK reads the Credits?!");
  151.             Console.WriteLine("Press Any Key to continue, dumb c*nt...");
  152.             Console.Read();
  153.         }
  154.     }
  155. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement