올린글을 확인할 수 있도록 포스팅을 공개로 설정해 주세요.
Console.WriteLine("5. 종료");
mPlayer.Attack(monster);
Console.WriteLine("==========전투========== ");
Console.WriteLine();
Console.WriteLine("1. 공격");
Console.WriteLine("3.도망");
monster.Attack(mPlayer);
if(!mPlayer. IsA ive())

텍스트RPG 게임만들기
Class Player
C#텍스트RPG 만들기
텍스트RPG
여관가기 구현
주석해제
메인 루프에서 커맨드 enum으로 변경
Console.Write("플레이어의 이름을 입력하세요>> ");// 플레이어 이름을 입력하세 요출력
stringplayerName=Console.ReadLine();// 플레이어 이름을 입력
유저의 입력을 처리하는 상태 부분
Console.WriteLine("==========로비========== ");
Console.WriteLine("1.전투 시작");
Console.WriteLine("2.상점");
Console.WriteLine("3.상태보기");
Console.WriteLine("5. 종료");
유저의 입력을 받는 부분
charf irstChar2=input. ToC harAr ray()[0];
if(!int. Try Parse(input, outcommand))
caseeLoby Command.B attle://전투 시작
Console.WriteLine("상점미구현");
caseeLoby Command.Status:
Console.WriteLine("상태 보기 미구현");
if(mbExit)// 만약에 bEx it가 true라면
Console.WriteLine("아이템 사용 미구현");
if(rand 100>= 50)
monster.ShowData();
mPlayer.ShowData();
Console.WriteLine(randval);// 랜덤값출력
if(!mPlayer. IsA ive())
if(!monster.IsA ive())

[pptx/pdf]9 씨샵 프로그래밍 텍스트RPG 9
포스팅 주소 입력
  올린글을 확인할 수 있는 포스팅 주소를 입력해 주세요.
  네이버,다음,티스토리,스팀잇,페이스북,레딧,기타 등 각각 4개(20,000p) 까지 등록 가능하며 총 80,000p(8,000원)까지 적립이 가능합니다.