@yangjifan
没人发我就发出去了哦(逃)
不喜勿喷
附上源代码:
#include<bits/stdc++.h>
#include<stdio.h>
#include<windows.h>
#include<conio.h>
//ofstream outfile;
//outfile.open("百密一疏.txt");
//outfile <<"百密一疏!"<<endl;
//outfile.close();
int chinese=0,maths=0,english=99.5;
using namespace std;
char input,key[999];string name;
int daoqian=0,intl=80,deaths=0;
void gotoxy(int x, int y, string a)//移动控制台光标位置
{
HANDLE hout;
COORD coord;
coord.X = x;
coord.Y = y;
hout = GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleCursorPosition(hout, coord);
cout<<a;
}
void Hidden_cursor(){//隐藏光标
HANDLE handle = GetStdHandle(STD_OUTPUT_HANDLE);
CONSOLE_CURSOR_INFO CursorInfo;
GetConsoleCursorInfo(handle, &CursorInfo);//获取控制台光标信息
CursorInfo.bVisible = false; //隐藏控制台光标
SetConsoleCursorInfo(handle, &CursorInfo);//设置控制台光标状态
}
void print_border(){//绘制边框
gotoxy(1,1,"┍--------------------------------------------------------------┓");cout<<endl;//┍┓┗┚-|
gotoxy(1,2,"| |");cout<<endl;
gotoxy(1,3,"| |");cout<<endl;
gotoxy(1,4,"| |");cout<<endl;
gotoxy(1,5,"| |");cout<<endl;
gotoxy(1,6,"| |");cout<<endl;
gotoxy(1,7,"| |");cout<<endl;
gotoxy(1,8,"| |");cout<<endl;
gotoxy(1,9,"| |");cout<<endl;
gotoxy(1,10,"| |");cout<<endl;
gotoxy(1,11,"| |");cout<<endl;
gotoxy(1,12,"| |");cout<<endl;
gotoxy(1,13,"| |");cout<<endl;
gotoxy(1,14,"| |");cout<<endl;
gotoxy(1,15,"| |");cout<<endl;
gotoxy(1,16,"| |");cout<<endl;
gotoxy(1,17,"| |");cout<<endl;
gotoxy(1,18,"| |");cout<<endl;
gotoxy(1,19,"| |");cout<<endl;
gotoxy(1,20,"┗--------------------------------------------------------------┚");cout<<endl;
}
void talks(string talksi){
int strlong=talksi.length();
for(int i=0;i<strlong;++i){
cout<<talksi[i];
Sleep(50);
}
cout<<"\n";
}
void thanksgive(){
system("cls");
gotoxy(1,1,"|");
gotoxy(1,2,"|");
gotoxy(1,3,"|");
gotoxy(1,4,"|");
gotoxy(1,5,"|");
gotoxy(1,6,"|");
gotoxy(1,7,"|");
gotoxy(1,8,"|");
gotoxy(1,9,"|");
gotoxy(1,10,"|");
gotoxy(1,11,"|");
gotoxy(7,1,"");
talks("作 者 表");
Sleep(100);
gotoxy(2,2,"");
talks("主作者/动画: ");
gotoxy(3,3,"");
talks("*** ");
Sleep(2000);
gotoxy(2,5,"");
talks("灵感/剧情/动画: ");
gotoxy(3,6,"");
talks("*** ");
Sleep(2000);
gotoxy(2,8,"");
talks("程序制作: ");
gotoxy(3,9,"");
talks("*** ");
gotoxy(2,10,"");
talks("致谢!!");
while(true){
gotoxy(2,19,"");talks("按下z键开始游戏");
int input=getch();
if(input=='z'){
break;
}
}
return ;
}
void loading(int a){
for(int i=0;i<a;i++){
gotoxy(1,12,"loading. ");
Sleep(300);
gotoxy(1,12," ");
gotoxy(1,12,"loading.. ");
Sleep(300);
gotoxy(1,12," ");
gotoxy(1,12,"loading... ");
Sleep(300);
gotoxy;(1,12," ");
}
}
void start(){//开始界面
cout<<"请输入你的名字: ";
cin>>name;
system("cls");
cout<<"请问你是否有2代继承码?" ;
cout<<"1 有 2 没有"<<endl;
int h;
cin>>h;
if(h==1);
{
ifstream readFile("2代继承码.txt");
readFile >> chinese;
readFile >> maths;
readFile >> english;
readFile.close();
}
system("color 7");
gotoxy(9,2,"欢迎来到-坑爹大冒险2代 1.7.0版本");
loading(6);
gotoxy(1,12," ");
gotoxy(1,12,"");talks("按下z键开始游戏");
gotoxy(1,14,"");talks("按下x键打开作者表");
while(true){
input=getch();
if(input=='z'){
system("cls");
cout<<"等等!";
Sleep(2000);
cout<<"应国家要求,需进行实名认证!\n";
Sleep(1500);
talks("正在进行面部扫描......");
Sleep(700);
talks("Check and approved !");
Sleep(2000);
system("cls");
gotoxy(2,2,"Neural port docking");
for(int i=1;i<=100;i++)
{
gotoxy(2,3,"");
cout<<i<<"%";
Sleep(10);
}
Sleep(500);
gotoxy(2,4,"Level of neurological disorder detected");
for(int i=1;i<=100;i++)
{
gotoxy(2,5,"");
cout<<i<<"%";
Sleep(10);
}
Sleep(500);
gotoxy(2,6,"Sympathetic nervous system");
for(int i=1;i<=100;i++)
{
gotoxy(2,7,"");
cout<<i<<"%";
Sleep(10);
}
Sleep(500);
gotoxy(2,8,"Circle of Willis examination");
for(int i=1;i<=100;i++)
{
gotoxy(2,9,"");
cout<<i<<"%";
Sleep(10);
}
Sleep(500);
gotoxy(2,10,"Amyotrophic lateral sclerosis");
for(int i=1;i<=100;i++)
{
gotoxy(2,11,"");
cout<<i<<"%";
Sleep(10);
}
Sleep(500);
gotoxy(2,12,"Detection of spinal cord injury");
for(int i=1;i<=100;i++)
{
gotoxy(2,13,"");
cout<<i<<"%";
Sleep(10);
}
Sleep(500);
gotoxy(2,14,"Brain protein test");
for(int i=1;i<=100;i++)
{
gotoxy(2,15,"");
cout<<i<<"%";
Sleep(10);
}
Sleep(500);
gotoxy(2,16,"The left and right sides of the brain separate I");
for(int i=1;i<=100;i++)
{
gotoxy(2,17,"");
cout<<i<<"%";
Sleep(10);
}
Sleep(500);
gotoxy(2,18,"The left and right sides of the brain separate II");
for(int i=1;i<=100;i++)
{
gotoxy(2,19,"");
cout<<i<<"%";
Sleep(10);
}
Sleep(500);
gotoxy(2,20,"The left and right sides of the brain separate III");
for(int i=1;i<=100;i++)
{
gotoxy(2,21,"");
cout<<i<<"%";
Sleep(10);
}
Sleep(500);
gotoxy(2,22,"NEUROREFLEX analysis I");
for(int i=1;i<=100;i++)
{
gotoxy(2,23,"");
cout<<i<<"%";
Sleep(10);
}
Sleep(500);
gotoxy(2,24,"NEUROREFLEX analysis II");
for(int i=1;i<=100;i++)
{
gotoxy(2,25,"");
cout<<i<<"%";
Sleep(10);
}
Sleep(200);
cout<<endl;
talks("资源加载完毕,即将开启序章");
Sleep(3000);
system("cls") ;
gotoxy(2,2,"第一章:拉开序幕");
Sleep(200);
system("cls");
gotoxy(2,2," 第一章:拉开序幕");
Sleep(200);
system("cls");
gotoxy(2,2," 第一章:拉开序幕");
Sleep(200);
system("cls");
gotoxy(2,2," 第一章:拉开序幕");
Sleep(200);
system("cls");
gotoxy(2,2," 第一章:拉开序幕");
Sleep(200);
system("cls");
gotoxy(2,2," 第一章:拉开序幕");
Sleep(200);
system("cls");
gotoxy(2,2," 第一章:拉开序幕");
Sleep(200);
system("cls");
talks("Hello,I want to play a game!");
Sleep(1000);
break;
}
else if(input=='x'){
thanksgive();
}
}
}
int part0();
bool death(){
system("cls");
system("color 4");
talks("定时已重置");
system("shutdown -a");
system("shutdown -s -c GAME-RESTART! -t 210 ");
intl-=15;
gotoxy(9,2,"");talks("你 死 了 !");
deaths++;
gotoxy(9,8,"");talks("请自行寻找重开游戏方式!");
while(1){
cin>>input;
if(input=='I') break;
}
while(1){
cin>>input;
if(input=='A') break;
}
while(1){
cin>>input;
if(input=='M') break;
}
while(1){
cin>>input;
if(input=='S'||input=='Z') break;
}
while(1){
cin>>input;
if(input=='H'||input=='U') break;
}
while(1){
cin>>input;
if(input=='A'||input=='O') break;
}
while(1){
cin>>input;
if(input=='B'||input=='Z') break;
}
while(1){
cin>>input;
if(input=='I'||input=='E') break;
}
return true;
}
void authentication();
int part0()//level0
{
system("cls");
system("color 2");
print_border();
gotoxy(9,2,"欢迎来到第0关, 请选择你的第1关!");
gotoxy(9,3,"A.自杀 B.选择A C.选择B");
gotoxy(2,5,"按Enter确定输入");
gotoxy(2,4,"你的选择: ");
while(1){
gotoxy(11,4,"");
cin>>input;
if(input=='E'){intl+=15; system("cls"); talks("你来到了学校......\n");
system("cls");
gotoxy(2,2,"----------------5年399982111109班--");
gotoxy(2,3,"----------------_________________--");
gotoxy(2,4,"---------------| |-");
gotoxy(2,5,"---------------| |-");
gotoxy(2,6,"---------------| |-");
gotoxy(2,7,"---------------| |-");
gotoxy(2,8,"------o--------| |-");
gotoxy(2,9,"-----/|\\-------| |-");
gotoxy(2,10,"-----/\\--------| |-");
gotoxy(2,11,"---------------| |-");
Sleep(1000);
gotoxy(2,2,"----------------5年399982111109班--");
gotoxy(2,3,"----------------_________________--");
gotoxy(2,4,"---------------| |-");
gotoxy(2,5,"---------------| |-");
gotoxy(2,6,"---------------| |-");
gotoxy(2,7,"---------------| |-");
gotoxy(2,8,"------o--------| |-");
gotoxy(2,9,"-----/|\\-------| |-");
gotoxy(2,10,"-----/\\--------| |-");
gotoxy(2,11,"---------------| |-");
gotoxy(3,7,"");
talks("到了! 欧耶!");
Sleep(1000);
gotoxy(2,2,"----------------5年399982111109班--");
gotoxy(2,3,"----------------_________________--");
gotoxy(2,4,"---------------| |-");
gotoxy(2,5,"---------------| |-");
gotoxy(2,6,"---------------| |-");
gotoxy(2,7,"---------------| |-");
gotoxy(2,8,"------o--------| |-");
gotoxy(2,9,"-----/|\\-------| |-");
gotoxy(2,10,"-----/\\--------| |-");
gotoxy(2,11,"---------------| |-");
Sleep(200);
gotoxy(2,2,"----------------5年399982111109班--");
gotoxy(2,3,"----------------_________________--");
gotoxy(2,4,"---------------| |-");
gotoxy(2,5,"---------------| |-");
gotoxy(2,6,"---------------| |-");
gotoxy(2,7,"---------------| |-");
gotoxy(2,8,"-------o-------| |-");
gotoxy(2,9,"------/|\\------| |-");
gotoxy(2,10,"------/\\-------| |-");
gotoxy(2,11,"---------------| |-");
Sleep(200);
gotoxy(2,2,"----------------5年399982111109班--");
gotoxy(2,3,"----------------_________________--");
gotoxy(2,4,"---------------| |-");
gotoxy(2,5,"---------------| |-");
gotoxy(2,6,"---------------| |-");
gotoxy(2,7,"---------------| |-");
gotoxy(2,8,"--------o------| |-");
gotoxy(2,9,"-------/|\\-----| |-");
gotoxy(2,10,"-------/\\------| |-");
gotoxy(2,11,"---------------| |-");
Sleep(200);
gotoxy(2,2,"----------------5年399982111109班--");
gotoxy(2,3,"----------------_________________--");
gotoxy(2,4,"---------------| |-");
gotoxy(2,5,"---------------| |-");
gotoxy(2,6,"---------------| |-");
gotoxy(2,7,"---------------| |-");
gotoxy(2,8,"---------o-----| |-");
gotoxy(2,9,"--------/|\\----| |-");
gotoxy(2,10,"--------/\\-----| |-");
gotoxy(2,11,"---------------| |-");
Sleep(200);
gotoxy(2,2,"----------------5年399982111109班--");
gotoxy(2,3,"----------------_________________--");
gotoxy(2,4,"---------------| |-");
gotoxy(2,5,"---------------| |-");
gotoxy(2,6,"---------------| |-");
gotoxy(2,7,"---------------| |-");
gotoxy(2,8,"----------o----| |-");
gotoxy(2,9,"---------/|\\---| |-");
gotoxy(2,10,"---------/\\----| |-");
gotoxy(2,11,"---------------| |-");
Sleep(200);
gotoxy(2,2,"----------------5年399982111109班--");
gotoxy(2,3,"----------------_________________--");
gotoxy(2,4,"---------------| |-");
gotoxy(2,5,"---------------| |-");
gotoxy(2,6,"---------------| |-");
gotoxy(2,7,"---------------| |-");
gotoxy(2,8,"-----------o---| |-");
gotoxy(2,9,"----------/|\\--| |-");
gotoxy(2,10,"----------/\\---| |-");
gotoxy(2,11,"---------------| |-");
Sleep(200);
gotoxy(2,2,"----------------5年399982111109班--");
gotoxy(2,3,"----------------_________________--");
gotoxy(2,4,"---------------| |-");
gotoxy(2,5,"---------------| |-");
gotoxy(2,6,"---------------| |-");
gotoxy(2,7,"---------------| |-");
gotoxy(2,8,"-------------o-| |-");
gotoxy(2,9,"------------/|\\| |-");
gotoxy(2,10,"------------/\\-| |-");
gotoxy(2,11,"---------------| |-");
Sleep(200);
gotoxy(2,2,"----------------5年399982111109班--");
gotoxy(2,3,"----------------_________________--");
gotoxy(2,4,"---------------| |-");
gotoxy(2,5,"---------------| |-");
gotoxy(2,6,"---------------| |-");
gotoxy(2,7,"---------------| |-");
gotoxy(2,8,"--------------o| |-");
gotoxy(2,9,"-------------/|\\ |-");
gotoxy(2,10,"-------------/\\| |-");
gotoxy(2,11,"---------------| |-");
Sleep(200);
gotoxy(2,2,"----------------5年399982111109班--");
gotoxy(2,3,"----------------_________________--");
gotoxy(2,4,"---------------| |-");
gotoxy(2,5,"---------------| |-");
gotoxy(2,6,"---------------| |-");
gotoxy(2,7,"---------------| |-");
gotoxy(2,8,"---------------o |-");
gotoxy(2,9,"--------------/|\\ |-");
gotoxy(2,10,"--------------/\\ |-");
gotoxy(2,11,"---------------| |-");
Sleep(200);
Sleep(200);
gotoxy(2,2,"----------------5年399982111109班--");
gotoxy(2,3,"----------------_________________--");
gotoxy(2,4,"---------------| |-");
gotoxy(2,5,"---------------| |-");
gotoxy(2,6,"---------------| |-");
gotoxy(2,7,"---------------| |-");
gotoxy(2,8,"----------------o |-");
gotoxy(2,9,"---------------/|\\ |-");
gotoxy(2,10,"---------------/\\ |-");
gotoxy(2,11,"---------------| |-");
Sleep(200);
gotoxy(2,2,"----------------5年399982111109班--");
gotoxy(2,3,"----------------_________________--");
gotoxy(2,4,"---------------| |-");
gotoxy(2,5,"---------------| |-");
gotoxy(2,6,"---------------| |-");
gotoxy(2,7,"---------------| |-");
gotoxy(2,8,"---------------| o |-");
gotoxy(2,9,"---------------|/|\\ |-");
gotoxy(2,10,"---------------| /\\ |-");
gotoxy(2,11,"---------------| |-");
Sleep(200);
Sleep(200);
gotoxy(2,2,"----------------5年399982111109班--");
gotoxy(2,3,"----------------_________________--");
gotoxy(2,4,"---------------| |-");
gotoxy(2,5,"---------------| |-");
gotoxy(2,6,"---------------| |-");
gotoxy(2,7,"---------------| |-");
gotoxy(2,8,"---------------| o |-");
gotoxy(2,9,"---------------| /|\\ |-");
gotoxy(2,10,"---------------| /\\ |-");
gotoxy(2,11,"---------------| |-");
Sleep(200);
gotoxy(2,2,"----------------5年399982111109班--");
gotoxy(2,3,"----------------_________________--");
gotoxy(2,4,"---------------| |-");
gotoxy(2,5,"---------------| |-");
gotoxy(2,6,"---------------| |-");
gotoxy(2,7,"---------------| |-");
gotoxy(2,8,"---------------| o |-");
gotoxy(2,9,"---------------| /|\\ |-");
gotoxy(2,10,"---------------| /\\ |-");
gotoxy(2,11,"---------------| |-");
Sleep(200);
gotoxy(2,2,"----------------5年399982111109班--");
gotoxy(2,3,"----------------_________________--");
gotoxy(2,4,"---------------| |-");
gotoxy(2,5,"---------------| |-");
gotoxy(2,6,"---------------| |-");
gotoxy(2,7,"---------------| |-");
gotoxy(2,8,"---------------| |-");
gotoxy(2,9,"---------------| |-");
gotoxy(2,10,"---------------| |-");
gotoxy(2,11,"---------------| |-");
Sleep(400);
system("cls");
talks("你正在上课......");return 0;}
else{
system("cls");
gotoxy(2,2,"- o");
gotoxy(2,3," \\|/");
gotoxy(2,4," |");
gotoxy(2,5," /\\");
Sleep(200);
gotoxy(2,2," - o");
gotoxy(2,3," \\|/");
gotoxy(2,4," |");
gotoxy(2,5," /\\");
Sleep(200);
gotoxy(2,2," - o");
gotoxy(2,3," \\|/");
gotoxy(2,4," |");
gotoxy(2,5," /\\");
Sleep(200);
gotoxy(2,2," - o");
gotoxy(2,3," \\|/");
gotoxy(2,4," |");
gotoxy(2,5," /\\");
Sleep(200);
gotoxy(2,2," - o");
gotoxy(2,3," \\|/");
gotoxy(2,4," |");
gotoxy(2,5," /\\");
Sleep(200);
gotoxy(2,2," - o");
gotoxy(2,3," \\|/");
gotoxy(2,4," |");
gotoxy(2,5," /\\");
Sleep(200);
gotoxy(2,2," - o");
gotoxy(2,3," \\|/");
gotoxy(2,4," |");
gotoxy(2,5," /\\");
Sleep(200);
gotoxy(2,2," - o");
gotoxy(2,3," \\|/");
gotoxy(2,4," |");
gotoxy(2,5," /\\");
Sleep(200);
gotoxy(2,2," | o");
gotoxy(2,3," \\|/");
gotoxy(2,4," |");
gotoxy(2,5," /\\");
Sleep(200);
gotoxy(2,2," o");
gotoxy(2,3," | \\|/");
gotoxy(2,4," |");
gotoxy(2,5," /\\");
Sleep(200);
gotoxy(2,2," o");
gotoxy(2,3," \\|/");
gotoxy(2,4," | |");
gotoxy(2,5," /\\");
Sleep(200);
gotoxy(2,2," o");
gotoxy(2,3," \\|/");
gotoxy(2,4," |");
gotoxy(2,5," | /\\");
system("cls");
Sleep(200);
talks("大难不死");
Sleep(2000);
gotoxy(2,2," o");
gotoxy(2,3," \\|/");
gotoxy(2,4," |");
gotoxy(2,5," /\\");
Sleep(200);
gotoxy(2,2," o");
gotoxy(2,3," \\|/");
gotoxy(2,4," |");
gotoxy(2,5," | /\\");
Sleep(200);
gotoxy(2,2," o");
gotoxy(2,3," \\|/");
gotoxy(2,4," - |");
gotoxy(2,5," | /\\");
Sleep(200);
gotoxy(2,2," o");
gotoxy(2,3," \\|/");
gotoxy(2,4," --|");
gotoxy(2,5," | /\\");
Sleep(200);
gotoxy(2,2," o");
gotoxy(2,3," \\|/");
gotoxy(2,4," ---");
gotoxy(2,5," | /\\");
Sleep(200);
Sleep(200);
gotoxy(2,2," o");
gotoxy(2,3," \\|/");
gotoxy(2,4," ----");
gotoxy(2,5," | /\\");
system("cls");
Sleep(200);
talks("必有补刀");
return 1;
}
}
}
int part1(){//level1
Sleep(500);
system("cls");
print_border();
gotoxy(1,2," ---------- ---------- ---------- ----------");
gotoxy(1,3," | 杨济帆 | | 卢泓希 | | 石浚羽 | | &&&&&& |");
gotoxy(1,4," ---------- ---------- ---------- ----------");
gotoxy(1,5," ---------- ----------");
gotoxy(1,6," | 你 | | 同学AA |");
gotoxy(1,7," ---------- ----------");
gotoxy(1,16," =================");
gotoxy(1,17," || 你们班班主任 ||");
gotoxy(1,18," =================");
gotoxy(23,15,"");Sleep(200);talks("*&*^@*^#*&%^%@&#^%E@&*^#E");
Sleep(400);gotoxy(23,15,"");talks(" ");
Sleep(400);gotoxy(23,15,"");talks("这个问题谁能回答???");
Sleep(400);gotoxy(19,8,"");talks("A.回答 B.不回答");
gotoxy(19,9,"");talks("YOUR DECIDE:");gotoxy(31,9,"");cin>>input;
if(input=='A'){
intl+=5;
Sleep(100);gotoxy(23,15,"");talks(" ");
gotoxy(19,8," ");gotoxy(19,9," ");
gotoxy(19,8,"");talks("*!&^&*@^%!@%&\n !%^!^%@*!&^@\n *!^@!!");
Sleep(1000);
gotoxy(19,8,"");talks(" ");gotoxy(19,9,"");talks(" "),gotoxy(19,10,"");talks(" ");
system("cls");
return 0;
}
else{
intl-=15;
Sleep(100);gotoxy(23,15,"");talks(" ");
gotoxy(19,8," ");gotoxy(19,9," ");
gotoxy(19,8,"");talks("..................");
system("cls");
Sleep(300);
gotoxy(2,2,"--------------------------------");//┍┓┗┚-|
gotoxy(2,3," | | | | | | | | | | | | | | | |");
gotoxy(2,4,"--------------------------------");
gotoxy(2,5,"------o-------------o-----------");
gotoxy(2,6,"-----/|\\-----------/|\\----------");
gotoxy(2,7,"-----/\\---------100/\\-----------");
gotoxy(2,8,"--------------------------------");
}
}
int part2(){
print_border();
gotoxy(2,2," ---------------------");
gotoxy(2,3," 语文 :"); cout<<chinese;
gotoxy(2,4," 数学 :");cout<<maths;
gotoxy(2,5," 英语 :");cout<<english;
gotoxy(2,6," ---------------------");
gotoxy(2,7,"这是你期中考试的成绩单");
Sleep(5000);
system("cls");
talks("正在清洁教室......");Sleep(2500);system("cls");
talks("正在召集家长......\n");Sleep(300);
talks("正在发放成绩单......"); Sleep(300);
system("cls");
print_border();
gotoxy(1,2," ---------- ---------- ---------- ----------");
gotoxy(1,3," |同学他爸| |同学BB爸| |学同他妈| |同学CC妈|");
gotoxy(1,4," ---------- ---------- ---------- ----------");
gotoxy(1,5," ---------- ----------");
gotoxy(1,6," | 你爸 | |同学AA爸|");
gotoxy(1,7," ---------- ----------");
gotoxy(1,16," =================");
gotoxy(1,17," || 你们班班主任 ||");
gotoxy(1,18," =================");
Sleep(300);
gotoxy(23,15,"");talks("xxx,你才考了这么一点分数?!");
while(daoqian<10){
int t=0;
t++;
print_border();
gotoxy(1,2," ---------- ---------- ---------- ----------");
gotoxy(1,3," |同学他爸| |同学BB爸| |学同他妈| |同学CC妈|");
gotoxy(1,4," ---------- ---------- ---------- ----------");
gotoxy(1,5," ---------- ----------");
gotoxy(1,6," | 你爸 | |同学AA爸|");
gotoxy(1,7," ---------- ----------");
gotoxy(1,16," =================");
gotoxy(1,17," || 你们班班主任 ||");
gotoxy(1,18," =================");
gotoxy(19,8,"");
if(t==1) talks("你 如 何 应 对 ??????");
else talks("老师认为你道歉的不够深度。");
gotoxy(19,9,"A.我英语考的很不错嘛!");
gotoxy(19,10,"B.向家长道歉");gotoxy(19,11,"");talks("YOUR DECIDE:");
gotoxy(19,23,"");cin>>input;
if(input=='A'){
intl-=10;
system("cls");
print_border();
gotoxy(1,2," ---------- ---------- ---------- ----------");
gotoxy(1,3," |同学他爸| |同学BB爸| |学同他妈| |同学CC妈|");
gotoxy(1,4," ---------- ---------- ---------- ----------");
gotoxy(1,5," ---------- ----------");
gotoxy(1,6," | 你爸 | |同学AA爸|");
gotoxy(1,7," ---------- ----------");
gotoxy(1,16," =================");
gotoxy(1,17," || 你们班班主任 ||");
gotoxy(1,18," =================");
Sleep(700);
system("cls");
print_border();
gotoxy(1,2," ---------- ---------- ---------- ----------");
gotoxy(1,3," |同学他爸| |同学BB爸| |学同他妈| |同学CC妈|");
gotoxy(1,4," ---------- ---------- ---------- ----------");
gotoxy(1,5," ---------- ----------");
gotoxy(1,6," | 你爸 | |同学AA爸|");
gotoxy(1,7," ---------- ----------");
gotoxy(1,15," ^");
gotoxy(1,16," ==|==============");
gotoxy(1,17," || 你们班班主任 ||");
gotoxy(1,18," =================");
Sleep(700);
print_border();
gotoxy(1,2," ---------- ---------- ---------- ----------");
gotoxy(1,3," |同学他爸| |同学BB爸| |学同他妈| |同学CC妈|");
gotoxy(1,4," ---------- ---------- ---------- ----------");
gotoxy(1,5," ---------- ----------");
gotoxy(1,6," | 你爸 | |同学AA爸|");
gotoxy(1,7," ---------- ----------");
gotoxy(1,14," ^");
gotoxy(1,15," |");
gotoxy(1,16," =================");
gotoxy(1,17," || 你们班班主任 ||");
Sleep(700);
print_border();
gotoxy(1,2," ---------- ---------- ---------- ----------");
gotoxy(1,3," |同学他爸| |同学BB爸| |学同他妈| |同学CC妈|");
gotoxy(1,4," ---------- ---------- ---------- ----------");
gotoxy(1,5," ---------- ----------");
gotoxy(1,6," | 你爸 | |同学AA爸|");
gotoxy(1,7," ---------- ----------");
gotoxy(1,13," ^");
gotoxy(1,14," |");
gotoxy(1,16," =================");
gotoxy(1,17," || 你们班班主任 ||");
gotoxy(1,18," =================");
Sleep(700);
print_border();
gotoxy(1,2," ---------- ---------- ---------- ----------");
gotoxy(1,3," |同学他爸| |同学BB爸| |学同他妈| |同学CC妈|");
gotoxy(1,4," ---------- ---------- ---------- ----------");
gotoxy(1,5," ---------- ----------");
gotoxy(1,6," | 你爸 | |同学AA爸|");
gotoxy(1,7," ---------- ----------");
gotoxy(1,12," ^");
gotoxy(1,13," |");
gotoxy(1,16," =================");
gotoxy(1,17," || 你们班班主任 ||");
gotoxy(1,18," =================");
Sleep(700);
print_border();
gotoxy(1,2," ---------- ---------- ---------- ----------");
gotoxy(1,3," |同学他爸| |同学BB爸| |学同他妈| |同学CC妈|");
gotoxy(1,4," ---------- ---------- ---------- ----------");
gotoxy(1,5," ---------- ----------");
gotoxy(1,6," | 你爸 | |同学AA爸|");
gotoxy(1,7," ---------- ----------");
gotoxy(1,11," ^");
gotoxy(1,12," |");
gotoxy(1,16," =================");
gotoxy(1,17," || 你们班班主任 ||");
gotoxy(1,18," =================");
Sleep(700);
print_border();
gotoxy(1,2," ---------- ---------- ---------- ----------");
gotoxy(1,3," |同学他爸| |同学BB爸| |学同他妈| |同学CC妈|");
gotoxy(1,4," ---------- ---------- ---------- ----------");
gotoxy(1,5," ---------- ----------");
gotoxy(1,6," | 你爸 | |同学AA爸|");
gotoxy(1,7," ---------- ----------");
gotoxy(1,10," ^");
gotoxy(1,11," |");
gotoxy(1,16," =================");
gotoxy(1,17," || 你们班班主任 ||");
gotoxy(1,18," =================");
Sleep(700);
print_border();
gotoxy(1,2," ---------- ---------- ---------- ----------");
gotoxy(1,3," |同学他爸| |同学BB爸| |学同他妈| |同学CC妈|");
gotoxy(1,4," ---------- ---------- ---------- ----------");
gotoxy(1,5," ---------- ----------");
gotoxy(1,6," | 你爸 | |同学AA爸|");
gotoxy(1,7," ---------- ----------");
gotoxy(1,9," ^");
gotoxy(1,10," |");
gotoxy(1,16," =================");
gotoxy(1,17," || 你们班班主任 ||");
gotoxy(1,18," =================");
Sleep(700);
print_border();
gotoxy(1,2," ---------- ---------- ---------- ----------");
gotoxy(1,3," |同学他爸| |同学BB爸| |学同他妈| |同学CC妈|");
gotoxy(1,4," ---------- ---------- ---------- ----------");
gotoxy(1,5," ---------- ----------");
gotoxy(1,6," | 你爸 | |同学AA爸|");
gotoxy(1,7," ---------- ----------");
gotoxy(1,8," ^");
gotoxy(1,9," |");
gotoxy(1,16," =================");
gotoxy(1,17," || 你们班班主任 ||");
gotoxy(1,18," =================");
Sleep(700);
print_border();
gotoxy(1,2," ---------- ---------- ---------- ----------");
gotoxy(1,3," |同学他爸| |同学BB爸| |学同他妈| |同学CC妈|");
gotoxy(1,4," ---------- ---------- ---------- ----------");
gotoxy(1,5," ---------- ----------");
gotoxy(1,6," | 你爸 | |同学AA爸|");
gotoxy(1,7," ------^--- ----------");
gotoxy(1,8," |");
gotoxy(1,16," =================");
gotoxy(1,17," || 你们班班主任 ||");
gotoxy(1,18," =================");
Sleep(700);
print_border();
gotoxy(2,2,"--------------------------------");//┍┓┗┚-|
gotoxy(2,3," | | | | | | | | | | | | | | | |");
gotoxy(2,4,"--------你----------------------");
gotoxy(2,5,"---------o----------------------");
gotoxy(2,6,"--------/|\\-----<—------------");
gotoxy(2,7,"--------/\\----------------------");
gotoxy(2,8,"--------------------------------");
Sleep(700);
print_border();
gotoxy(2,2,"--------------------------------");//┍┓┗┚-|
gotoxy(2,3," | | | | | | | | | | | | | | | |");
gotoxy(2,4,"--------你----------------------");
gotoxy(2,5,"---------o----------------------");
gotoxy(2,6,"--------/|\\----<—-------------");
gotoxy(2,7,"--------/\\----------------------");
gotoxy(2,8,"--------------------------------");
Sleep(700);
print_border();
gotoxy(2,2,"--------------------------------");//┍┓┗┚-|
gotoxy(2,3," | | | | | | | | | | | | | | | |");
gotoxy(2,4,"--------你----------------------");
gotoxy(2,5,"---------o----------------------");
gotoxy(2,6,"--------/|\\---<—--------------");
gotoxy(2,7,"--------/\\----------------------");
gotoxy(2,8,"--------------------------------");
Sleep(700);
print_border();
gotoxy(2,2,"--------------------------------");//┍┓┗┚-|
gotoxy(2,3," | | | | | | | | | | | | | | | |");
gotoxy(2,4,"--------你----------------------");
gotoxy(2,5,"---------o----------------------");
gotoxy(2,6,"--------/|\\--<—---------------");
gotoxy(2,7,"--------/\\----------------------");
gotoxy(2,8,"--------------------------------");
Sleep(700);
print_border();
gotoxy(2,2,"--------------------------------");//┍┓┗┚-|
gotoxy(2,3," | | | | | | | | | | | | | | | |");
gotoxy(2,4,"--------你----------------------");
gotoxy(2,5,"---------o----------------------");
gotoxy(2,6,"--------/|\\-<—----------------");
gotoxy(2,7,"--------/\\----------------------");
gotoxy(2,8,"--------------------------------");
Sleep(700);
print_border();
gotoxy(2,2,"--------------------------------");//┍┓┗┚-|
gotoxy(2,3," | | | | | | | | | | | | | | | |");
gotoxy(2,4,"--------你----------------------");
gotoxy(2,5,"---------o----------------------");
gotoxy(2,6,"--------/|\\<—-----------------");
gotoxy(2,7,"--------/\\----------------------");
gotoxy(2,8,"--------------------------------");
Sleep(700);
print_border();
gotoxy(2,2,"--------------------------------");//┍┓┗┚-|
gotoxy(2,3," | | | | | | | | | | | | | | | |");
gotoxy(2,4,"--------你----------------------");
gotoxy(2,5,"---------o----------------------");
gotoxy(2,6,"--------/|<—-------------------");
gotoxy(2,7,"--------/\\----------------------");
gotoxy(2,8,"--------------------------------");
Sleep(700);
print_border();
gotoxy(2,2,"--------------------------------");//┍┓┗┚-|
gotoxy(2,3," | | | | | | | | | | | | | | | |");
gotoxy(2,4,"--------你----------------------");
gotoxy(2,5,"---------o----------------------");
gotoxy(2,6,"--------/<—--------------------");
gotoxy(2,7,"--------/\\----------------------");
gotoxy(2,8,"--------------------------------");
Sleep(700);
print_border();
gotoxy(2,2,"--------------------------------");//┍┓┗┚-|
gotoxy(2,3," | | | | | | | | | | | | | | | |");
gotoxy(2,4,"--------你----------------------");
gotoxy(2,5,"---------o----------------------");
gotoxy(2,6,"--------<—---------------------");
gotoxy(2,7,"--------/\\----------------------");
gotoxy(2,8,"--------------------------------");
gotoxy(2,9,"");talks("你们班班主任掷出了一根毒飞镖,刺中了你!!!");
return 1;
}
else{
daoqian++;
intl+=1;
system("cls");
}
t++;
}
return 0;
}
int part3(){
talks("请输入进入第二章的密钥(提示:你在第一代的末尾看到了什么?): ");
cin>>key;
if(key[0]=='/'&&key[1]=='/'&&key[2]=='t'&&key[3]=='n'&&key[4]=='d'){
talks("密钥正确!");
Sleep(400);
system("cls");
talks("第二章:\"最后\"de考验");
Sleep(600);
system("cls");gotoxy(2,2,"-----------------------------------");
gotoxy(2,3,"----------------_________________--");
gotoxy(2,4,"---------------| |-");
gotoxy(2,5,"---------------| |-");
gotoxy(2,6,"---------------| |-");
gotoxy(2,7,"---------------| |-");
gotoxy(2,8,"------o--------| |-");
gotoxy(2,9,"-----/|\\-------| |-");
gotoxy(2,10,"-----/\\--------| |-");
gotoxy(2,11,"---------------| |-");
Sleep(1000);
gotoxy(2,2,"-----------------------------------");
gotoxy(2,3,"----------------_________________--");
gotoxy(2,4,"---------------| |-");
gotoxy(2,5,"---------------| |-");
gotoxy(2,6,"---------------| |-");
gotoxy(2,7,"---------------| |-");
gotoxy(2,8,"------o--------| |-");
gotoxy(2,9,"-----/|\\-------| |-");
gotoxy(2,10,"-----/\\--------| |-");
gotoxy(2,11,"---------------| |-");
gotoxy(2,7,"");
talks("诶?!");
Sleep(350);
gotoxy(3,7,"");
talks("门怎么开了?!");
Sleep(1000);
gotoxy(2,2,"-----------------------------------");
gotoxy(2,3,"----------------_________________--");
gotoxy(2,4,"---------------| |-");
gotoxy(2,5,"---------------| |-");
gotoxy(2,6,"---------------| |-");
gotoxy(2,7,"---------------| |-");
gotoxy(2,8,"------o--------| |-");
gotoxy(2,9,"-----/|\\-------| |-");
gotoxy(2,10,"-----/\\--------| |-");
gotoxy(2,11,"---------------| |-");
Sleep(200);
gotoxy(2,2,"-----------------------------------");
gotoxy(2,3,"----------------_________________--");
gotoxy(2,4,"---------------| |-");
gotoxy(2,5,"---------------| |-");
gotoxy(2,6,"---------------| |-");
gotoxy(2,7,"---------------| |-");
gotoxy(2,8,"-------o-------| |-");
gotoxy(2,9,"------/|\\------| |-");
gotoxy(2,10,"------/\\-------| |-");
gotoxy(2,11,"---------------| |-");
Sleep(200);
gotoxy(2,2,"-----------------------------------");
gotoxy(2,3,"----------------_________________--");
gotoxy(2,4,"---------------| |-");
gotoxy(2,5,"---------------| |-");
gotoxy(2,6,"---------------| |-");
gotoxy(2,7,"---------------| |-");
gotoxy(2,8,"--------o------| |-");
gotoxy(2,9,"-------/|\\-----| |-");
gotoxy(2,10,"-------/\\------| |-");
gotoxy(2,11,"---------------| |-");
Sleep(200);
gotoxy(2,2,"-----------------------------------");
gotoxy(2,3,"----------------_________________--");
gotoxy(2,4,"---------------| |-");
gotoxy(2,5,"---------------| |-");
gotoxy(2,6,"---------------| |-");
gotoxy(2,7,"---------------| |-");
gotoxy(2,8,"---------o-----| |-");
gotoxy(2,9,"--------/|\\----| |-");
gotoxy(2,10,"--------/\\-----| |-");
gotoxy(2,11,"---------------| |-");
Sleep(200);
gotoxy(2,2,"-----------------------------------");
gotoxy(2,3,"----------------_________________--");
gotoxy(2,4,"---------------| |-");
gotoxy(2,5,"---------------| |-");
gotoxy(2,6,"---------------| |-");
gotoxy(2,7,"---------------| |-");
gotoxy(2,8,"----------o----| |-");
gotoxy(2,9,"---------/|\\---| |-");
gotoxy(2,10,"---------/\\----| |-");
gotoxy(2,11,"---------------| |-");
Sleep(200);
gotoxy(2,2,"-----------------------------------");
gotoxy(2,3,"----------------_________________--");
gotoxy(2,4,"---------------| |-");
gotoxy(2,5,"---------------| |-");
gotoxy(2,6,"---------------| |-");
gotoxy(2,7,"---------------| |-");
gotoxy(2,8,"-----------o---| |-");
gotoxy(2,9,"----------/|\\--| |-");
gotoxy(2,10,"----------/\\---| |-");
gotoxy(2,11,"---------------| |-");
Sleep(200);
gotoxy(2,2,"-----------------------------------");
gotoxy(2,3,"----------------_________________--");
gotoxy(2,4,"---------------| |-");
gotoxy(2,5,"---------------| |-");
gotoxy(2,6,"---------------| |-");
gotoxy(2,7,"---------------| |-");
gotoxy(2,8,"-------------o-| |-");
gotoxy(2,9,"------------/|\\| |-");
gotoxy(2,10,"------------/\\-| |-");
gotoxy(2,11,"---------------| |-");
Sleep(200);
gotoxy(2,2,"-----------------------------------");
gotoxy(2,3,"----------------_________________--");
gotoxy(2,4,"---------------| |-");
gotoxy(2,5,"---------------| |-");
gotoxy(2,6,"---------------| |-");
gotoxy(2,7,"---------------| |-");
gotoxy(2,8,"--------------o| |-");
gotoxy(2,9,"-------------/|\\ |-");
gotoxy(2,10,"-------------/\\| |-");
gotoxy(2,11,"---------------| |-");
Sleep(200);
gotoxy(2,2,"-----------------------------------");
gotoxy(2,3,"----------------_________________--");
gotoxy(2,4,"---------------| |-");
gotoxy(2,5,"---------------| |-");
gotoxy(2,6,"---------------| |-");
gotoxy(2,7,"---------------| |-");
gotoxy(2,8,"---------------o |-");
gotoxy(2,9,"--------------/|\\ |-");
gotoxy(2,10,"--------------/\\ |-");
gotoxy(2,11,"---------------| |-");
Sleep(200);
Sleep(200);
gotoxy(2,2,"-----------------------------------");
gotoxy(2,3,"----------------_________________--");
gotoxy(2,4,"---------------| |-");
gotoxy(2,5,"---------------| |-");
gotoxy(2,6,"---------------| |-");
gotoxy(2,7,"---------------| |-");
gotoxy(2,8,"----------------o |-");
gotoxy(2,9,"---------------/|\\ |-");
gotoxy(2,10,"---------------/\\ |-");
gotoxy(2,11,"---------------| |-");
Sleep(200);
gotoxy(2,2,"-----------------------------------");
gotoxy(2,3,"----------------_________________--");
gotoxy(2,4,"---------------| |-");
gotoxy(2,5,"---------------| |-");
gotoxy(2,6,"---------------| |-");
gotoxy(2,7,"---------------| |-");
gotoxy(2,8,"---------------| o |-");
gotoxy(2,9,"---------------|/|\\ |-");
gotoxy(2,10,"---------------| /\\ |-");
gotoxy(2,11,"---------------| |-");
Sleep(200);
Sleep(200);
gotoxy(2,2,"-----------------------------------");
gotoxy(2,3,"----------------_________________--");
gotoxy(2,4,"---------------| |-");
gotoxy(2,5,"---------------| |-");
gotoxy(2,6,"---------------| |-");
gotoxy(2,7,"---------------| |-");
gotoxy(2,8,"---------------| o |-");
gotoxy(2,9,"---------------| /|\\ |-");
gotoxy(2,10,"---------------| /\\ |-");
gotoxy(2,11,"---------------| |-");
Sleep(200);
gotoxy(2,2,"-----------------------------------");
gotoxy(2,3,"----------------_________________--");
gotoxy(2,4,"---------------| |-");
gotoxy(2,5,"---------------| |-");
gotoxy(2,6,"---------------| |-");
gotoxy(2,7,"---------------| |-");
gotoxy(2,8,"---------------| o |-");
gotoxy(2,9,"---------------| /|\\ |-");
gotoxy(2,10,"---------------| /\\ |-");
gotoxy(2,11,"---------------| |-");
Sleep(200);
gotoxy(2,2,"-----------------------------------");
gotoxy(2,3,"----------------_________________--");
gotoxy(2,4,"---------------| |-");
gotoxy(2,5,"---------------| |-");
gotoxy(2,6,"---------------| |-");
gotoxy(2,7,"---------------| |-");
gotoxy(2,8,"---------------| |-");
gotoxy(2,9,"---------------| |-");
gotoxy(2,10,"---------------| |-");
gotoxy(2,11,"---------------| |-");
system("cls");
talks("你发现你家的门被撬开了!!\n请选择:");
talks("A 管他呢! B 装监控");
cin>>input;
if(input!='A'&&input!='B'){
talks("............");
system("cls");
gotoxy(2,2,"-----------------------------------");
gotoxy(2,3,"----------------_________________--");
gotoxy(2,4,"---------------| ----------- |-");
gotoxy(2,5,"---------------| | o | |-");
gotoxy(2,6,"---------------| -----|----- |-");
gotoxy(2,7,"---------------| /|\\ |-");
gotoxy(2,8,"---------------| | |-");
gotoxy(2,9,"---------------| / \\ |-");
gotoxy(2,10,"---------------| |-");
gotoxy(2,11,"---------------| 床 |-");
Sleep(500);
gotoxy(23,4,"");talks("嗯???");
Sleep(300);
gotoxy(23,4,"");talks("-----");
gotoxy(2,12,"");talks("你突然发现床有些晃动,请选择:");
talks("A 随他晃! B 一定有人,拿刀子捅一下");
cin>>input;
if(input=='A'){
system("cls");
talks("突然从床下跳出一个人,把你杀了!!");
return 1;
}
else{
system("cls");
talks("从床下流出了一缕血");
talks("原来那个人想突然跳出来,把你杀了");
talks("你避免了这场危机");
return 0;
}
}
else if(input=='A'){
system("cls");
talks("在一天的晚上,你......");
Sleep(300);
system("cls");
gotoxy(2,2,"-----------------------------------");
gotoxy(2,3,"----------------_________________--");
gotoxy(2,4,"---------------| ----------- |-");
gotoxy(2,5,"---------------| | o | |-");
gotoxy(2,6,"---------------| -----|----- |-");
gotoxy(2,7,"---------------| /|\\ |-");
gotoxy(2,8,"---------------| | |-");
gotoxy(2,9,"---------------| / \\ |-");
gotoxy(2,10,"---------------| |-");
gotoxy(2,11,"---------------| 床 |-");
Sleep(400);
system("cls");
talks("你刚刚睡着,就有人将匕首刺入了你的心脏!!");
return 1;
}
else{
system("cls");
Sleep(300);
talks("你正在查监控......");
gotoxy(2,3,"---------------◤---------------◥---");
gotoxy(2,4,"---------------| |-");
gotoxy(2,5,"---------------| |-");
gotoxy(2,6,"---------------| |-");
gotoxy(2,7,"---------------| |-");
gotoxy(2,8,"------o--------◣_______________◢-");
gotoxy(2,9,"-----/|\\--------------------------");
gotoxy(2,10,"-----/\\---------------------------");
gotoxy(2,11,"---------------------------------");
Sleep(450);
talks("你看到有人钻到了你的床下!");
Sleep(200);
system("cls");
talks("那人跳了出来,把你杀了!!");
system("cls");
return 0;
}
}
else return 1;
}
int main(){
Hidden_cursor();
start();
talks("你的电脑被我们盯上了!210秒内不通关电脑会关机并自爆![鄙视[doge狗头]]");
cout<<endl<<"计时开始!";
system("shutdown -s -c GAME-START! -t 210 ");
Sleep(1000);
while(1){
int Checkpoint0=part0();
if(Checkpoint0){
Sleep(10);
if(death()){
system("cls");
continue;
}
}
int Checkpoint1=part1();
if(Checkpoint1){
if(death()){
system("cls");
continue;
}
}
int Checkpoint2=part2();
if(Checkpoint2){
if(death()){
system("cls");
continue;
}
}
int Checkpoint3=part3();
if(Checkpoint3){
if(death()){
system("cls");
continue;
}
}
system("color 1F");
system("cls");
talks("计时已取消");
system("shutdown -a");
talks("恭喜");
gotoxy(4,1,"");talks(name);
talks("你在本局游戏中的表现:");
talks("智力:");
cout<<intl<<endl;
cout<<"通";
Sleep(500);
cout<<"关";
Sleep(500);
cout<<"!!!"<<endl;
Sleep(500);
cout<<"Y";
Sleep(500);
cout<<"O";
Sleep(500);
cout<<"U";
Sleep(500);
cout<<" ";
Sleep(500);
cout<<"W";
Sleep(500);
cout<<"I";
Sleep(500);
cout<<"N";
Sleep(500);
cout<<"!!!"<<endl;
Sleep(500);
cout<<"获得成就:通关啦";
ofstream outfile;
outfile.open("你赢了.txt");
outfile <<"你赢了!"<<endl;
outfile <<"死亡次数:"<<deaths<<"次"<<endl<<"通关时间:";
time_t t = time(0);
char tmp[64];
strftime( tmp, sizeof(tmp), "%Y/%m/%d %X %A 本年第%j天 %z",localtime(&t) );
outfile <<( tmp )<<endl;
outfile<<"语文成绩"<<chinese<<endl;
outfile<<"数学成绩"<<maths<<endl;
outfile<<"英语成绩"<<english<<endl;
outfile<<"YOUR NAME:"<<name<<endl;
outfile<<"智力:"<<intl<<endl;
outfile.close();
return 0;
}
return 0;
}