Advertisement
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;
- namespace ConsoleApplication3
- {
- class Initiation //Pre-game stuff - Character name, class and game difficulty
- {
- static void characterCreation()
- {
- Console.WriteLine("Please enter your name: ");
- string name = Console.ReadLine();
- Console.WriteLine("\nWelcome " + name + "!");
- Console.WriteLine("Please select a class:\n1. Warrior - Bonus damage with melee weapons, average health.\n2. Ranger - Reduced health, bonus damage with ranged weapons.\n3. Paladin - Low damage, bonus to health and armor.");
- int cclass = Convert.ToInt32(Console.ReadLine());
- switch (cclass)
- {
- case 1:
- Console.WriteLine("You have chosen to be a Warrior, " + name + "!");
- break;
- case 2:
- Console.WriteLine("You have chosen to be a Ranger, " + name + "!");
- break;
- case 3:
- Console.WriteLine("You have chosen to be a Paladin, " + name + "!");
- break;
- default:
- Console.WriteLine("Incorrect entry, please enter 1, 2 or 3!");
- break;
- }
- Initiation.difficultyMenu();
- }
- static void difficultyMenu()
- {
- Console.WriteLine("Please select a difficulty:\n1. Easy\n2. Medium\n3. Hard");
- int diff = Convert.ToInt32(Console.ReadLine());
- switch (diff)
- {
- case 1:
- Console.WriteLine("You have selected easy difficulty!");
- break;
- case 2:
- Console.WriteLine("You have selected medium difficulty!");
- break;
- case 3:
- Console.WriteLine("You have selected hard difficulty!");
- break;
- default:
- Console.WriteLine("Incorrect entry! Please enter either 1, 2 or 3!");
- break;
- }
- }
- static void Main(string[] args)
- {
- Console.WriteLine("Main Menu");
- Console.WriteLine("1. Play Game");
- Console.WriteLine("2. Exit");
- int choice = Convert.ToInt32(Console.ReadLine());
- switch (choice)
- {
- case 1:
- characterCreation();
- break;
- case 3:
- Environment.Exit(0);
- break;
- default:
- Console.WriteLine("Incorrect entry, please enter 1 or 2!");
- break;
- }
- Console.ReadLine();
- }
- }
- class Game //Actual game
- {
- static void gameStart()
- {
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement