一款c++rpg游戏
文字剧情游戏
a1:
if(a==0)
{
printf(" ");
slowout("城");
slowout("堡\n");
printf(" ");
slowout("The");
printf(" ");
slowout("castle\n");
printf(" ");
slowout("By:\n");
printf(" ");
slowout("工程师\n\n\n");
printf(" ");
slowout("2.0.3Beta\n\n\n");
for(int ii=1; ii<=2; ii++) {
system("color 20");
system("color 40");
system("color 60");
system("color 80");
system("color 90");
system("color b0");
system("color d0");
system("color 10");
}
system("color 70");
system("cls");
a=1;
slowout("你的名字:");
cin>>name;
if(name=="工程师")
{
slowout("不行,换一个:");
cin>>name;
}
else if(name=="sans")
{
int ac=40;
int x=GetSystemMetrics(SM_CXSCREEN);
int y=GetSystemMetrics(SM_CYSCREEN);
srand(time(0));
while(ac--)
{
SetCursorPos(rand()%x,rand()%y);
Sleep(250);
}
return 0;
}
//部分代码