- BC20270003's blog
无心之举
- 2025-3-23 14:59:21 @
#include<bits/stdc++.h>
#include<time.h>
#include<windows.h>
using namespace std;
int know=0,cnt=0,x=50,y=50,rw=0;
string a[101]={
"******************************** ******************************** ",
" * * * * ",
" * * * * ",
" * * * * ",
" * * * * ",
" * * * * ",
" * * * * ",
" * * * * ",
" * * * * ",
" * * * * ",
" * * * * ",
" * * * * ",
" * * * * ",
" * * * * ",
" * * * * ",
" * * * * ",
" * * * * ",
" * * * * ",
" * * * * ",
" * * * * ",
" * * * * ",
" * * * * ",
" * * * * ",
" * * * * ",
" * * * * ",
" * * * * ",
" * * * * ",
" * * * * ",
" * * * * ",
" * * * * ",
" * * * * ",
" *************** *************** *************** **************** ",
" ",
" ",
" *************** **************** ",
" * * ",
" * * ",
" * * ",
" * * ",
" * * ",
" * * ",
" * * ",
" * * ",
" * * ",
" * * ",
" * * ",
" * * ",
" * * ",
" * * ",
" * * ",
" * * ",
" * * ",
" * * ",
" * * ",
" * * ",
" * * ",
" * * ",
" * * ",
" * * ",
" * * ",
" * * ",
" * * ",
" * * ",
" * * ",
" * * ",
" *************** *************** ",
" ",
" ",
" *************** *************** *************** *************** ",
" * * * * ",
" * * * * ",
" * * * * ",
" * * * * ",
" * * * * ",
" * * * * ",
" * * * * ",
" * * * * ",
" * * * * ",
" * * * * ",
" * * * * ",
" * * * * ",
" * * * * ",
" * * * * ",
" * * * * ",
" * * * * ",
" * * * * ",
" * * * * ",
" * * * * ",
" * * * * ",
" * * * * ",
" * * * * ",
" * * * * ",
" * * * * ",
" * * * * ",
" * * * * ",
" * * * * ",
" * * * * ",
" * * * * ",
" * * * * ",
"** ******************************** **************************"};
void slowout(char p){
while(1){
if(p!=0)printf("%c",p++);
else break;
Sleep(5);
}
}
void SetPos(int x,int y){
COORD pos;
pos.X=y2,pos.Y=x;
SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE),pos);
}
int js(int x,int y){
if(0<=x&&x<=31){
if(y<=31)return 1;
else if(34<=y&&y<=65)return 2;
else if(y>=68)return 3;
}else if(34<=x&&x<=65){
if(y<=31)return 4;
else if(y>=68)return 5;
}else if(68<=x&&x<=99){
if(y<=31)return 6;
else if(34<=y&&y<=65)return 7;
else if(y>=68)return 8;
}
return 0;
}
void game1(){
Sleep(1000);
slowout("你TM好啊!来领乐器的吧?\n");
slowout("1、新年好!\n");
slowout("2、是的\n");
slowout("注:以第二次为准\n");
string c;cin>>c;
int p;cin>>p;
if(p1){
slowout("操你妈!\n");
system("pause");
system("cls");
return;
}else if(p2){
slowout("好~那,开始吧!这里一共10种乐器,你随机拿一个,拿对了,就可以走啦!\n");
slowout("请输入你要拿第几个乐器:");
cin>>p;int tmp=rand()%10+1;
if(p20270003){
slowout("开始调试吧?\n");
rw=-1;
system("pause");
system("cls");
return;
}
if(ptmp){
slowout("\n霍!看到了吗?\n");
}else{
slowout("好吧,游戏……开始!\n");
}
}else if(p2){
slowout("显然,这个名字很好听啊?\n");
slowout("1、是……这样吗?\n");
slowout("2、是……这样吗?\n");
slowout("3、是……这样吗?\n");
int kkk;cin>>kkk;
if(kkk1||kkk2||kkk3){
slowout("那可不!\n");
}
if(kkk20270003){
slowout("额……其实一号楼的那位叫H,奇怪不?\n");
}
system("pause");
system("cls");
return;
}
system("pause");
system("cls");
slowout("首先竟然对了!走吧!\n");
slowout("去空地演奏吧!!\n");
rw=-1;
}else{
slowout("菜,就多练!\n");
slowout("是:第");
Sleep(200);
cout<<tmp;
slowout("个!\n");
}
system("pause");
system("cls");
}else{
slowout("吃鸡吧!\n");
system("pause");
system("cls");
return;
}
}
void game_1(){
slowout("你……拿到乐器了,对吧?\n");
system("pause");
system("cls");
slowout("现在,开始演奏吧?\n");
system("pause");
system("cls");
slowout("等下我会把谱子告诉你,你需要在十秒钟内背完,然后输出哦?\n");
system("pause");
system("cls");
slowout("背诵……开始!\n");
int rd=rand()%31+10;
string ans,gbt;
for(int i=1;i<=rd;++i){
char p=(char)(rand()%26+'A');
ans+=p;
}
cout<<ans<<endl;
Sleep(10000);
system("cls");
slowout("现在,开始输出吧!\n");
cin>>gbt;
if(ans==gbt){
slowout("你好牛逼啊!!\n");
slowout("现在,去二号楼放松一下吧!\n");
rw=2;
}else{
slowout("菜,就多练!\n");
}
system("pause");
system("cls");
}
int yu,fang,shan,quan[6],ji[6],ma[6],zhu[6],chuo[6],dian[6],ha,shuai,fei[3],jiao[3],zhan[3],sg=0;
void game2(){
slowout("你好我是二号楼的理!你是来放松的吧?\n");
slowout("1、是\n");
slowout("2、什么勾八名字?\n");
slowout("注:以第二次为准\n");
string c;cin>>c;
int p;cin>>p;
if(p1){
slowout("ok!\n");
slowout("首先,我们的这个游戏呢……叫储器,你需要规则吗?\n");
slowout("1、显然啊!\n");
slowout("2、不用,我了解\n");
int kkk;cin>>kkk;
if(kkk1){
system("start http://hfoj.net/blog/1981/6781d1ce94662a9af6991db8#1736561102774");
system("start http://10.80.74.11/blog/1981/6781d1ce94662a9af6991db8#1736561102774");
slowout("发你了就是首先\n");
slowout("啊!串台了。你现在需要进行一轮训练:击杀一个有20个钟的靶子,对方每回合都会举报你(乐)。\n");
slowout("同时,你不可以绝杀,它被禁了(悲)\n");
system("pause");
system("cls");
int dz=20,dd=0;
while(dz+dd>0){
cout<<"这回合,你可以:"<<endl;
cout<<"1、玉"<<endl;
cout<<"2、防"<<endl;
cout<<"3、闪"<<endl;
cout<<"4、甩剑"<<endl;
if(yu>=3){
cout<<"5、重拳"<<endl;
}
if(quan[1]>=2){
cout<<"6、天地"<<endl;
}
if(quan[2]>=2){
cout<<"7、无相"<<endl;
}
if(yu>=2&&fang>=2){
cout<<"8、暴击"<<endl;
}
if(ji[1]>=2){
cout<<"9、重击"<<endl;
}
if(ji[2]>=2){
cout<<"10、痛击"<<endl;
}
if(quan[3]>=1||ji[3]>=1){
cout<<"11、马丁"<<endl;
}
if(ma[1]1){
cout<<"12、百变马丁"<<endl;
}
if(yu>=2){
cout<<"13、小猪"<<endl;
}
if(zhu[1]>=2){
cout<<"14、中猪"<<endl;
}
if(zhu[2]>=2){
cout<<"15、大猪"<<endl;
}
if(zhu[3]>=1){
cout<<"16、吴猪"<<endl;
}
if(zhu[4]1){
cout<<"17、聪明吴猪"<<endl;
}
if(yu>=1){
cout<<"18、戳"<<endl;
}
if(chuo[1]>=2){
cout<<"19、千年"<<endl;
}
if(chuo[2]1){
cout<<"20、万年"<<endl;
}
if(chuo[3]1){
cout<<"21、亿年"<<endl;
}
if(shan>=3){
cout<<"22、小电"<<endl;
}
if(dian[1]>=2){
cout<<"23、中电"<<endl;
}
if(dian[2]>=2){
cout<<"24、大电"<<endl;
}
if(dian[3]1){
cout<<"25、雷神"<<endl;
}
if()
}
}
void game(){
if(know0){
if(cnt0){
SetPos(20,18),cout<<"空地"<<endl;
}else{
SetPos(20,18),cout<<cnt<<" 号楼"<<endl;
}
know=1;
Sleep(1000);
system("cls");
}
while(rwcnt||(cnt0&&rw<0)){
if(rw1)game1();
else if(rw-1)game_1();
else if(rw==2)game2();
}
while(true){
if(GetAsyncKeyState(77)&0x8000&&x!=0){
cout<<" ******** "<<endl;
cout<<" * * * * "<<endl;
cout<<" * * * * "<<endl;
cout<<"一号楼 二号楼 三号楼"<<endl;
cout<<" * * * * "<<endl;
cout<<" * * * * "<<endl;
cout<<"门 门 门"<<endl;
cout<<" "<<endl;
cout<<"门 门"<<endl;
cout<<" * * "<<endl;
cout<<" * * "<<endl;
cout<<"四号楼 五号楼"<<endl;
cout<<" * * "<<endl;
cout<<" * * "<<endl;
cout<<"门 门"<<endl;
cout<<" "<<endl;
cout<<"门 门 门"<<endl;
cout<<" * * * * "<<endl;
cout<<" * * * * "<<endl;
cout<<"六号楼 七号楼 八号楼"<<endl;
cout<<" * * * * "<<endl;
cout<<" * * * * "<<endl;
cout<<" ******** ********"<<endl;
cout<<" "<<endl;
cout<<endl<<endl;;
cout<<"按WDSA可以移动"<<endl;
Sleep(100);
system("cls");
continue;
}
if(GetAsyncKeyState(87)&0x8000&&x!=0){
if(a[x-1][y]!='')x--;
}
if(GetAsyncKeyState(83)&0x8000&&x!=99){
if(a[x+1][y]!='')x++;
}
if(GetAsyncKeyState(65)&0x8000&&y!=0){
if(a[x][y-1]!='')y--;
}
if(GetAsyncKeyState(68)&0x8000&&y!=99){
if(a[x][y+1]!='')y++;
}
int tmp=js(x,y);
if(cnt!=js(x,y)){
cnt=js(x,y);know=0;
return;
}
int cntx=x-20,cnty=y-40;//偏移率
for(int i=0;i<40;++i){
for(int j=0;j<80;++j){
int nx=i+cntx,ny=j+cnty;
if(nx<0||ny<0||nx>=100||ny>=100)cout<<" ";
else cout<<a[nx][ny];
}
if(i!=39)cout<<endl;
}
SetPos(20,20),cout<<"#";
Sleep(10);
system("cls");
}
}
int main(){
srand(time(0));
CONSOLE_CURSOR_INFO cursor_info={1,0};
SetConsoleCursorInfo(GetStdHandle(STD_OUTPUT_HANDLE),&cursor_info);
system("mode con cols=80 lines=40");
slowout("无心之举\n");
slowout(" ——CMY\n");
system("pause");
system("cls");
slowout("0:额……这里……是哪啊…………\n");
slowout("0:为什么……脑子这么晕啊……\n");
system("pause");
system("cls");
slowout("演出开始!你又在等什么呢?\n");
slowout("1:我的乐器呢??!\n");
slowout("2:你他妈是谁???\n");
int tmp;cin>>tmp;
if(tmp1){
slowout("咳咳……请你到 1 号楼领取乐器\n");
}else if(tmp2){
slowout("额……请文明一点,请到 1 号楼领取乐器\n");
slowout("还有,我叫K\n");
}else{
slowout("你……好牛逼啊!\n");
Sleep(2000);
while(true)malloc(114514);
}
system("pause");
system("cls");
rw=1;
slowout("哦,对了。由于你是初来乍到,所以你按 M 可以看规则与地图\n");
system("pause");
system("cls");
while(true)game();
return 0;
}