include[HTML_REMOVED]
include[HTML_REMOVED]
include[HTML_REMOVED]
include[HTML_REMOVED]
include[HTML_REMOVED]
include[HTML_REMOVED]
include[HTML_REMOVED]
include[HTML_REMOVED]
include[HTML_REMOVED]
include[HTML_REMOVED]
include [HTML_REMOVED]
using namespace std;
void x(const string c) {
size_t len = c.size();
for(int i = 0; i < c.size(); i++) {
cout << c[i];
usleep(30000);
}
}
void color(int a) {
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),a);
}
long long xl=100,jb=1,gj=1,fy=1,zdsm=100,q=100,j=1,n,a,sans;
int main() {
system(“cls”);
color(6);
x(“迷”);
sleep(1);
x(“雾”);
sleep(1);
x(“工”);
sleep(1);
x(“作”);
sleep(1);
x(“室”);
sleep(1);
x(“出”);
sleep(1);
x(“品”);
sleep(1);
system(“cls”);
sleep(1);
color(6);
x(“此为迷雾工作室所编的游戏:《打怪小游戏》,请大家多点赞,多评论。”);
cout<[HTML_REMOVED]>n;
if (n==1) {
system(“cls”);
x(“1小刀 +10攻击 8元”);
cout<[HTML_REMOVED]>a;
if (a==1) {
if (q>=8) {
gj+=10;
q-=8;
system(“cls”);
x(“此游戏开发中······”);
cout<[HTML_REMOVED]>sans;
system(“cls”);
x(“此游戏开发中······”);
cout<[HTML_REMOVED]=14) {
fy+=10;
q-=14;
system(“cls”);
x(“此游戏开发中······”);
cout<[HTML_REMOVED]>sans;
system(“cls”);
x(“此游戏开发中······”);
cout<[HTML_REMOVED]=15) {
zdsm+=10;
q-=15;
system("cls");
x("此游戏开发中······");
cout<<endl;
x("200级过关");
cout<<endl;
cout<<jb;
x("级");
cout<<endl;
x("1商店 2战斗 3回血 ");
cout;
cout<<q;
x("元");
cout;
cout<<zdsm;
x("/");
cout;
cout<<xl;
x(" 攻击");
cout;
cout<<gj;
x(" 防御");
cout;
cout<<fy<<endl;
} else {
cout<<"金币不足"<<endl;
cin>>sans;
system("cls");
x("此游戏开发中······");
cout<<endl;
x("200级过关");
cout<<endl;
cout<<jb;
x("级");
cout<<endl;
x("1商店 2战斗 3回血 ");
cout;
cout<<q;
x("元");
cout;
cout<<zdsm;
x("/");
cout;
cout<<xl;
x(" 攻击");
cout;
cout<<gj;
cout<<fy<<endl;
}
}
}
}
}
if (n==2) {
system("cls");
x("1小怪 2大怪 3小boss 4此怪最好被摧毁");
cout<<endl;
cin>>a;
if (a==1) {
xl=xl-10/gj/fy;
if (xl<=0) {
cout<<"你死了"<<endl;
return 0;
}
system("cls");
j++;
x("此游戏开发中······");
cout<<endl;
x("200级过关");
cout<<endl;
cout<<jb;
x("级");
cout<<endl;
x("1商店 2战斗 3回血 ");
cout;
cout<<q;
x("元");
cout;
cout<<zdsm;
x("/");
cout;
cout<<xl;
x(" 攻击");
cout;
cout<<gj;
x(" 防御");
cout;
cout<<fy<<endl;
}
if (a==2) {
xl=xl-100/gj/fy;
if (xl<=0) {
cout<<"你死了"<<endl;
return 0;
}
system("cls");
j+=2;
x("此游戏开发中······");
cout<<endl;
x("200级过关");
cout<<endl;
cout<<jb;
x("级");
cout<<endl;
x("1商店 2战斗 3回血 ");
cout;
cout<<q;
x("元");
cout;
cout<<zdsm;
x("/");
cout;
cout<<xl;
x(" 攻击");
cout;
cout<<gj;
x(" 防御");
cout;
cout<<fy<<endl;
}
if (a==3) {
xl=xl-305/gj/fy;
if (xl<=0) {
cout<<"你死了"<<endl;
return 0;
}
system("cls");
j+=5;
x("此游戏开发中······");
cout<<endl;
x("200级过关");
cout<<endl;
cout<<jb;
x("级");
cout<<endl;
x("1商店 2战斗 3回血 ");
cout;
cout<<q;
x("元");
cout;
cout<<zdsm;
x("/");
cout;
cout<<xl;
x(" 攻击");
cout;
cout<<gj;
x(" 防御");
cout;
cout<<fy<<endl;
}
if (a==4) {
system("cls");
x("你不该来这里···");
cout<<endl;
x("存档丢失···");
cout;
if (j==1&&gj==11&&zdsm==100&&fy==10) {
cout<<"你赢了";
return 0;
} else {
x("你死了");
cout;
return 0;
}
}
}
if (n==3) {
if (q>=2) {
q-=2;
xl=zdsm;
x("此游戏开发中······");
cout<<endl;
x("200级过关");
cout<<endl;
cout<<jb;
x("级");
cout<<endl;
x("1商店 2战斗 3回血 ");
cout;
cout<<q;
x("元");
cout;
cout<<zdsm;
x("/");
cout;
cout<<xl;
x(" 攻击");
cout;
cout<<gj;
x(" 防御");
cout;
cout<<fy<<endl;
} else {
cout<<"金币不足"<<endl;
cin>>sans;
system("cls");
x("此游戏开发中······");
cout<<endl;
x("200级过关");
cout<<endl;
cout<<jb;
x("级");
cout<<endl;
x("1商店 2战斗 3回血 ");
cout;
cout<<q;
x("元");
cout;
cout<<zdsm;
x("/");
cout;
cout<<xl;
x(" 攻击");
cout;
cout<<gj;
x(" 防御");
cout;
cout<<fy<<endl;
}
}
}
cout<<"你赢了!!";
}