|
|
|
 |
|
Item[] mOriginalItem Ar r;
Console.WriteLine("==========상점========== ");
Console.WriteLine("1.구매");
Console.WriteLine("2. 판매");
Console.WriteLine("3.나가기");
Console.WriteLine("상점을 나갑니다.");
Console.WriteLine("잘못된 경험치값입니다");
Console.WriteLine("잘못된 골드값입니다."); |
|
태그 : |
i, console, t, r, writeline, ar, tostring, moriginalitem, string, form, at, mmax, mp, 값, 경험치, if, name, hp, nventroy, mi |
|
|
|
|
 |
|
Item[] mOriginalItem Ar r;
mOriginalItem Ar r=newItem[3];
mOriginalItem Ar r[0].Name= "회복 포션(소)";
mOriginalItem Ar r[0].Value= 5;
mOriginalItem Ar r[0].ID= 0;
Console.WriteLine("==========상점========== ");
Console.WriteLine("1.구매");
Console.WriteLine("2. 판매"); 텍스트RPG 게임만들기
Class Player
C#텍스트RPG 만들기
내용 추가
내용 수정
구매하는 멤버 선.. |
|
태그 : |
ar, r, t, i, moriginalitem, console, riginalitem, mo, writeline, 텍스트, rpg, name, 포션, 출력, 확인, 만들기, string, if, int, item |
|
|
|
|
 |
|
Console.WriteLine("==========상점========== ");
Console.WriteLine("1.구매");
Console.WriteLine("3.나가기");
Console.WriteLine("잘못된 경험치값입니다");
Console.WriteLine("잘못된 골드값입니다.");
Console.WriteLine("5. 종료");
Console.WriteLine("==========여관========== ");
Console.WriteLine(); |
|
태그 : |
console, writeline, i, tostring, r, ar, hp, string, mp, mmax, form, at, t, 값, if, moriginalitem, 경험치, 플레이어, command, 변경 |
|
|
|
|
 |
|
mMax Hp=5*mLevel+5;//최대 MP값 변경
mMP=mMax MP;//마나값 최대값으로 변경
Console.WriteLine("잘못된 경험치값입니다");
Console.WriteLine("잘못된 골드값입니다.");
Console.WriteLine("잘못된 아이템인 덱스입니다."+itemI ndex.ToString());
Console.WriteLine(string. Form at("MP: {0}/{1}",mMP.ToString(), mMax MP.ToString())) ;//HP: 마나/최대 마나
Console.WriteLine("Level: "+mLevel... |
|
태그 : |
tostring, console, writeline, i, mmax, 경험치, 아이템, mp, at, form, string, minventroy, hp, 최대, 값, exp, nventroy, mi, 마나, 변경 |
|
|
|
|
 |
|
mMax Hp=5*mLevel+5;//최대 MP값 변경
Console.WriteLine("잘못된 경험치값입니다");
Console.WriteLine("잘못된 골드값입니다.");
Console.WriteLine("Gold: "+mGold.ToString()) ;//골드 출력
Console.WriteLine();
Console.WriteLine("1. 공격");
Console.WriteLine("2.아이템 사용");
Console.WriteLine("3.도망"); |
|
태그 : |
console, tostring, writeline, 경험치, mmax, 값, at, string, form, hp, mp, 골드, player, 최대, i, exp, 추가, 변경, monster, 마나 |
|
|
|
|
 |
|
Console.WriteLine("5. 종료");
Console.WriteLine("==========여관========== ");
Console.WriteLine();
Console.WriteLine("잘못된 경험치값입니다");
Console.WriteLine("잘못된 골드값입니다.");
Console.WriteLine("==========전투========== ");
Console.WriteLine("1. 공격");
Console.WriteLine("2.아이템 사용"); |
|
태그 : |
console, writeline, 경험치, tostring, 골드, mp, 력, player, mmax, 값, hp, 이름, 최대, 배틀, 플레이어, if, exp, command, 여관, 공격 |
|
|
|
|
 |
|
Console.WriteLine("잘못된 경험치값입니다");
Console.WriteLine("잘못된 골드값입니다.");
Console.WriteLine("==========로비========== ");
Console.WriteLine("4.여관가기");
Console.WriteLine("5. 종료");
Console.WriteLine("==========여관========== ");
Console.WriteLine();
Console.WriteLine("여관을 나갑니다"); |
|
태그 : |
console, writeline, tostring, 경험치, 골드, mp, mmax, 값, 여관, hp, 플레이어, 입력, 력, 최대, exp, if, string, command, 출력, 이름 |
|
|
|
|
 |
|
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
여관가기 구현
주석해제
메.. |
|
태그 : |
console, writeline, 입력, 이름, 골드, 경험치, monster, 플레이어, if, 력, 출력, mplayer, command, tostring, 커맨드, 텍스트, true, 구현, enum, mexp |
|
|
|
|
 |
|
Console.WriteLine("잘못된 경험치값입니다");
Console.WriteLine("잘못된 골드값입니다.");
Console.WriteLine("==========로비========== ");
Console.WriteLine("4. 종료");
Console.WriteLine("==========전투========== ");
Console.WriteLine();
Console.WriteLine("1. 공격");
Console.WriteLine("3.도망"); |
|
태그 : |
console, writeline, tostring, 경험치, 력, hp, mmax, 골드, form, at, string, 값, 이름, 체력, 최대, 플레이어, mp, exp, 공격, 방어 |
|
|
|
|
 |
|
Console.WriteLine("잘못된 경험치값입니다");
Console.WriteLine("잘못된 골드값입니다.");
Console.WriteLine("4. 종료");
Console.WriteLine("==========전투========== ");
Console.WriteLine();
Console.WriteLine("1. 공격");
Console.WriteLine("3.도망");
Console.WriteLine("승리했습니다."); 텍스트RPG 게임만들기
C#텍스트RPG 만들기
골드 및 경험치 추가
골드 및 경험치 출력 잘라내기
.. |
|
태그 : |
console, writeline, 경험치, 골드, tostring, 이름, 력, hp, 체력, 플레이어, form, at, string, mname, mmax, 획득, 출력, 입력, true, if |
|
|
|
|
|
|