Skip to content

Commit

Permalink
#2 feat: 처음 화면으로 이동하는 기능 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
juyonLee00 committed Aug 23, 2023
1 parent e29f8b1 commit 1c4961c
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion DungeonConsole/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,13 @@ class MainClass
static bool changeDef = false;
static int DGclearNum = 0;


public static void Main(string[] args)
{
DisplayGameStart();
}


static void DisplayGameStart()
{
Console.Clear();
Expand Down Expand Up @@ -51,6 +53,8 @@ static void DisplayGameStart()

}


//저장된 데이터를 가져오는 함수
static void LoadSaveData()
{
Console.Clear();
Expand Down Expand Up @@ -135,6 +139,7 @@ static void LoadSaveData()



//초기 데이터 세팅
static void GameDataSetting()
{
PlayerDataSetting();
Expand Down Expand Up @@ -167,6 +172,7 @@ static void ItemDataSetting()



//게임 시작 화면
static void DisplayGameIntro()
{
Console.Clear();
Expand All @@ -192,12 +198,18 @@ static void DisplayGameIntro()
Console.ForegroundColor = ConsoleColor.DarkCyan;
Console.WriteLine("6. 저장");
Console.ResetColor();
Console.ForegroundColor = ConsoleColor.DarkMagenta;
Console.WriteLine("0. 처음 화면으로 이동");
Console.ResetColor();
Console.WriteLine();
Console.WriteLine("원하시는 행동을 입력해주세요.");

int input = CheckValidInput(1, 6);
int input = CheckValidInput(0, 6);
switch (input)
{
case 0:
DisplayGameStart();
break;
case 1:
DisplayMyInfo();
break;
Expand Down

0 comments on commit 1c4961c

Please sign in to comment.