|
|
|
 |
|
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. ToS.. |
|
 |
tostring, console, writeline, i, mmax, 경험치, 아이템, mp, at, form, string, minventroy, hp, 최대, 값, exp, nventroy, mi, 마나, 변경 |
|
|
|
|
 |
|
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. ToS.. |
|
 |
tostring, console, writeline, i, mmax, 경험치, 아이템, mp, at, form, string, minventroy, hp, 최대, 값, exp, nventroy, mi, 마나, 변경 |
|
|
|
|
 |
|
Console.WriteLine("잘못된 경험치값입니다");
Console.WriteLine("잘못된 골드값입니다.");
Console.WriteLine("===로비=== ");
Console.WriteLine("4. 종료");
Console.WriteLine("===전투=== ");
Console.WriteLine();
Console.WriteLine("1. 공격");
Console.WriteLine("3.도망");
C#텍스트RPG 만들기
Class Gam eController
privateintmLevel;//플레이어 레벨
mMax Hp=5*mLevel+5;//최대 MP값 변경
mHP.. |
|
 |
console, writeline, tostring, 경험치, 력, hp, mmax, 골드, form, at, string, 값, 이름, 체력, 최대, 플레이어, mp, exp, 공격, 방어 |
|
|
|
|
 |
|
Console.WriteLine("잘못된 경험치값입니다");
Console.WriteLine("잘못된 골드값입니다.");
Console.WriteLine("===로비=== ");
Console.WriteLine("4. 종료");
Console.WriteLine("===전투=== ");
Console.WriteLine();
Console.WriteLine("1. 공격");
Console.WriteLine("3.도망");
C#텍스트RPG 만들기
Class Gam eController
privateintmLevel;//플레이어 레벨
mMax Hp=5*mLevel+5;//최대 MP값 변경
mHP.. |
|
 |
console, writeline, tostring, 경험치, 력, hp, mmax, 골드, form, at, string, 값, 이름, 체력, 최대, 플레이어, mp, exp, 공격, 방어 |
|
|
|
|
 |
|
Console.WriteLine("잘못된 경험치값입니다");
Console.WriteLine("잘못된 골드값입니다.");
Console.WriteLine("===로비=== ");
Console.WriteLine("4.여관가기");
Console.WriteLine("5. 종료");
Console.WriteLine("===여관=== ");
Console.WriteLine();
Console.WriteLine("여관을 나갑니다");
Class Program
C#텍스트RPG 만들기
InnLoop를 추가를 통해 서 로비를 따로 추가
여관을 들어와서 이용하는 .. |
|
 |
console, writeline, tostring, 경험치, 골드, mp, mmax, 값, 여관, hp, 플레이어, 입력, 력, 최대, exp, if, string, command, 출력, 이름 |
|
|
|
|
 |
|
Console.WriteLine("잘못된 경험치값입니다");
Console.WriteLine("잘못된 골드값입니다.");
Console.WriteLine("===로비=== ");
Console.WriteLine("4.여관가기");
Console.WriteLine("5. 종료");
Console.WriteLine("===여관=== ");
Console.WriteLine();
Console.WriteLine("여관을 나갑니다");
Class Program
C#텍스트RPG 만들기
InnLoop를 추가를 통해 서 로비를 따로 추가
여관을 들어와서 이용하는 .. |
|
 |
console, writeline, tostring, 경험치, 골드, mp, mmax, 값, 여관, hp, 플레이어, 입력, 력, 최대, exp, if, string, command, 출력, 이름 |
|
|
|
|
 |
|
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.도망");
아이템 사용 시 hp가 채워지는 부분 내용 추가
PlayerInventory 내용 추가
privateintm.. |
|
 |
console, tostring, writeline, 경험치, mmax, 값, at, string, form, hp, mp, 골드, player, 최대, i, exp, 추가, 변경, monster, 마나 |
|
|
|
|
 |
|
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.도망");
아이템 사용 시 hp가 채워지는 부분 내용 추가
PlayerInventory 내용 추가
privateintm.. |
|
 |
console, tostring, writeline, 경험치, mmax, 값, at, string, form, hp, mp, 골드, player, 최대, i, exp, 추가, 변경, monster, 마나 |
|
|
|
|
 |
|
Item[] mOriginalItem Ar r;
Console.WriteLine("===상점=== ");
Console.WriteLine("1.구매");
Console.WriteLine("2. 판매");
Console.WriteLine("3.나가기");
Console.WriteLine("상점을 나갑니다.");
Console.WriteLine("잘못된 경험치값입니다");
Console.WriteLine("잘못된 골드값입니다.");
상점에서 보여주는 부분 추가(연결)
상점 판매 할 아이템 추가
Item[] mOriginalItem Ar r;
mOriginalItem A.. |
|
 |
i, console, t, r, writeline, ar, tostring, moriginalitem, string, form, at, mmax, mp, 값, 경험치, if, name, hp, nventroy, mi |
|
|
|
|
 |
|
Item[] mOriginalItem Ar r;
Console.WriteLine("===상점=== ");
Console.WriteLine("1.구매");
Console.WriteLine("2. 판매");
Console.WriteLine("3.나가기");
Console.WriteLine("상점을 나갑니다.");
Console.WriteLine("잘못된 경험치값입니다");
Console.WriteLine("잘못된 골드값입니다.");
상점에서 보여주는 부분 추가(연결)
상점 판매 할 아이템 추가
Item[] mOriginalItem Ar r;
mOriginalItem A.. |
|
 |
i, console, t, r, writeline, ar, tostring, moriginalitem, string, form, at, mmax, mp, 값, 경험치, if, name, hp, nventroy, mi |
|
|
|
|
 |
|
Console.WriteLine("===상점=== ");
Console.WriteLine("1.구매");
Console.WriteLine("3.나가기");
Console.WriteLine("잘못된 경험치값입니다");
Console.WriteLine("잘못된 골드값입니다.");
Console.WriteLine("5. 종료");
Console.WriteLine("===여관=== ");
Console.WriteLine();
C#텍스트RPG 만들기
배열값 추가
상점 부분 연결 추가
상점 연결만 테스트
상점 열거형 내용 추가
mOriginalItem Ar r[0.. |
|
 |
console, writeline, i, tostring, r, ar, hp, string, mp, mmax, form, at, t, 값, if, moriginalitem, 경험치, 플레이어, command, 변경 |
|
|
|
|
 |
|
Console.WriteLine("===상점=== ");
Console.WriteLine("1.구매");
Console.WriteLine("3.나가기");
Console.WriteLine("잘못된 경험치값입니다");
Console.WriteLine("잘못된 골드값입니다.");
Console.WriteLine("5. 종료");
Console.WriteLine("===여관=== ");
Console.WriteLine();
C#텍스트RPG 만들기
배열값 추가
상점 부분 연결 추가
상점 연결만 테스트
상점 열거형 내용 추가
mOriginalItem Ar r[0.. |
|
 |
console, writeline, i, tostring, r, ar, hp, string, mp, mmax, form, at, t, 값, if, moriginalitem, 경험치, 플레이어, command, 변경 |
|
|
|
|
 |
|
Console.WriteLine("5. 종료");
Console.WriteLine("===여관=== ");
Console.WriteLine();
Console.WriteLine("잘못된 경험치값입니다");
Console.WriteLine("잘못된 골드값입니다.");
Console.WriteLine("===전투=== ");
Console.WriteLine("1. 공격");
Console.WriteLine("2.아이템 사용");
Class Program
C#텍스트RPG 만들기
Class BattleController
배틀루프 클래스 잘라내기
배틀 컨트롤러 내용 추가
P.. |
|
 |
console, writeline, 경험치, tostring, 골드, mp, 력, player, mmax, 값, hp, 이름, 최대, 배틀, 플레이어, if, exp, command, 여관, 공격 |
|
|
|
|
 |
|
Console.WriteLine("5. 종료");
Console.WriteLine("===여관=== ");
Console.WriteLine();
Console.WriteLine("잘못된 경험치값입니다");
Console.WriteLine("잘못된 골드값입니다.");
Console.WriteLine("===전투=== ");
Console.WriteLine("1. 공격");
Console.WriteLine("2.아이템 사용");
Class Program
C#텍스트RPG 만들기
Class BattleController
배틀루프 클래스 잘라내기
배틀 컨트롤러 내용 추가
P.. |
|
 |
console, writeline, 경험치, tostring, 골드, mp, 력, player, mmax, 값, hp, 이름, 최대, 배틀, 플레이어, if, exp, command, 여관, 공격 |
|
|
|
|
 |
|
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 |
|
|
|
|
|
|