巨肝!!!941行代码!!!持续更新中
2026-05-10 19:01:16
发布于:浙江
#include<bits/stdc++.h>
#include<Windows.h>
#include<conio.h>
#include<time.h>
using namespace std;
void scout(string s){
for(int i=0;i<s.size();i++){
cout<<s[i];
Sleep(25);
}
Sleep(25);
}
int n_;
void scout_(string s){
for(int i=0;i<s.size();i++){
cout<<s[i];
Sleep(150);
}
Sleep(150);
}
void jz(){
int x=rand()%11;
system("cls");
switch(x){
case 0:
for(int i=1;i<=5;i++){
system("cls");
cout<<"加载中";
scout_("...\n");
}
cout<<"由于作者太菜,所以在逃离或死亡后地图不会复原...\n";
Sleep(1500);
break;
case 1:
for(int i=1;i<=5;i++){
system("cls");
cout<<"加载中";
scout_("...\n");
}
cout<<"如果出了bug,记得上报哦~~~\n";
Sleep(1500);
break;
case 2:
for(int i=1;i<=5;i++){
system("cls");
cout<<"加载中";
scout_("...\n");
}
cout<<"不要乱用fork炸弹啊啊啊!!!\n";
Sleep(1500);
break;
case 3:
for(int i=1;i<=5;i++){
system("cls");
cout<<"加载中";
scout_("...\n");
}
cout<<"令人羡慕的加载速度...\n";
Sleep(1500);
break;
case 4:
for(int i=1;i<=5;i++){
system("cls");
cout<<"加载中";
scout_("...\n");
}
cout<<"咕咕嘎嘎!~!~!~\n";
Sleep(1500);
break;
case 5:
for(int i=1;i<=5;i++){
system("cls");
cout<<"加载中";
scout_("...\n");
}
cout<<"中文与英文状态下的shift+ -效果不一样哦~~~\n";
Sleep(1500);
break;
case 6:
for(int i=1;i<=5;i++){
system("cls");
cout<<"加载中";
scout_("...\n");
}
cout<<"暴力出奇迹,骗分过样例\n";
Sleep(1500);
break;
case 7:
for(int i=1;i<=5;i++){
system("cls");
cout<<"加载中";
scout_("...\n");
}
cout<<"case 1:case 2:case 3:case 4:case 5:...\n";
Sleep(1500);
break;
case 8:
for(int i=1;i<=5;i++){
system("cls");
cout<<"加载中";
scout_("...\n");
}
cout<<"不要再玩这个游戏了!!!(对眼睛不好)\n";
Sleep(1500);
break;
case 9:
for(int i=1;i<=5;i++){
system("cls");
cout<<"加载中";
scout_("...\n");
}
cout<<"为什么听取WA声一片???\n";
Sleep(1500);
break;
}
system("cls");
}
char gc[150][150][150]={
{},
//1
{
"",
" 你醒啦?",
" ^^^^^^^^^^^^",
" ^#########=^",
" ^..........^",
" ^.#####!###^",
" ^.#####$###^",
" ^........$#^",
" ^#####.####^",
" ^#####....#^",
" ^########.#^",
" ^#........#^",
" ^@.######$#^",
" ^^^^^^^^^^^^",
},
//2
{
"",
" 你知道的,这个牢房的墙壁有很多可以击碎的裂缝",
" ^^^^^^^^^^^^",
" ^########%=^",
" ^#.!.....%$^",
" ^!!%..#####^",
" ^!$%.......^",
" ^######%###^",
" ^.......###^",
" ^@%%%%%%%%$^",
" ^^^^^^^^^^^^",
},
//3
{
"",
" 门被锁上了?",
" ^^^^^^^^^^^^^",
" ^[%#######%=^",
" ^!........|#^",
" ^######$....^",
" ^.%%%%%%###%^",
" ^.########$%^",
" ^......#####^",
" ^%$%%%.....@^",
" ^^^^^^^^^^^^^",
},
//4
{
"",
" 看那个金钥匙!",
" ^^^^^^^^^^^^^",
" ^###=#######^",
" ^!$..%%%%%%#^",
" ^%.######%%%^",
" ^..#%%%!%%#$^",
" ^.##%#%%%##!^",
" ^..!%%!!!$%%^",
" ^.!%#%%%%%!]^",
" ^.!!$!!!!!!!^",
" ^.....#.....^",
" ^####...###@^",
},
//5
{
"",
" 前面就是大门!",
" ^^^^^^^^^^^^^^^^^^",
" ^.%%%%%%%########^",
" ^.!#####%#%%%%%##^",
" ^.!#####%#%###%##^",
" ^.!#####%%%#%%%##^",
" ^.!#########%####^",
" ^.!##%%%%%%%%####^",
" ^.!##%###########^",
" ^.!&%%%%%%%%%%%%%^",
" ^.!%############%^",
" ^@!=#$%%%%%%%%%%%^",
" ^^^^^^^^^^^^^^^^^^",
},
//6
{
"",
" 终于出来了!",
" ^^^^^^^^^^^^^^^^^^^^^",
" ^##################=^",
" ^..................|^",
" ^.#################[^",
" ^........!%%%%*%%%%%^",
" ^$******.*%##%%%###*^",
" ^****....*%********$^",
" ^****.****%%%%%%%%%%^",
" ^****.....*********%^",
" ^********.........*%^",
" ^****************.!%^",
" ^.................#%^",
" ^@*****************%^",
" ^%%%%%%%%%%%%%%%%%%%^",
" ^^^^^^^^^^^^^^^^^^^^^",
},
//7
{
"",
" 我记得这里有个商人",
" ^^^^^^^^^^^^^^^^^^^^^^",
" ^#########a%%%%%#####^",
" ^##############%#####^",
" ^###%%%%%%%%%%%%%%%%$^",
" ^%%%%################^",
" ^@..................=^",
" ^####################^",
" ^####################^",
" ^####################^",
" ^####################^",
" ^^^^^^^^^^^^^^^^^^^^^^",
}
};
int gn[150][150]={{},{13,12},{10,12},{10,13},{12,13},{13,18},
{15,21},{11,22}};
string gw[150]={"","垃圾坑","碎石牢房","上锁的牢房","金库","监狱大门",
"纳瓦拉小巷-监狱入口","纳瓦拉小巷-街道废墟"};
int gy[150];
int gengxin=7,level=1/*调试*/,jys/*调试*/,money/*调试*/,sdys;
string ts1="szn_kfz_rl_rn_wl_ts",ts2="szn_or_plr_wl_ce_gm_ad_rn",ts3="plr_wl_pl_aft_lst";
struct buy{
string name;
int pay;
bool have;
}dj[151],pf[151];
void sck(){
dj[1]={"免死金牌",15,0};
pf[1]={"I",30,0};
pf[2]={".",20,0};
pf[3]={"+",20,0};
}
int djn=1,pfn=3;
void sc(){
x:
if(!sdys){
system("cls");
scout("你没有商店钥匙!\n");
Sleep(1000);
return;
}
int n;
system("cls");
cout<<"要买什么呢?\n1-道具:\n";
for(int i=1;i<=djn;i++)cout<<i<<"-"<<dj[i].name<<" 价格:"<<dj[i].pay<<(!dj[i].have?" 可以购买":" 缺货")<<"\n";
cout<<"\n2-皮肤:\n";
for(int i=1;i<=pfn;i++)cout<<i<<"-"<<pf[i].name<<" 价格:"<<pf[i].pay<<(!pf[i].have?" 可以购买":" 缺货")<<"\n";
cout<<"你的余额:"<<money<<"\n0->退出\n->";
cin>>n;
if(!n)return;
if(n==1){
cout<<"要买哪个呢?\n->";
cin>>n;
if(money<dj[n].pay){
system("cls");
cout<<"余额不足!\n";
Sleep(1000);
goto x;
}
if(dj[n].have){
system("cls");
cout<<"没有货源!\n";
Sleep(1000);
goto x;
}
system("cls");
scout("购买成功!\n");
Sleep(1000);
dj[n].have=1;
money-=dj[n].pay;
goto x;
}
if(n==2){
cout<<"要买哪个呢?\n->";
cin>>n;
if(money<pf[n].pay){
system("cls");
cout<<"余额不足!\n";
Sleep(1000);
goto x;
}
if(pf[n].have){
system("cls");
cout<<"没有货源!\n";
Sleep(1000);
goto x;
}
system("cls");
scout("购买成功!\n");
Sleep(1000);
pf[n].have=1;
money-=pf[n].pay;
goto x;
}
}
string use_pf="@";
struct cjc{
string name,how;
bool have;
}cj[151];
int die;
void cjk(){
cj[1]={"菜鸡","在游戏中死亡20次",0};
cj[2]={"逃出监狱","通过第一章",0};
cj[3]={"买买买","拿到商店钥匙",0};
cj[4]={"赌神","一次通过猜数字游戏",0};
}
int cjn=4;
void cjg(int n){
system("cls");
system("color 07");
cj[n].have=1;
Beep(500,700);
scout("获得成就:\n");
Sleep(500);
scout(cj[n].name);
scout("\n(");
scout(cj[n].how);
scout(")\n");
system("pause");
system("cls");
}
void csz(){
int sz=rand()%10000,n,cs=0;
sz++;
system("cls");
scout("输入你要猜的数字(1~10000)\n(0->退出)\n->");
while(1){
cin>>n;
if(!n)return;
if(n==sz)break;
if(n<sz){
scout("猜小了!\n");
cs++;
}
if(n>sz){
scout("猜大了!\n");
cs++;
}
}
system("cls");
scout("猜中了!\n");
Sleep(1000);
if(!cs)cjg(4);
scout("你的奖励:\n");
int jl=20-cs;
if(jl<0)jl=0;
cout<<jl;
scout("块钱\n");
system("pause");
money+=jl;
return;
}
void xyx(){
x:
system("cls");
scout("玩些什么呢?\n1->猜数字\n(0->返回)\n->");
int n;
cin>>n;
if(!n)return;
if(n==1){
csz();
goto x;
}
}
void start(){
HANDLE console = GetStdHandle(STD_OUTPUT_HANDLE);
CONSOLE_CURSOR_INFO cursorInfo;
GetConsoleCursorInfo(console, &cursorInfo);
cursorInfo.bVisible = false;
SetConsoleCursorInfo(console, &cursorInfo);
MessageBox(NULL, "本游戏因剧情或内容所需,可能会让电脑强制关机或添加一些文件,如果不同意,请退出游戏", "免责声明", MB_OK);
MessageBox(NULL,"请尊重原创心血,抄袭必究","温馨提示",MB_OK);
MessageBox(NULL,"请不要在快要通关时长按键盘","bug提醒",MB_OK);
scout("欢迎游玩[沈梓_awa]的游戏!\n");
system("pause");
b:
system("cls");
cout<<"\t\t\t\t\t\t\t\t\t字符迷宫\n";
cout<<"1->开始游戏\n2->退出\n3->开发者模式\n4->操作说明\n5->商城\n6->换装\n7->查看成就\n8->小游戏\n->";
cin>>n_;
if(n_==1)goto a;
if(n_==2)return;
if(n_==3){
system("cls");
scout("请输入密码\n->");
string s;
cin>>s;
bool flag=0,flag1=1,flag2=1,flag3=1;
for(int i=0;i<ts1.size();i++){
if(s[i]!=ts1[i]){
flag1=0;
break;
}
}
if(flag1){
system("cls");
scout("开发者模式已启动!\n");
Sleep(1000);
jys=money=9999;
level=gengxin;
flag=1;
goto b;
}
for(int i=0;i<ts2.size();i++){
if(s[i]!=ts2[i]){
flag2=0;
break;
}
}
if(flag2){
system("cls");
scout("成功重启游戏!\n");
Sleep(1000);
jys=money=0;
level=1;
flag=1;
sck();
cjk();
goto b;
}
for(int i=0;i<ts3.size();i++){
if(s[i]!=ts3[i]){
flag3=0;
break;
}
}
if(flag3){
scout("\n请输入你解锁的关卡数量\n->");
int t;
cin>>t;
if(gengxin>=t){
level=t;
goto b;
}
else{
system("cls");
scout("输入错误!\n");
Sleep(1000);
goto b;
}
flag=1;
}
if(!flag){
system("cls");
scout("密码错误!\n");
Sleep(1000);
goto b;
}
}
if(n_==1)goto a;
if(n_==4){
system("cls");
scout("#是墙(可能是假的)\n$是钱\n!是陷阱\n@是你\n=是门\n|是锁上的门\n[是钥匙\n]是金钥匙\n&是金门\n*是炸弹\n?是特殊道具\nawsd操作\n按e使用1金币回复1血量\n");
system("pause");
goto b;
}
if(n_==5){
sc();
goto b;
}
if(n_==6){
c:
system("cls");
cout<<"切换至哪个皮肤?(0->退出)\n";
cout<<1<<"-"<<'@'<<"\n";
for(int i=2;i<=pfn+1;i++){
if(pf[i-1].have){
cout<<i<<"-"<<pf[i-1].name<<"\n";
}else{
cout<<i<<"-???\n";
}
}
cin>>n_;
if(!n_)goto b;
if(n_==1){
system("cls");
scout("切换成功!\n");
use_pf="@";
goto c;
}else{
if(!pf[n_-1].have){
system("cls");
scout("你没有解锁它!\n");
Sleep(1000);
goto c;
}else{
system("cls");
scout("切换成功!\n");
Sleep(1000);
use_pf=pf[n_-1].name;
goto c;
}
}
}
if(n_==7){
d:
system("cls");
scout("你的成就:\n");
for(int i=1;i<=cjn;i++){
cout<<i;
scout("-");
scout((cj[i].have?cj[i].name:"?????"));
scout("\n");
}
scout("0->返回\n->");
cin>>n_;
if(!n_)goto b;
else goto d;
}
if(n_==8){
xyx();
goto b;
}
start();
a:
system("cls");
system("color 07");
scout("游玩哪一关?(0->退出):\n->\n");
cout<<"\t\t\t\t\t\t\t\t\t[第一章]监狱\n";
for(int i=1;i<=5;i++){
if(i<=level){
cout<<i<<"-";
cout<<gw[i];
cout<<" ";
}
else cout<<i<<"-??? ";
}
cout<<"\n\n\t\t\t\t\t\t\t\t\t"<<(level>=6?"[第二章]纳瓦拉街区\n":"[第二章]???\n");
for(int i=6;i<=gengxin;i++){
if(i<=level){
cout<<i<<"-";
cout<<gw[i];
cout<<" ";
}
else cout<<i<<"-??? ";
}
cout<<"\n->";
cin>>n_;
if(n_==0)goto b;
if(n_>level){
system("cls");
scout("你没有解锁它!\n");
Sleep(1000);
goto a;
}
jz();
if(die==20){
system("cls");
scout("不会吧!这么简单的游戏你都能死20次???\n");
Sleep(1000);
cjg(1);
}
int x,y,hp=3,ys=0;
if(n_<=5)system("color 08");
else if(n_<=gengxin)system("color 84");
while(1){
system("cls");
if(!hp){
if(dj[1].have){
hp=1;
dj[1].have=0;
}
else{
scout("你死了!!!\n");
Sleep(1000);
die++;
goto a;
}
}
for(int i=1;i<=gn[n_][0];i++){
for(int j=1;j<=gn[n_][1];j++){
if(gc[n_][i][j]=='%')cout<<"#";
if(gc[n_][i][j]=='.')cout<<" ";
if(gc[n_][i][j]=='@'){
x=i,y=j;
cout<<use_pf;
}
if(gc[n_][i][j]=='a')cout<<"?";
else if(gc[n_][i][j]!='%' && gc[n_][i][j]!='.' && gc[n_][i][j]!='@')cout<<gc[n_][i][j];
}
cout<<"\n";
}
cout<<"\n你的钱数:"<<money<<" 你的生命值:"<<hp<<"\n->";
char n=_getch();
int x_=x,y_=y;
if(n=='e'){
if(money){
system("cls");
scout("回复成功!\n");
money--;
hp++;
Sleep(1000);
}else{
system("cls");
scout("你没钱!\n");
Sleep(1000);
}
}
if(n=='w' && gc[n_][x-1][y]!='^' && gc[n_][x-1][y]!='#'){
x--;
if(gc[n_][x][y]=='!'){
system("cls");
scout("踩中陷阱啦!!!\n");
hp--;
Sleep(1000);
}
if(gc[n_][x][y]=='$'){
system("cls");
scout("捡到钱了!!!\n");
money++;
gc[n_][x_][y_]='.';
gc[n_][x][y]='@';
Sleep(1000);
}
if(gc[n_][x][y]=='='){
system("cls");
scout("逃离成功!!!\n");
if(level+1<=gengxin && !gy[n_]){
level++;
gy[n_]++;
}
Sleep(1000);
goto a;
}
if(gc[n_][x][y]=='['){
system("cls");
scout("捡到钥匙了!\n");
ys++;
Sleep(1000);
}
if(gc[n_][x][y]=='*'){
hp=0;
}
if(gc[n_][x][y]=='|'){
if(!ys){
system("cls");
scout("你没有钥匙!\n");
Sleep(1000);
}else{
system("cls");
scout("门开了!\n");
ys--;
gc[n_][x_][y_]='.';
gc[n_][x][y]='@';
Sleep(1000);
}
}
if(gc[n_][x][y]=='&'){
if(!jys){
system("cls");
scout("你没有金钥匙!\n");
Sleep(1000);
}else{
system("cls");
scout("金门开了!\n");
ys--;
gc[n_][x_][y_]='.';
gc[n_][x][y]='@';
Sleep(1000);
}
}
if(gc[n_][x][y]==']'){
system("cls");
scout("捡到金钥匙了!\n");
jys++;
Sleep(1000);
}
if(gc[n_][x][y]=='.' || gc[n_][x][y]=='%' || gc[n_][x][y]=='[' || gc[n_][x][y]==']'){
gc[n_][x_][y_]='.';
gc[n_][x][y]='@';
}
}
if(n=='d' && gc[n_][x][y+1]!='^' && gc[n_][x][y+1]!='#'){
y++;
if(gc[n_][x][y]=='!'){
system("cls");
scout("踩中陷阱啦!!!\n");
hp--;
Sleep(1000);
}
if(gc[n_][x][y]=='$'){
system("cls");
scout("捡到钱了!!!\n");
money++;
gc[n_][x_][y_]='.';
gc[n_][x][y]='@';
Sleep(1000);
}
if(gc[n_][x][y]=='='){
system("cls");
scout("逃离成功!!!\n");
if(level+1<=gengxin && !gy[n_]){
level++;
gy[n_]++;
}
Sleep(1000);
goto a;
}
if(gc[n_][x][y]=='['){
system("cls");
scout("捡到钥匙了!\n");
ys++;
Sleep(1000);
}
if(gc[n_][x][y]=='*'){
hp=0;
}
if(gc[n_][x][y]=='|'){
if(!ys){
system("cls");
scout("你没有钥匙!\n");
Sleep(1000);
}else{
system("cls");
scout("门开了!\n");
ys--;
gc[n_][x_][y_]='.';
gc[n_][x][y]='@';
Sleep(1000);
}
}
if(gc[n_][x][y]=='&'){
if(!jys){
system("cls");
scout("你没有金钥匙!\n");
Sleep(1000);
}else{
system("cls");
scout("金门开了!\n");
ys--;
gc[n_][x_][y_]='.';
gc[n_][x][y]='@';
Sleep(1000);
}
}
if(gc[n_][x][y]==']'){
system("cls");
scout("捡到金钥匙了!\n");
jys++;
Sleep(1000);
}
if(gc[n_][x][y]=='.' || gc[n_][x][y]=='%' || gc[n_][x][y]=='[' || gc[n_][x][y]==']'){
gc[n_][x_][y_]='.';
gc[n_][x][y]='@';
}
}
if(n=='a' && gc[n_][x][y-1]!='^' && gc[n_][x][y-1]!='#'){
y--;
if(gc[n_][x][y]=='!'){
system("cls");
scout("踩中陷阱啦!!!\n");
hp--;
Sleep(1000);
}
if(gc[n_][x][y]=='$'){
system("cls");
scout("捡到钱了!!!\n");
money++;
gc[n_][x_][y_]='.';
gc[n_][x][y]='@';
Sleep(1000);
}
if(gc[n_][x][y]=='='){
system("cls");
scout("逃离成功!!!\n");
if(level+1<=gengxin && !gy[n_]){
level++;
gy[n_]++;
}
Sleep(1000);
goto a;
}
if(gc[n_][x][y]=='['){
system("cls");
scout("捡到钥匙了!\n");
ys++;
Sleep(1000);
}
if(gc[n_][x][y]=='a'){
sdys++;
system("cls");
scout("捡到商店钥匙了!\n");
Sleep(1000);
gc[n_][x_][y_]='.';
gc[n_][x][y]='@';
cjg(3);
}
if(gc[n_][x][y]=='*'){
hp=0;
}
if(gc[n_][x][y]=='|'){
if(!ys){
system("cls");
scout("你没有钥匙!\n");
Sleep(1000);
}else{
system("cls");
scout("门开了!\n");
ys--;
gc[n_][x_][y_]='.';
gc[n_][x][y]='@';
Sleep(1000);
}
}
if(gc[n_][x][y]=='&'){
if(!jys){
system("cls");
scout("你没有金钥匙!\n");
Sleep(1000);
}else{
system("cls");
scout("金门开了!\n");
ys--;
gc[n_][x_][y_]='.';
gc[n_][x][y]='@';
Sleep(1000);
}
}
if(gc[n_][x][y]==']'){
system("cls");
scout("捡到金钥匙了!\n");
jys++;
Sleep(1000);
}
if(gc[n_][x][y]=='.' || gc[n_][x][y]=='%' || gc[n_][x][y]=='[' || gc[n_][x][y]==']'){
gc[n_][x_][y_]='.';
gc[n_][x][y]='@';
}
}
if(n=='s' && gc[n_][x+1][y]!='^' && gc[n_][x+1][y]!='#'){
x++;
if(gc[n_][x][y]=='!'){
system("cls");
scout("踩中陷阱啦!!!\n");
hp--;
Sleep(1000);
}
if(gc[n_][x][y]=='$'){
system("cls");
scout("捡到钱了!!!\n");
money++;
gc[n_][x_][y_]='.';
gc[n_][x][y]='@';
Sleep(1000);
}
if(gc[n_][x][y]=='='){
system("cls");
scout("逃离成功!!!\n");
if(level+1<=gengxin && !gy[n_]){
level++;
gy[n_]++;
}
Sleep(1000);
if(level==6){
system("cls");
cjg(2);
}
goto a;
}
if(gc[n_][x][y]=='['){
system("cls");
scout("捡到钥匙了!\n");
ys++;
Sleep(1000);
}
if(gc[n_][x][y]=='*'){
hp=0;
}
if(gc[n_][x][y]=='|'){
if(!ys){
system("cls");
scout("你没有钥匙!\n");
Sleep(1000);
}else{
system("cls");
scout("门开了!\n");
ys--;
gc[n_][x_][y_]='.';
gc[n_][x][y]='@';
Sleep(1000);
}
}
if(gc[n_][x][y]=='&'){
if(!jys){
system("cls");
scout("你没有金钥匙!\n");
Sleep(1000);
}else{
system("cls");
scout("金门开了!\n");
ys--;
gc[n_][x_][y_]='.';
gc[n_][x][y]='@';
Sleep(1000);
}
}
if(gc[n_][x][y]==']'){
system("cls");
scout("捡到金钥匙了!\n");
jys++;
Sleep(1000);
}
if(gc[n_][x][y]=='.' || gc[n_][x][y]=='%' || gc[n_][x][y]=='[' || gc[n_][x][y]==']'){
gc[n_][x_][y_]='.';
gc[n_][x][y]='@';
}
}
}
return;
}
void zy(){
sck();
cjk();
start();
return;
}
int main(int argc,char** argv){
zy();
}
全部评论 10
D
1周前 来自 浙江
3d
2026-04-25 来自 浙江
3合着您还在线啊
1周前 来自 天津
1没退站啊
1周前 来自 天津
1
第五关咋过
6天前 来自 福建
0NBBBBBBBBBBB
6天前 来自 辽宁
0

6天前 来自 四川
0少了些字
6天前 来自 四川
0
这是干什么的???


1周前 来自 江苏
0有bug,会一直出现免责声明
1周前 来自 四川
0OK
1周前 来自 浙江
0下周会修
1周前 来自 浙江
0感谢反馈
1周前 来自 浙江
0
6,你78个器官全是肝吗
1周前 来自 湖北
0行,做的挺好
1周前 来自 天津
0针不戳~
1周前 来自 天津
0







































有帮助,赞一个