好玩的
  • 板块灌水区
  • 楼主Tang_Xuan_Zong
  • 当前回复27
  • 已保存回复27
  • 发布时间2024/8/8 20:01
  • 上次更新2024/8/8 20:56:05
查看原帖
好玩的
1414042
Tang_Xuan_Zong楼主2024/8/8 20:01

先说明:不是病毒!不是病毒!不是病毒!

#include<bits/stdc++.h>
#include<windows.h>
#include<conio.h>
char shouyemian[770]={' ',' ',' ',' ',' ',' ',' ','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0',
                      ' ',' ',' ',' ',' ',' ',' ','0','=','=','=','=','=','=','=','=','=','=','=','=','=','=','=','=','=','=','=','=','=','=','=','=','=','=','0',
					  ' ',' ',' ',' ',' ',' ',' ','0','|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|','0',
					  ' ',' ',' ',' ',' ',' ',' ','0','|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|','0',
					  ' ',' ',' ',' ',' ',' ',' ','0','|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|','0',
					  ' ',' ',' ',' ',' ',' ',' ','0','|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|','0',
			    	  ' ',' ',' ',' ',' ',' ',' ','0','|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|','0',
					  ' ',' ',' ',' ',' ',' ',' ','0','|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|','0',
				   	  ' ',' ',' ',' ',' ',' ',' ','0','|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|','0',
					  ' ',' ',' ',' ',' ',' ',' ','0','|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|','0',
					  ' ',' ',' ',' ',' ',' ',' ','0','|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|','0',
				  	  ' ',' ',' ',' ',' ',' ',' ','0','|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|','0',
					  ' ',' ',' ',' ',' ',' ',' ','0','|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|','0',
					  ' ',' ',' ',' ',' ',' ',' ','0','|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','U',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|','0',
				      ' ',' ',' ',' ',' ',' ',' ','0','=','=','=','=','=','=','=','=','=','=','=','=','=','=','=','=','=','=','=','=','=','=','=','=','=','=','0',
		       	      ' ',' ',' ',' ',' ',' ',' ','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0',
					  ' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',
					  ' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','1','.',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',
					  ' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',
					  ' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','2','.',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ', 
					  ' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' '};
					  
					  
					  
					  
   char migong1[700]={' ',' ',' ',' ',' ',' ',' ','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0',
                      ' ',' ',' ',' ',' ',' ',' ','0','=','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','=','0',
					  ' ',' ',' ',' ',' ',' ',' ','0','|','U','|',' ',' ',' ',' ',' ',' ','|',' ','|','-','-',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|','0',
					  ' ',' ',' ',' ',' ',' ',' ','0','|',' ','|',' ','|',' ',' ','|',' ','|',' ',' ',' ','|',' ',' ','|','-','-',' ','-','-','-','|',' ','|','0',
					  ' ',' ',' ',' ',' ',' ',' ','0','|',' ','|',' ','-','|',' ','|',' ','|',' ','|',' ','|','-','-','|',' ',' ',' ',' ',' ',' ','|',' ','|','0',
					  ' ',' ',' ',' ',' ',' ',' ','0','|',' ','|',' ',' ','|',' ','|',' ','|',' ','|',' ',' ',' ',' ','|',' ','|','-','-','-',' ','|',' ','|','0',
			    	  ' ',' ',' ',' ',' ',' ',' ','0','|',' ','|','-','-','-',' ','|',' ','|',' ','-','-','-',' ',' ','|',' ','|',' ',' ','|',' ','|',' ','|','0',
					  ' ',' ',' ',' ',' ',' ',' ','0','|',' ',' ',' ',' ',' ',' ','|',' ','|',' ',' ',' ','|',' ',' ','|',' ','-','|',' ','|',' ','|',' ','|','0',
				   	  ' ',' ',' ',' ',' ',' ',' ','0','|',' ','|',' ','|','-','-','-',' ','-','-','|',' ','|',' ',' ',' ',' ',' ','|',' ','|',' ','|',' ','|','0',
					  ' ',' ',' ',' ',' ',' ',' ','0','|',' ','|',' ','|',' ',' ',' ',' ',' ',' ','|',' ','|',' ','|','-','-',' ','|',' ','|',' ','|',' ','|','0',
					  ' ',' ',' ',' ',' ',' ',' ','0','|',' ','|','-','-',' ','|','-','-','-',' ','|',' ','|',' ','|',' ','|',' ','|',' ','|',' ','|',' ','|','0',
				  	  ' ',' ',' ',' ',' ',' ',' ','0','|',' ',' ',' ',' ',' ','|',' ','|',' ',' ','|',' ','|',' ','|',' ','|',' ','|',' ','|',' ','|',' ','|','0',
					  ' ',' ',' ',' ',' ',' ',' ','0','|',' ','-','-','-','-','-',' ','|',' ','-','-',' ','|','-','-',' ','|','-','-',' ','|','-','|',' ','|','0',
					  ' ',' ',' ',' ',' ',' ',' ','0','|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','@','|','0',
				      ' ',' ',' ',' ',' ',' ',' ','0','=','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','=','0',
		       	      ' ',' ',' ',' ',' ',' ',' ','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0',
					  ' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' '};
					  
					  
					  
					  
					  
					  
   char migong2[700]={' ',' ',' ',' ',' ',' ',' ','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0',
                      ' ',' ',' ',' ',' ',' ',' ','0','=','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','=','0',
					  ' ',' ',' ',' ',' ',' ',' ','0','|','U','|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|','0',
					  ' ',' ',' ',' ',' ',' ',' ','0','|',' ','|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','-','-','-','|','0',
					  ' ',' ',' ',' ',' ',' ',' ','0','|',' ','|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|',' ',' ','|','0',
					  ' ',' ',' ',' ',' ',' ',' ','0','|',' ','|','-','-','-','-',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','-','-','-','-','|',' ',' ','|','0',
			    	  ' ',' ',' ',' ',' ',' ',' ','0','|',' ',' ',' ',' ',' ','|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|',' ',' ',' ',' ',' ',' ','|','0',
					  ' ',' ',' ',' ',' ',' ',' ','0','|','-','-','-','-',' ','|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|',' ','|','-','-',' ',' ','|','0',
				   	  ' ',' ',' ',' ',' ',' ',' ','0','|','|',' ',' ','|',' ','|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|',' ','|',' ',' ','|',' ','|','0',
					  ' ',' ',' ',' ',' ',' ',' ','0','|','|',' ',' ','|',' ','|','-','-','-','-',' ',' ',' ','-','-','-','-','|',' ','|',' ',' ','|',' ','|','0',
					  ' ',' ',' ',' ',' ',' ',' ','0','|','|',' ',' ','|',' ',' ',' ',' ',' ','|',' ',' ',' ','|',' ',' ',' ',' ',' ','|',' ',' ','|',' ','|','0',
				  	  ' ',' ',' ',' ',' ',' ',' ','0','|','|',' ',' ','|','-','-','-','-',' ','|',' ',' ',' ','|',' ','-','-','-','-','-',' ',' ','|',' ','|','0',
					  ' ',' ',' ',' ',' ',' ',' ','0','|','|','T','h','a','n','k','s','|',' ','|','-','-','-','|',' ','|','C','a','n',' ',' ',' ','|',' ','|','0',
					  ' ',' ',' ',' ',' ',' ',' ','0','|','|','Y','o','u',' ',' ',' ','|',' ',' ',' ',' ',' ',' ',' ','|','P','l','a','y',' ',' ','|','@','|','0',
				      ' ',' ',' ',' ',' ',' ',' ','0','=','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','=','0',
		       	      ' ',' ',' ',' ',' ',' ',' ','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0',
					  ' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' '};
					  
					  
					  
					  
   char migong3[700]={' ',' ',' ',' ',' ',' ',' ','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0',
                      ' ',' ',' ',' ',' ',' ',' ','0','=','=','=','=','=','=','=','=','=','=','=','=','=','=','=','=','=','=','=','=','=','=','=','=','=','=','0',
					  ' ',' ',' ',' ',' ',' ',' ','0','|','U',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|','0',
					  ' ',' ',' ',' ',' ',' ',' ','0','|','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-',' ','|','0',
					  ' ',' ',' ',' ',' ',' ',' ','0','|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|','0',
					  ' ',' ',' ',' ',' ',' ',' ','0','|',' ','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','|','0',
			    	  ' ',' ',' ',' ',' ',' ',' ','0','|',' ','|',' ',' ',' ','|',' ','|',' ',' ',' ',' ','|',' ',' ',' ',' ',' ',' ',' ','|',' ',' ',' ','|','0',
					  ' ',' ',' ',' ',' ',' ',' ','0','|',' ','|',' ','|',' ','|',' ','|',' ','|','-',' ','|',' ','|','-','-','-','-',' ','|',' ','|',' ','|','0',
				   	  ' ',' ',' ',' ',' ',' ',' ','0','|',' ','|',' ','|',' ','|',' ','|',' ','|','|',' ','|',' ','|',' ',' ',' ','|',' ','|',' ','|',' ','|','0',
					  ' ',' ',' ',' ',' ',' ',' ','0','|',' ','|',' ','|',' ','|',' ','|',' ','|','|',' ','|',' ','|',' ',' ',' ',' ',' ','|',' ','|',' ','|','0',
					  ' ',' ',' ',' ',' ',' ',' ','0','|',' ','|',' ','|',' ','|',' ',' ',' ','|','|',' ','|',' ','-','-','-','|','|',' ','|',' ','|',' ','|','0',
				  	  ' ',' ',' ',' ',' ',' ',' ','0','|',' ','|',' ','|',' ','|',' ','-','-','-','|',' ','|',' ',' ',' ',' ','|','|',' ','|',' ','|',' ','|','0',
					  ' ',' ',' ',' ',' ',' ',' ','0','|',' ','|',' ','|',' ','|',' ','|',' ',' ','|',' ','|','-','-','-',' ','|','|',' ','|',' ','|',' ','|','0',
					  ' ',' ',' ',' ',' ',' ',' ','0','|',' ',' ',' ','|',' ',' ',' ','|',' ',' ',' ',' ',' ',' ',' ',' ',' ','|','|',' ',' ',' ','|','@','|','0',
				      ' ',' ',' ',' ',' ',' ',' ','0','=','=','=','=','=','=','=','=','=','=','=','=','=','=','=','=','=','=','=','=','=','=','=','=','=','=','0',
		       	      ' ',' ',' ',' ',' ',' ',' ','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0',
					  ' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' '};
					  
					  
					  
   char caidan[700]={ ' ',' ',' ',' ',' ',' ',' ','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0',
                      ' ',' ',' ',' ',' ',' ',' ','0','=','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','=','0',
					  ' ',' ',' ',' ',' ',' ',' ','0','|','U','|','#',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|','0',
					  ' ',' ',' ',' ',' ',' ',' ','0','|',' ','|','-','-','-','-','-','-','-','-','-',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','-','-','-','|','0',
					  ' ',' ',' ',' ',' ',' ',' ','0','|',' ','|','5','4','1','8','8',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|',' ',' ','|','0',
					  ' ',' ',' ',' ',' ',' ',' ','0','|',' ','|','-','-','-','-',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','-','-','-','-','|',' ',' ','|','0',
			    	  ' ',' ',' ',' ',' ',' ',' ','0','|',' ',' ',' ',' ',' ','|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|',' ',' ',' ',' ',' ',' ','|','0',
					  ' ',' ',' ',' ',' ',' ',' ','0','|','-','-','-','-',' ','|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','|',' ','|','-','-',' ',' ','|','0',
				   	  ' ',' ',' ',' ',' ',' ',' ','0','|','|',' ',' ','|',' ','|',' ',' ',' ',' ','|',' ','|',' ',' ',' ',' ','|',' ','|',' ',' ','|',' ','|','0',
					  ' ',' ',' ',' ',' ',' ',' ','0','|','|',' ',' ','|',' ','|','-','-','-','-','|',' ','|','-','-','-','-','|',' ','|',' ',' ','|',' ','|','0',
					  ' ',' ',' ',' ',' ',' ',' ','0','|','|',' ',' ','|',' ',' ',' ',' ',' ','|','|',' ','|','|',' ',' ',' ',' ',' ','|',' ',' ','|',' ','|','0',
				  	  ' ',' ',' ',' ',' ',' ',' ','0','|','|',' ',' ','|','-','-','-','-',' ','|','|',' ','|','|',' ','-','-','-','-','-',' ',' ','|',' ','|','0',
					  ' ',' ',' ',' ',' ',' ',' ','0','|','|','T','h','a','n','k','s','|',' ','|','-',' ','-','|',' ','|','C','a','n',' ',' ',' ','|',' ','|','0',
					  ' ',' ',' ',' ',' ',' ',' ','0','|','|','Y','o','u',' ',' ',' ','|',' ',' ',' ',' ',' ',' ',' ','|','P','l','a','y',' ',' ','|','@','|','0',
				      ' ',' ',' ',' ',' ',' ',' ','0','=','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','=','0',
		       	      ' ',' ',' ',' ',' ',' ',' ','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0',
					  ' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' '};
using namespace std;
const string RED = "\033[31m";      // 红色
const string GREEN = "\033[32m";    // 绿色
const string YELLOW = "\033[33m";   // 黄色
const string BLUE = "\033[34m";     // 蓝色
const string RESET = "\033[0m";     // 重置颜色
int cishu=0,jiyu=0,xuhao=0;
int p1=0,p2=0,p3=0;

void zztg(){
	string js="详情见:https://www.luogu.com.cn/paste/3e1a95o5";
	system("cls");
	for(int k=0;k<47;k++){
		cout<<js[k];
		_sleep(150);
	} 
}
void shouye(){
	int i,j,k=0;
	system("cls");
	for(i=0;i<770;i++){
		if(i%35==0)cout<<endl;
		if(cishu!=0){
			if(i==488){
				if(cishu==4){
					cout<<RED<<shouyemian[i]<<RESET;           //首页 
					jiyu=1;
					k=1;
					cishu=10;
				}
			}
		}
		if(shouyemian[i]=='.'&&shouyemian[i-1]=='1')cout<<"开始游戏";
		if(shouyemian[i]=='.'&&shouyemian[i-1]=='2')cout<<"新手教程";
		else if(k==0)cout<<RESET<<shouyemian[i]<<RESET;	
		else if(k==1)k=0;
	}
}
void mig1(){
	int i,j;
	system("cls");
	for(i=0;i<700;i++){
		if(i%35==0)cout<<endl;
		cout<<migong1[i];	
	}
}
void mig2(){
	int i,j;
	system("cls");
	for(i=0;i<700;i++){
		if(i%35==0)cout<<endl;
		cout<<migong2[i];	
	}
}
void mig3(){
	int i,j;
	system("cls");
	for(i=0;i<700;i++){
		if(i%35==0)cout<<endl;
		cout<<migong3[i];	
	}
}
void cd(){
	int i,j;
	system("cls");
	for(i=0;i<700;i++){
		if(i%35==0)cout<<endl;
		cout<<cd[i];	
	}
}
void sa(){
	for(int i=0;i<770;i++){
                if(shouyemian[i]=='U'){
                	if(shouyemian[i-1]=='|'){
                		cout<<"无效操作";
                		_sleep(500);
					}else{shouyemian[i-1]='U';shouyemian[i]=' ';break;}       //左移 
				}
			}
		shouye();
}
void sd(){
	for(int i=0;i<770;i++){
                	if(shouyemian[i]=='U'){
                		if(shouyemian[i+1]=='|'){
                			if(shouyemian[i]=='U'&&i==487){
                				cishu++;
							}
                			cout<<"无效操作";
                			_sleep(500);
						}else{shouyemian[i+1]='U';shouyemian[i]=' ';break;}          //右移 
					}
				}
				shouye();
}
void sw(){
	for(int i=0;i<770;i++){
                	if(shouyemian[i]=='U'){
                		if(shouyemian[i-35]=='='){
                			cout<<"无效操作";
                			_sleep(500);
						}else{shouyemian[i-35]='U';shouyemian[i]=' ';break;}          //上移 
					}
				}
				shouye();
}
void ss(){
	for(int i=0;i<770;i++){
                	if(shouyemian[i]=='U'){
                		if(shouyemian[i+35]=='='){
                			cout<<"无效操作";
                			_sleep(500);
						}else{shouyemian[i+35]='U';shouyemian[i]=' ';break;}           //下移 
					}
				}
				shouye();
}
void ma(){
	int tt=1;
	if(xuhao==1){
		for(int i=0;i<700;i++){
                if(migong1[i]=='U'){
                	if(migong1[i-1]=='|'||migong1[i-1]=='-'){
                		cout<<RED<<"你死了"<<RESET;
                		_sleep(1600);
                		system("cls");
                		xuhao=0;
                		migong1[79]='U';
                		migong1[i]=' ';
                		shouye();
                		tt=0;
                		p1=0;
                		break;
					}else{migong1[i-1]='U';migong1[i]=' ';break;}       //左移 
				}
			}
		if(tt==1)mig1();
	}
	if(xuhao==2){
		for(int i=0;i<700;i++){
                if(migong2[i]=='U'){
                	if(migong2[i-1]=='5'){
                		cout<<YELLOW<<"恭喜通关!"<<RESET;
                		_sleep(1600);
                		system("cls");
                		zztg();
                		_sleep(1600);
                		system("cls");
                		xuhao=0;
                		migong2[79]='U';
                		migong2[i]=' ';
                		shouye();
                		tt=0;
                		p2=0;
                		break;
					}
                	else if(migong2[i-1]=='|'||migong2[i-1]=='-'){
                		cout<<RED<<"你死了"<<RESET;
                		_sleep(1600);
                		system("cls");
                		xuhao=0;
                		migong2[79]='U';
                		migong2[i]=' ';
                		shouye();
                		tt=0;
                		p2=0;
                		break;
					}else if(migong2[i-1]=='#'){
					 cout<<"获得一张纸";
					 string zji="介绍:一张绿油油的纸,上面写着:哈哈,你中计了!!!这张纸上涂有毒药,只要你看完这段话,你就会毒发身亡!只有https://www.luogu.com.cn/team/85734#main,你才能活着" ;
                		_sleep(1500);
                		system("cls");
                		for(int xxs=0;xxs<160;xxs++){
                			cout<<zji[xxs];
                			_sleep(150);
						} 
                		_sleep(3000);
                		system("cls");
                		cout<<RED<<"你死了"<<RESET;
                		_sleep(1600);
                		system("cls");
                		xuhao=0;
                		migong2[79]='U';
                		migong2[i]=' ';
                		shouye();
                		tt=0;
                		p2=0;
                		break;
					}else {migong2[i-1]='U';migong2[i]=' ';break;}       //左移 
				}
			}
		if(tt==1)mig2();
	}	
}
void md(){
	int tt=1;
	if(xuhao==1){
		for(int i=0;i<700;i++){
                if(migong1[i]=='U'){
                	if(migong1[i+1]=='|'||migong1[i+1]=='-'){
                		cout<<RED<<"你死了"<<RESET;
                		_sleep(1600);
                		system("cls");
                		xuhao=0;
                		migong1[79]='U';
                		migong1[i]=' ';
                		shouye();
                		tt=0;
                		p1=0;
                		break;
					}else{migong1[i+1]='U';migong1[i]=' ';break;}       //左移 
				}
			}
		if(tt==1)mig1();
	}
	if(xuhao==2){
		for(int i=0;i<700;i++){
                if(migong2[i]=='U'){
                	if(migong2[i+1]=='|'||migong2[i+1]=='-'){
                		cout<<RED<<"你死了"<<RESET;
                		_sleep(1600);
                		system("cls");
                		xuhao=0;
                		migong2[79]='U';
                		migong2[i]=' ';
                		shouye();
                		tt=0;
                		p2=0;
                		break;
					}else{migong2[i+1]='U';migong2[i]=' ';break;}       //左移 
				}
			}
		if(tt==1)mig2();
	}	
}
void mw(){
	int tt=1;
	if(xuhao==1){
		for(int i=0;i<700;i++){
                if(migong1[i]=='U'){
                	if(migong1[i-35]=='|'||migong1[i-35]=='-'){
                		cout<<RED<<"你死了"<<RESET;
                		_sleep(1600);
                		system("cls");
                		xuhao=0;
                		migong1[79]='U';
                		migong1[i]=' ';
                		shouye();
                		tt=0;
                		p1=0;
                		break;
					}else{migong1[i-35]='U';migong1[i]=' ';break;}       //左移 
				}
			}
		if(tt==1)mig1();
	}
	if(xuhao==2){
		for(int i=0;i<700;i++){
                if(migong2[i]=='U'){
                	if(i==475){
                		if(migong2[440]=='-'){
                			migong2[440]=' ';
                			migong2[406]='|';
                			migong2[404]='|';
                			migong2[371]='|';
                			migong2[369]='|';
                			migong2[336]='|';
                			migong2[334]='|';
                			migong2[301]='|';
                			migong2[299]='|';
                			migong2[151]='5';
                			migong2[152]='4';
                			migong2[153]='1';
                			migong2[154]='8';
                			migong2[155]='8';
                			migong2[116]='-';
                			migong2[117]='-';
                			migong2[118]='-';
                			migong2[119]='-';
                			migong2[120]='-';
                			migong2[121]='-';
                			migong2[122]='-';
                			migong2[123]='-';
                			migong2[124]='-';
                			migong2[81]='#';
                			migong2[i-35]='U';
							migong2[i]=' ';
							break;
                		}
					}
					else if(migong2[i-35]=='|'||migong2[i-35]=='-'){
                		cout<<RED<<"你死了"<<RESET;
                		_sleep(1600);
                		system("cls");
                		xuhao=0;
                		migong2[79]='U';
                		migong2[i]=' ';
                		shouye();
                		tt=0;
                		p2=0;
                		break;
					}else{migong2[i-35]='U';migong2[i]=' ';break;}       //左移 
				}
			}
		if(tt==1)mig2();
	}	
}
void ms(){
	int tt=1;
	if(xuhao==1){
		for(int i=0;i<700;i++){
                	if(migong1[i]=='U'){
                	if(migong1[i+35]=='|'||migong1[i+35]=='-'){
                		cout<<RED<<"你死了"<<RESET;
                		_sleep(1600);
                		system("cls");
                		xuhao=0;
                		migong1[79]='U';
                		migong1[i]=' ';
                		shouye();
                		tt=0;
                		p1=0;
                		break;
					}else if(migong1[i+35]=='@'){
                		cout<<YELLOW<<"恭喜过关!"<<RESET;
                		_sleep(1600);
                		system("cls");
                		xuhao=2;
                		migong1[79]='U';
                		migong1[i]=' ';
                		cout<<"第二关";
                		_sleep(2000);
                		system("cls");
                		mig2();
                		tt=0;
                		p1=0;
                		break;
					}else {migong1[i+35]='U';migong1[i]=' ';break;}       //左移 
				}
			}
		if(tt==1)mig1();
	}
	if(xuhao==2){
		for(int i=0;i<700;i++){
                	if(migong2[i]=='U'){
                	if(migong2[i+35]=='|'||migong2[i+35]=='-'){
                		cout<<RED<<"你死了"<<RESET;
                		_sleep(1600);
                		system("cls");
                		xuhao=0;
                		migong2[79]='U';
                		migong2[i]=' ';
                		shouye();
                		tt=0;
                		p2=0;
                		break;
					}else if(migong2[i+35]=='@'){
                		cout<<YELLOW<<"恭喜过关!"<<RESET;
                		_sleep(1600);
                		system("cls");
                		xuhao=3;
                		migong2[79]='U';
                		migong2[i]=' ';
                		cout<<"第三关";
                		_sleep(2000);
                		system("cls");
                		mig3();
                		tt=0;
                		p2=0;
                		break;
					}else {migong2[i+35]='U';migong2[i]=' ';break;}       //左移 
				}
			}
		if(tt==1)mig2();
	}
}

void Ma(){
	int tt=1;
		for(int i=0;i<700;i++){
                	if(migong3[i]=='U'){
                	if(migong3[i-1]=='|'||migong3[i-1]=='-'){
                		cout<<RED<<"你死了"<<RESET;
                		_sleep(1600);
                		system("cls");
                		xuhao=0;
                		migong3[79]='U';
                		migong3[i]=' ';
                		shouye();
                		tt=0;
                		p3=0;
                		break;
						}else {migong3[i-1]='U';migong3[i]=' ';break;}       //左移 
				}
			}
		if(tt==1)mig3();
}
void Md(){
	int tt=1;
		for(int i=0;i<700;i++){
                	if(migong3[i]=='U'){
                	if(migong3[i+1]=='|'||migong3[i+1]=='-'){
                		cout<<RED<<"你死了"<<RESET;
                		_sleep(1600);
                		system("cls");
                		xuhao=0;
                		migong3[79]='U';
                		migong3[i]=' ';
                		shouye();
                		tt=0;
                		p3=0;
                		break;
						}else {migong3[i+1]='U';migong3[i]=' ';break;}       //左移 
				}
			}
		if(tt==1)mig3();
}
void Mw(){
	int tt=1;
		for(int i=0;i<700;i++){
                	if(migong3[i]=='U'){
                	if(migong3[i-35]=='|'||migong3[i-35]=='-'){
                		cout<<RED<<"你死了"<<RESET;
                		_sleep(1600);
                		system("cls");
                		xuhao=0;
                		migong3[79]='U';
                		migong3[i]=' ';
                		shouye();
                		tt=0;
                		p3=0;
                		break;
						}else {migong3[i-35]='U';migong3[i]=' ';break;}       //左移 
				}
			}
		if(tt==1)mig3();
}
void Ms(){
	int tt=1;
		for(int i=0;i<700;i++){
                	if(migong3[i]=='U'){
                	if(migong3[i+35]=='|'||migong3[i+35]=='-'){
                		cout<<RED<<"你死了"<<RESET;
                		_sleep(1600);
                		system("cls");
                		xuhao=0;
                		migong3[79]='U';
                		migong3[i]=' ';
                		shouye();
                		tt=0;
                		p3=0;
                		break;
					}else if(migong3[i+35]=='@'){
                		cout<<YELLOW<<"恭喜通关!"<<RESET;
                		_sleep(1600);
                		system("cls");
                	//	string js="感谢你游玩本游戏,并成功通关,但是,你真的通关了吗?…………………………";
//                		for(int pp=0;pp<72;pp++){
//                			cout<<RED<<js[pp]<<RESET;
//                			_sleep(150);
//						} 
                        cout<<RED<<"感谢你游玩本游戏,并成功通关,但是,你真的通关了吗?…………………………"<<RESET;
						_sleep(6000);
						system("cls");
						xuhao=0;
						migong3[79]='U';
                		migong3[i]=' ';
						shouye();
						tt=0;
						p3=0;
						break;
					}else {migong3[i+35]='U';migong3[i]=' ';break;}       //左移 
				}
			}
		if(tt==1)mig3();
}
string xxx; 
int main(){
	int i,a,j,jiyushu=0;
	shouye();
	int bag_q[100],bag_Q=0;
	while(1){
		 char x,x2;
		 if(xuhao==0){
		 	if(_kbhit()) //按键点击 
        {
            x = _getch();
            if(x== '1'){
            	xuhao=1;
			}
            else if(x == 'a')
            {
                sa();
            }
            else if(x == 'd')
            {
                sd();
            }
            else if(x == 'w')
            {
                sw();
            }
            else if(x == 's'){
            	ss();
            }
            
            else if(x=='2'){
                string s="新手教程:11.按AWSD键移动22.按B键查看背包(我还没有做好它)好了,只有这些,按Q键退出.......................。....................................................................怎么还不退?没东西了..............................................好吧告诉你吧:https//www.luogu.com.cn/paste/dmdjsmn6,按Q键退出........................................................................?........................................................看来你的确需要提示:https//www.luogu.com.cn/paste/owft6f6g.............没了,按Q键退出.............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................Q";
            	system("cls");
            	for(i=0;i<1000;i++){
            		if(_kbhit()) //按键点击 
                    {
                        x = _getch();
                        if(x=='q'){
            	            system("cls");
					        shouye();
				        	break;	
				        }
                    }                                    //新手教程 
            		_sleep(100);
            		if(i==58||i==25||i==10){
            			if(i==58){
            				_sleep(1500);
            				cout<<endl<<endl<<endl<<endl<<endl;
						}else cout<<endl;
			        }else  if(i==998){
			            	system("cls");
					        shouye();
				        	break;
					}else cout<<s[i];	
				}	
			}
			else if(x=='b'){
				system("cls");
				string bag;
				char jiaohu;
				if(_kbhit()){//按键点击 
                x = _getch();
				if(jiyushu==0){
					cout<<"什么也没有......";
					cout<<endl<<endl<<endl<<endl<<endl<<"按移动键退出......"; 
			    	
			}
			} 
			} 
			if(jiyu==1){
            	_sleep(250);
            	system("cls");
            	string qb="获得一张纸,但好像需要密码(七位密码):";
            	cout<<GREEN<<"注:如果你不知道密码,就乱输退出"<<RESET;
            	cout<<endl<<endl<<endl<<endl<<endl;
            	for(int ll=0;ll<38;ll++){
            			cout<<qb[ll];
					_sleep(150);
				}
				cin>>xxx[0]>>xxx[1]>>xxx[2]>>xxx[3]>>xxx[4]>>xxx[5]>>xxx[6];
				            if(xxx[0]=='w'&&xxx[1]=='w'&&xxx[2]=='j'&&xxx[3]=='J'&&xxx[4]=='N'&&xxx[5]=='T'&&xxx[6]=='M'){
				            	system("cls");
				            	string zz="介绍:一张泛黄的纸,上面好像有一串字符:https://www.luogu.com.cn/paste/iucco7qr";
				            	cout<<"解锁成功!";
				            	_sleep(1500);
				            	system("cls");
				            	for(int u=0;u<79;u++){
				            		cout<<zz[u];
				            		_sleep(150);
				            		if(u==78)_sleep(5000);
								}
			            }else {
			            	system("cls");
			            	cout<<"密码错误,再找找吧"; 
			            	_sleep(2000);
						}
			            system("cls");
			            jiyu=0;
            	shouye();
			}
	    }
	}
	    if(xuhao==1){
	    	if(p1==0){
	    		p1++;
	    		system("cls");
	    		cout<<"第一关";
	    		_sleep(2000);
	    		system("cls");
	    		mig1();
			}
	    	if(_kbhit()) //按键点击 
        {
            x = _getch();
            if(x == 'a')
            {
                ma();
            }
            else if(x == 'd')
            {
                md();
            }
            else if(x == 'w')
            {
                mw();
            }
            else if(x == 's'){
            	ms();
            }
		}
	}
	if(xuhao==2){
	    	if(p2==0){
	    		migong2[79]='U';
				migong2[114]=' '; 
	    		mig2(),p2++;
			}
	    	if(_kbhit()) //按键点击 
        {
            x = _getch();
            if(x == 'a')
            {
                ma();
            }
            else if(x == 'd')
            {
                md();
            }
            else if(x == 'w')
            {
                mw();
            }
            else if(x == 's'){
            	ms();
            }
		}
	}
	if(xuhao==3){
	    	if(p3==0){
	    		mig3(),p3++;
			}
	    	if(_kbhit()) //按键点击 
        {
            x = _getch();
            if(x == 'a')
            {
                Ma();
            }
            else if(x == 'd')
            {
                Md();
            }
            else if(x == 'w')
            {
                Mw();
            }
            else if(x == 's'){
            	Ms();
            }
		}
	}
}
	return 0;
}

提示: 如果没有思路,可以尝试重复按D,要有耐心。

别发“谁问你了”,别jbQAQ

如果有BUG欢迎私信

2024/8/8 20:01
加载中...