|
|
|
 |
|
Console.WriteLine("1.전투 시작");
Console.WriteLine("2.상점");
Console.WriteLine("4. 종료");
Console.WriteLine("게임 종료");
Console.WriteLine("===전투=== ");
Console.WriteLine();
Console.WriteLine("1. 공격");
Console.WriteLine("3.도망");
텍스트RPG 게임만들기
C#텍스트RPG 만들기
Class Gam eController
MainLoop에 추가
오류나는 부분m bExit 수정
MainLoop 실행작성
코드 형태만 달라.. |
|
 |
console, writeline, hp, tostring, 입력, mname, 이름, 플레이어, string, at, form, 체력, 력, 부분, mplayer, if, 작성, gam, econtroller, mhp |
|
|
|
|
 |
|
Console.WriteLine("1.전투 시작");
Console.WriteLine("2.상점");
Console.WriteLine("4. 종료");
Console.WriteLine("게임 종료");
Console.WriteLine("===전투=== ");
Console.WriteLine();
Console.WriteLine("1. 공격");
Console.WriteLine("3.도망");
텍스트RPG 게임만들기
C#텍스트RPG 만들기
Class Gam eController
MainLoop에 추가
오류나는 부분m bExit 수정
MainLoop 실행작성
코드 형태만 달라.. |
|
 |
console, writeline, hp, tostring, 입력, mname, 이름, 플레이어, string, at, form, 체력, 력, 부분, mplayer, if, 작성, gam, econtroller, mhp |
|
|
|
|
 |
|
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 |
|
|
|
|
 |
|
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 |
|
|
|
|
 |
|
Console.WriteLine("2.상점");
Console.WriteLine("4. 종료");
Console.WriteLine("게임 종료");
Console.WriteLine("===전투=== ");
Console.WriteLine();
Console.WriteLine("1. 공격");
Console.WriteLine("3.도망");
if(!monster.IsA ive())
C#텍스트RPG 만들기
stringplayerName=Console.ReadLine();// 플레이어 이름을 입력
유저의 입력을 처리하는 상태 부분
Console.WriteLine("===로비=== ");
Cons.. |
|
 |
console, writeline, hp, 력, 이름, 체력, tostring, mname, monster, 플레이어, 입력, form, at, string, if, true, 캐릭터, 공격, 방어, mplayer |
|
|
|
|
 |
|
Console.WriteLine("2.상점");
Console.WriteLine("4. 종료");
Console.WriteLine("게임 종료");
Console.WriteLine("===전투=== ");
Console.WriteLine();
Console.WriteLine("1. 공격");
Console.WriteLine("3.도망");
if(!monster.IsA ive())
C#텍스트RPG 만들기
stringplayerName=Console.ReadLine();// 플레이어 이름을 입력
유저의 입력을 처리하는 상태 부분
Console.WriteLine("===로비=== ");
Cons.. |
|
 |
console, writeline, hp, 력, 이름, 체력, tostring, mname, monster, 플레이어, 입력, form, at, string, if, true, 캐릭터, 공격, 방어, mplayer |
|
|
|
|
 |
|
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, 공격, 방어 |
|
|
|
|
|
 |
1 |
 |
|
|
|