TextRPG(3)
-
[C++] 내가 만든 선택지형 textRPG
#include #include #include #include #include #include using namespace std; // 구조체 선언부 struct Game; struct Player; struct Inventory; enum Job { Warrior = 1, // 전사 Wizard = 2, // 마법사 Archer = 3, // 궁수 Thief = 4, // 도적 Pirate = 5 // 해적 }; enum Mon { slime = 01,// 슬라임 dragon = 02,// 드래곤 gargoyle = 03,// 가고일 giant = 04,// 거인 zombie = 05,// 좀비 kraken = 06,// 크라켄 medusa = 07 // 메두사 }; enum Vill { hotel..
2022.06.20 -
[C++] 추리게임 오프닝 만들기
#include #include #include using namespace std; void SetColor(int colorNumber) { SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), colorNumber); } struct Detective { string name; int inspriation; int healthGage; int maxHealthGage; void SetProfile() { system("cls"); cout
2022.06.16 -
[C++] 게임 오프닝 만들기
#include #include using namespace std; // 구조체 선언부 struct Player; struct Warrior; struct Wizard; void Opening(); void Start(); // 구조체 정의부 struct Player { string name; int hp; int atk; string job; }; struct Warrior : Player { Warrior(); Warrior(string _name, int _hp, int _atk, string _job); void ShowInfo(); }; struct Wizard : Player { Wizard(); Wizard(string _name, int _hp, int _atk, string _job);..
2022.06.16