資源簡(jiǎn)介
這是作者自己編的一個(gè)小游戲----絕對(duì)原創(chuàng)
不過(guò)里面有些小部分是再別的奆佬的代碼的基礎(chǔ)上改的
具體可以看簡(jiǎn)介
已出多個(gè)版本
如發(fā)現(xiàn)bug或有問(wèn)題請(qǐng)聯(lián)系作者
其他東西具體見(jiàn)里面的說(shuō)明
代碼片段和文件信息
#include
#include
#include
#define?cls?system(“cls“)
#define?pause?system(“pause“)
using?namespace?std;
const?int?N=100;
bool?ulk;
int?x;
string?s;
/*
*/
void?gotoXY(int?x?int?y)?{
COORD?pos;
pos.X=x;
pos.Y=y;
SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE)?pos);
}
void?print(string?sao){
for(int?i=0;i cout< Sleep(50);
}
}
void?color(int?a){?//改變輸出的顏色,比system(“color?x“)快得多
????SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE)a);
????/*
????yle=“white-space:pre“>????字
????????1???深藍(lán)色
????????2???深綠色
????????3???深青色
????????4???深紅色
????????5???深粉色
????????6???黃色
????????7???深白色
????????8???灰色
????????9???淺藍(lán)色
????????10??淺綠色
????????11??淺青色
????????12??淺紅色
????????13??淺粉色
????????14??淺黃色
????????15??淺白色
????????背景
????????1~15????????黑色
????????16~31???????深藍(lán)色
????????32~47???????深綠色
????????48~63???????深青色
????????64~79???????深紅色
????????80~95???????深粉色
????????96~111??????深黃色
????????112~127?????深白色
????????128~143?????灰色
????????144~159?????淺藍(lán)色
????????160~175?????淺綠色
????????176~191?????淺青色
????????192~207?????淺紅色
????????208~223?????淺粉色
????????224~239?????淺黃色
????????240~255?????淺白色
????*/
}
void?C_D_B(){//拿充電寶?
cls;
print(“現(xiàn)在你拿著手電筒緩慢的向前走\(yùn)n“);
print(“你的手機(jī)沒(méi)電了\n“);
print(“你特別的慌\n“);
print(“但為了腐chiu“);
gotoXY(63);?
print(“求救要找到這里唯一的充電寶\n“);
pause;
cls;
print(“你轉(zhuǎn)了一圈,終于發(fā)現(xiàn)了一個(gè)充電寶,但是需要掃二維碼\n“);
print(“這樣的充電寶要你有何用!!!\n“);
print(“沒(méi)辦法,劇情還要繼續(xù)(除非你直接退出)\n“);
gotoXY(202);
printf(“???????????????????????????\n“);
cls;?
print(“但是這個(gè)充電寶的設(shè)計(jì)師真的喪心病狂\n“);
print(“不是我\n“);
gotoXY(01);
print(“在這個(gè)二維碼旁邊有一串字符,好像是密碼\n“);
print(“你要不要去看\n“);
print(“1.嘗試解密;2.不管\n“);
scanf(“%d“&x);
if(x==2){
cls;
print(“剛好有個(gè)黑衣人經(jīng)過(guò),你只好想他求助,幫你解鎖充電寶\n“);
print(“你的手機(jī)又有電了\n“);
print(“但是,你的手機(jī)被他做了手腳\n“);
print(“【短信】您已成功安裝應(yīng)用:倒忌時(shí)\n“);
ulk=1;
return;
}
print(“你看到了加密密碼,解開(kāi)吧:Good?luck?to?you!\n“);
getline(cins);
if(s!=“Hppe?mvdl?up?zpv“){
cls;
print(“你解錯(cuò)了,一個(gè)黑衣人走了過(guò)來(lái)\n“);
print(“剛你只好想他求助,幫你解鎖充電寶\n“);
print(“你的手機(jī)又有電了\n“);
print(“但是,你的手機(jī)被他做了手腳\n“);
print(“【短信】您已成功安裝應(yīng)用:倒忌時(shí)\n“);
ulk=1;
return;
}
print(“你拿到了充電寶\n“);
print(“你的手機(jī)又有電了\n“);
print(“但是,你的手機(jī)被他做了手腳\n“);
print(“【短信】您已成功安裝應(yīng)用:倒忌時(shí)\n“);
ulk=1;
}
const?int?qwq=40-2plane=3;
int?m=80-1;
const?char?pl[3]=?{‘/‘‘|‘‘\\‘};
//char?c[n+1][m+1]={‘?‘};
string?c[qwq+1];
int?wqw=qwq-2y=m/2now=1;
int?score=0;
string?sete(int?n)?{
string?s=““;
for(int?i=0;?i s+=‘?‘;
}
return?s;
}
void?start()?{
for(int?i=0;?i c[i]=sete(m);
// c[i][m]=‘\0‘;
}
for(int?i=1;?i>=-1;?i--)?{
c[wqw][y-i]=pl[plane-2-i];
}
}
void?my_rand()?{
int?a=rand()%m;
c[0][a]=‘.‘;
}
void?run_boom()?{
for(int?i=qwq-1;?i>=0;?i--)?{
for(int?j=0;?j if(c[i][j]==‘.‘)?{
c[i][j]=‘?‘;
if(i!=qwq-1)?{
if(c[i+1][j]==‘/‘||c[i+1][j]==‘|‘
?屬性????????????大小?????日期????時(shí)間???名稱(chēng)
-----------?---------??----------?-----??----
?????文件??????37901??2020-09-18?21:12??2-倒忌時(shí)\倒忌時(shí).cpp
?????文件????????218??2020-09-18?21:14??2-倒忌時(shí)\倒忌時(shí)4.0\更新公告.txt
?????文件????1991834??2020-09-18?21:12??2-倒忌時(shí)\倒忌時(shí)4.0\倒忌時(shí)4.0.exe
?????文件????1980570??2020-09-18?21:12??2-倒忌時(shí)\倒忌時(shí)4.0\倒忌時(shí)4.0-無(wú)劇情版.exe
?????文件????????128??2020-09-16?12:45??2-倒忌時(shí)\倒忌時(shí)內(nèi)測(cè)版\更新公告.txt
?????文件????2966813??2020-08-26?21:19??2-倒忌時(shí)\倒忌時(shí)內(nèi)測(cè)版\倒忌時(shí)內(nèi)測(cè)版.exe
?????文件????2966813??2020-08-28?09:53??2-倒忌時(shí)\倒忌時(shí)1.0\倒忌時(shí)1.0.exe
?????文件????????213??2020-08-28?09:56??2-倒忌時(shí)\倒忌時(shí)1.0\更新公告.txt
?????文件????1991834??2020-09-16?12:44??2-倒忌時(shí)\倒忌時(shí)2.0\倒忌時(shí)2.0.exe
?????文件????????189??2020-09-16?12:46??2-倒忌時(shí)\倒忌時(shí)2.0\更新公告.txt
?????文件????1991834??2020-09-16?12:44??2-倒忌時(shí)\倒忌時(shí)3.0\倒忌時(shí)3.0.exe
?????文件????????567??2020-09-18?20:38??2-倒忌時(shí)\倒忌時(shí)3.0\更新公告.txt
?????文件????1980570??2020-09-18?20:24??2-倒忌時(shí)\倒忌時(shí)3.0\倒忌時(shí)3.0-無(wú)劇情版.exe
?????目錄??????????0??2020-09-16?12:44??2-倒忌時(shí)\倒忌時(shí)4.0
?????目錄??????????0??2020-08-26?21:10??2-倒忌時(shí)\倒忌時(shí)內(nèi)測(cè)版
?????目錄??????????0??2020-08-28?09:54??2-倒忌時(shí)\倒忌時(shí)1.0
?????目錄??????????0??2020-09-16?12:44??2-倒忌時(shí)\倒忌時(shí)2.0
?????目錄??????????0??2020-09-16?12:44??2-倒忌時(shí)\倒忌時(shí)3.0
?????目錄??????????0??2020-08-21?18:25??2-倒忌時(shí)
-----------?---------??----------?-----??----
?????????????15909484????????????????????19
- 上一篇:XX游戲客戶(hù)端源碼
- 下一篇:funcode黃金礦工(C語(yǔ)言)
評(píng)論
共有 條評(píng)論