#include <iostream>
#include <ctime>
#include <cstdlib>
#include <Windows.h>
using namespace std;
void Welcome()
{
cout << "欢迎来到“杀手狙击“小游戏!" << endl;
cout << "我是你的教官-阿尔希!" << endl;
Sleep(3000);
system("cls");
}
int main()
{
srand(time_t(NULL));
int temp;
system("color F2");
SetWindowTextA(GetConsoleWindow(), "杀手狙击");
int attack = 10;
int money = 10;
int hp = 100;
int maxhp = 100;
int defence = 10;
int boss_attack[3][3] = {
{
8,16,32},
{
64,128,256},
{
512,1024,2048}
};
int level = 0;
string boss_name[3][3] = {
{
"日本小兵(1级,0,0)","日本班长(2级,0,1)","日本处长(3级,0,2)"},
{
"日本小官(4级,1,0)","麦克阿瑟(5级,1,1)","日本师长(6级,1,2)"},
{
"艾森豪威尔(7级,2,0)","日本天皇(8级,2,1)","日本国母(9级,2,2)"}
};
string value_level[19] = {
"列兵","上等兵","下士","中士","上士","四级军士长","三级军士长","二级军士长","一级军士长","少尉","中尉","上尉","少校","中校","上校","大校","少将","中将","上将"};
Welcome();
cout << "请输入姓名:";
string name;
cin >> name;
int sum = 0;
system("cls");
cout << "请输入生日:";
int year, month, day;
cin >> year >> month >> day;
system("cls");
cout << "欢迎" << name << "加入!" << endl;
cout << name << "的基本信息:" << endl;
cout << "生日:公元" << year << "年" << month << "月" << day << "日" << endl;
cout << "军衔:" << value_level[level] << endl;
cout << "所属军种:特种兵" << endl;
long long aimy = 0;
Sleep(3000);
system("cls");
while (true)
{
int boss_hp[3][3] = {
{
8,16,32},
{
64,128,256},
{
512,1024,2048}
};
system("cls");
cout << "这是你今天的活动:" << endl;
cout << "1、暗杀2、训练3、买装备4、恢复5、自我欣赏6、加入我们7、质疑教官8、退出游戏" << endl;
int n;
cin >> n;
system(
杀手狙击
最新推荐文章于 2021-07-13 19:56:10 发布