Advertisement
Guest User

Untitled

a guest
Nov 20th, 2014
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.32 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 Q1
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. { // Variables
  13. string optionMenu, optionEnvironment, environment;
  14. string charName;
  15.  
  16. const string BAN = ""; // Console.WriteLine(BAN.PadLeft(60,'='));
  17.  
  18. //==============================================*Menu*==============================================
  19.  
  20. // Menu- Start
  21. Console.Write("\n\t-=\"Wanna Play A Game?\"=-\n\n Main Menu\n 1 <-Begin\n 2 <-Quit\n\n Option: "); // Main Menu
  22. optionMenu = Console.ReadLine();
  23.  
  24. Console.WriteLine(BAN.PadLeft(60, '='));
  25.  
  26. // Menu- Character
  27. if (optionMenu == "1")
  28. {
  29. Console.Write(" Enter your Character's name: "); // Character's Name
  30. charName = Console.ReadLine();
  31.  
  32. Console.WriteLine(BAN.PadLeft(60, '='));
  33.  
  34. // Menu- Environment
  35. Console.Write(" Choose your Environment (Choose/Make it up)\n 1 <-Argonia\n 2 <-Bara Magna\n 3 <-Corona\n\n Option: ");
  36. optionEnvironment = Console.ReadLine();
  37.  
  38. switch (optionEnvironment) // Environment Inhabited
  39. {
  40. case "1":
  41. environment = "Argonia";
  42. break;
  43. case "2":
  44. environment = "Bara Magna";
  45. break;
  46. case "3":
  47. environment = "Corona";
  48. break;
  49. default:
  50. environment = optionEnvironment;
  51. break;
  52. }
  53.  
  54. Console.WriteLine(BAN.PadLeft(60, '='));
  55.  
  56. //==================================*Plot Chapter 1*============================================
  57.  
  58. Console.WriteLine("*********STORY TO BE TOLD********\n");
  59.  
  60. }
  61. else
  62. {
  63. Console.WriteLine("\n\tGoodbye!\n");
  64. Console.WriteLine(BAN.PadLeft(60, '='));
  65. Environment.Exit(0);
  66. }
  67. }
  68. }
  69. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement