C++小游戏之停电救援

目前版本:第一章

//0,0 1535,863
//12,62 92,218
#include<algorithm>
#include<fstream>
#include<iostream>
#include<stdio.h>
#include<cstdio>
#include<iostream>
#include<windows.h>
#include<conio.h>
#include <time.h>
#include <stdlib.h>
#include<bits/stdc++.h>
#include<cstdio>
#include<algorithm>
#include <windows.h>
#include <stdlib.h>
#include <time.h>
#include "conio.h"
#include <iomanip>		//setw()函数所在库
#include <iostream>
#include <Windows.h>
HWND hMainWnd;  //主窗口句柄
#define KEY_DOWN(VK_NONAME) ((GetAsyncKeyState(VK_NONAME) & 0x8000) ? 1:0) //必要的,要背下来
using namespace std;
int HP=100;
int fx=2;
int cd;
int go;
int dHP=100;
int zd=20;
int x,y;
int dx,dy;
CONSOLE_CURSOR_INFO info = { 1, 0 };				//创建光标的属性结构体
HANDLE hand = GetStdHandle( STD_OUTPUT_HANDLE );	//创建光标的句柄
COORD coord = { 0, 0 };								//创建xy坐标结构体,用于设置光标位置
POINT pt = { 0, 0 };								//创建鼠标点坐标变量
int first() {
	char c;
	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |FOREGROUND_RED);
	cout<<"----------"<<endl;
	cout<<"| 黑客小C |"<<endl;
	cout<<"----------"<<endl;
	Sleep(2000);
	system("cls");
	cout<<"----------"<<endl;
	cout<<"|停电救援|"<<endl;
	cout<<"----------"<<endl;
	while(!kbhit()) {

	}
	system("cls");
	cout<<"加载中..."<<endl;
	cout<<"tips:玩家向鼠标移动,鼠标在屏幕上方任务向上走,下方向下走,左方向左走,右方向右走(请开全屏,提升体验效果),右键开枪,请注意电脑配置、状态,本游戏非常吃配置,可能会卡顿。";
	Sleep(5000);
	system("cls");
}
int AI_1() {
	go++;
	if(go%3!=0){
		return 0;
	}
	if(dHP<=0) {
		return 0;
	}
	if(x>dx&&dx<9&&dy!=y) {
		dx++;
	}
	if(y>dy&&dy<9&&dx!=x) {
		dy++;
	}
	if(x<dx&&dx>1&&dy!=y) {
		dx--;
	}
	if(y<dy&&dy>1&&dx!=x) {
		dy--;
	}
	if(y==dy||x==dx) {
		HP-=5;
	}
}
int AI_2() {
	go++;
	if(go%3!=0){
		return 0;
	}
	if(dHP<=0) {
		return 0;
	}
	if(x>dx&&dx<9) {
		dx++;
	}
	if(y>dy&&dy<9) {
		dy++;
	}
	if(x<dx&&dx>1) {
		dx--;
	}
	if(y<dy&&dy>1) {
		dy--;
	}
	if(x==dx&&y==dy) {
		HP-=25;
	}
}
int map_out(int x) {
	if(x==1) {
		SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |FOREGROUND_GREEN);
		cout<<"*";
	}
	if(x==2) {
		SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY );
		cout<<"*";
	}
}
int out_1() {
	system("cls");
	cout<<"HP:"<<HP<<"子弹:"<<zd<<endl;
	for(int i=0; i<11; i++) {
		for(int j=0; j<11; j++) {
			if(i==0||i==10) {
				map_out(1);
			} else if(j==0||j==10) {
				map_out(1);
			} else if(i==x&&j==y) {
				SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |FOREGROUND_GREEN);
				cout<<"A";
			} else if(i==dx&&j==dy) {
				SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY );
				cout<<"A";
			}  else {
				cout<<" ";
			}
		}
		cout<<endl;
	}
}
int out_2() {
	system("cls");
	cout<<"HP:"<<HP<<"子弹:"<<zd<<endl;
	for(int i=0; i<11; i++) {
		for(int j=0; j<11; j++) {
			if(i==0||i==10) {
				map_out(2);
			} else if(j==0||j==10) {
				map_out(2);
			} else if(i==x&&j==y) {
				SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |FOREGROUND_GREEN);
				cout<<"A";
			} else if(i==dx&&j==dy) {
				SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |FOREGROUND_BLUE);
				cout<<"A";
			}  else {
				cout<<" ";
			}
		}
		cout<<endl;
	}
}
int out_3() {
	system("cls");
	cout<<"HP:"<<HP<<"子弹:"<<zd<<endl;
	for(int i=0; i<11; i++) {
		for(int j=0; j<11; j++) {
			if(i==0||i==10) {
				map_out(2);
			} else if(j==0||j==10) {
				map_out(2);
			} else if(i==x&&j==y) {
				SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |FOREGROUND_GREEN);
				cout<<"A";
			} else if(i==dx&&j==dy) {
				SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |FOREGROUND_RED);
				cout<<"A";
			}  else {
				cout<<" ";
			}
		}
		cout<<endl;
	}
}
int out_4() {
	system("cls");
	cout<<"HP:"<<HP<<"子弹:"<<zd<<endl;
	for(int i=0; i<11; i++) {
		for(int j=0; j<11; j++) {
			if(i==0||i==10) {
				map_out(2);
			} else if(j==0||j==10) {
				map_out(2);
			} else if(i==x&&j==y) {
				SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |FOREGROUND_GREEN);
				cout<<"A";
			} else if(i==dx&&j==dy) {
				SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY );
				cout<<"A";
			}  else {
				cout<<" ";
			}
		}
		cout<<endl;
	}
}
int out_5() {
	system("cls");
	cout<<"HP:"<<HP<<"子弹:"<<zd<<endl;
	for(int i=0; i<11; i++) {
		for(int j=0; j<11; j++) {
			if(i==0||i==10) {
				map_out(2);
			} else if(j==0||j==10) {
				map_out(2);
			} else if(i==x&&j==y) {
				SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |FOREGROUND_GREEN);
				cout<<"A";
			} else if(i==dx&&j==dy) {
				SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |FOREGROUND_GREEN);
				cout<<"O";
			}  else {
				cout<<" ";
			}
		}
		cout<<endl;
	}
}
int out_6() {
	system("cls");
	cout<<"HP:"<<HP<<"子弹:"<<zd<<endl;
	for(int i=0; i<11; i++) {
		for(int j=0; j<11; j++) {
			if(i==0||i==10) {
				map_out(2);
			} else if(j==0||j==10) {
				map_out(2);
			} else if(i==x&&j==y) {
				SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |FOREGROUND_GREEN);
				cout<<"A";
			} else if(i==dx&&j==dy) {
				SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY );
				cout<<"A";
			}  else {
				cout<<" ";
			}
		}
		cout<<endl;
	}
}
int out_7() {
	system("cls");
	cout<<"HP:"<<HP<<"子弹:"<<zd<<endl;
	for(int i=0; i<11; i++) {
		for(int j=0; j<11; j++) {
			if(i==0||i==10) {
				map_out(2);
			} else if(j==0||j==10) {
				map_out(2);
			} else if(i==x&&j==y) {
				SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |FOREGROUND_GREEN);
				cout<<"A";
			} else if(i==dx&&j==dy) {
				SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY );
				cout<<"A";
			}  else {
				cout<<" ";
			}
		}
		cout<<endl;
	}
}
int out_8() {
	system("cls");
	cout<<"HP:"<<HP<<"子弹:"<<zd<<endl;
	for(int i=0; i<11; i++) {
		for(int j=0; j<11; j++) {
			if(i==0||i==10) {
				map_out(2);
			} else if(j==0||j==10) {
				map_out(2);
			} else if(i==x&&j==y) {
				SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |FOREGROUND_GREEN);
				cout<<"A";
			} else if(i==dx&&j==dy) {
				SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |FOREGROUND_BLUE);
				cout<<"A";
			}  else {
				cout<<" ";
			}
		}
		cout<<endl;
	}
}
int out_9() {
	system("cls");
	cout<<"HP:"<<HP<<"子弹:"<<zd<<endl;
	for(int i=0; i<11; i++) {
		for(int j=0; j<11; j++) {
			if(i==0||i==10) {
				map_out(1);
			} else if(j==0||j==10) {
				map_out(1);
			} else if(i==x&&j==y) {
				SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |FOREGROUND_GREEN);
				cout<<"A";
			} else if(i==dx&&j==dy) {
				SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |FOREGROUND_BLUE);
				cout<<"O";
			}  else {
				cout<<" ";
			}
		}
		cout<<endl;
	}
}
int out_10() {
	system("cls");
	cout<<"HP:"<<HP<<"子弹:"<<zd<<endl;
	for(int i=0; i<11; i++) {
		for(int j=0; j<11; j++) {
			if(i==0||i==10) {
				map_out(2);
			} else if(j==0||j==10) {
				map_out(2);
			} else if(i==x&&j==y) {
				SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |FOREGROUND_GREEN);
				cout<<"A";
			} else if(i==dx&&j==dy) {
				SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY );
				cout<<"A";
			}  else {
				cout<<" ";
			}
		}
		cout<<endl;
	}
}
int play() {
	char c;
	int a;
	SetConsoleCursorPosition( hand, coord );		//传入光标句柄和坐标设置光标位置
	GetCursorPos ( &pt );
	if(zd<=0){
		zd=20;
		return 0;
	}
	if(pt.x<=20&&y>1) {
		y--;
		fx=1;
	}
	if(pt.x>=1515&&y<9) {
		y++;
		fx=2;
	}
	if(pt.y<=20&&x>1) {
		x--;
		fx=3;
	}
	if(pt.y>=843&&x<9) {
		x++;
		fx=4;
	}
	if (KEY_DOWN(MOUSE_EVENT)) {
		if(fx==1&&dy<y){
			dHP-=20; 
		}
		if(fx==2&&dy>y){
			dHP-=20; 
		}
		if(fx==3&&dx<x){
			dHP-=20; 
		}
		if(fx==4&&dx>x){
			dHP-=20; 
		}
		zd--;
	}  
}
int vs_1() {
	while(dHP>0) {
		HP=100;
		x=1;
		y=1;
		zd=20;
		dHP=100;
		dx=9;
		dy=9;
		while(true) {
			out_1();
			play();
			AI_1();
			if(HP<=0) {
				break;
			}
			if(dHP<=0) {
				break;
			}
			Sleep(200);
		}
	}
}
int vs_2() {
	HP=100;
	x=1;
	y=1;
	zd=20;
	dHP=10;
	dx=9;
	dy=9;
	while(dHP>0) {
		HP=100;
		x=1;
		y=1;
		zd=20;
		dHP=150;
		dx=9;
		dy=9;
		while(true) {
			out_2();
			play();
			AI_1();
			if(HP<=0) {
				break;
			}
			if(dHP<=0) {
				break;
			}
			Sleep(100);
		}
	}
}
int vs_3() {
	HP=100;
	x=1;
	y=1;
	zd=20;
	dHP=300;
	dx=9;
	dy=9;
	while(dHP>0) {
		HP=100;
		x=1;
		y=1;
		zd=20;
		dHP=100;
		dx=9;
		dy=9;
		while(true) {
			out_3();
			play();
			AI_1();
			if(HP<=0) {
				break;
			}
			if(dHP<=0) {
				break;
			}
			Sleep(100);
		}
	}
}
int vs_4() {
	HP=100;
	x=1;
	y=1;
	zd=20;
	dHP=100;
	dx=9;
	dy=9;
	while(dHP>0) {
		HP=100;
		x=1;
		y=1;
		zd=20;
		dHP=100;
		dx=9;
		dy=9;
		while(true) {
			out_4();
			play();
			AI_1();
			if(x==dx&&y==dy){
				HP=0;
			}
			if(HP<=0) {
				break;
			}
			if(dHP<=0) {
				break;
			}
			Sleep(200);
		}
	}
}
int vs_5() {
	HP=100;
	x=1;
	y=1;
	zd=20;
	dHP=100;
	dx=9;
	dy=9;
	while(dHP>0) {
		HP=100;
		x=1;
		y=1;
		zd=20;
		dHP=50;
		dx=9;
		dy=9;
		while(true) {
			out_5();
			play();
			AI_2();
			if(HP<=0) {
				break;
			}
			if(dHP<=0) {
				break;
			}
			Sleep(200);
		}
	}
}
int vs_6() {
	HP=100;
	x=1;
	y=1;
	zd=20;
	dHP=120;
	dx=9;
	dy=9;
	while(dHP>0) {
		HP=100;
		x=1;
		y=1;
		zd=20;
		dHP=50;
		dx=9;
		dy=9;
		while(true) {
			out_6();
			play();
			AI_1();
			if(HP<=0) {
				break;
			}
			if(dHP<=0) {
				break;
			}
			Sleep(200);
		}
	}
}
int vs_7() {
	HP=100;
	x=1;
	y=1;
	zd=20;
	dHP=100;
	dx=9;
	dy=9;
	while(dHP>0) {
		HP=100;
		x=1;
		y=1;
		zd=20;
		dHP=50;
		dx=9;
		dy=9;
		while(true) {
			out_7();
			play();
			AI_2();
			if(HP<=0) {
				break;
			}
			if(dHP<=0) {
				break;
			}
			Sleep(200);
		}
	}
}
int vs_8() {
	HP=100;
	x=1;
	y=1;
	zd=20;
	dHP=150;
	dx=9;
	dy=9;
	while(dHP>0) {
		HP=100;
		x=1;
		y=1;
		zd=20;
		dHP=50;
		dx=9;
		dy=9;
		while(true) {
			out_7();
			play();
			AI_1();
			if(HP<=0) {
				break;
			}
			if(dHP<=0) {
				break;
			}
			Sleep(200);
		}
	}
}
int vs_9() {
	HP=100;
	x=1;
	y=1;
	zd=20;
	dHP=150;
	dx=9;
	dy=9;
	while(dHP>0) {
		HP=100;
		x=1;
		y=1;
		zd=20;
		dHP=50;
		dx=9;
		dy=9;
		while(true) {
			out_8();
			play();
			AI_1();
			if(HP<=0) {
				break;
			}
			if(dHP<=0) {
				break;
			}
			Sleep(200);
		}
	}
}
int vs_10() {
	HP=100;
	x=1;
	y=1;
	zd=20;
	dHP=90;
	dx=9;
	dy=9;
	while(dHP>0) {
		HP=100;
		x=1;
		y=1;
		zd=20;
		dHP=50;
		dx=9;
		dy=9;
		while(true) {
			out_7();
			play();
			AI_2();
			if(HP<=0) {
				break;
			}
			if(dHP<=0) {
				break;
			}
			Sleep(200);
		}
	}
}
int vs_11() {
	HP=100;
	x=1;
	y=1;
	zd=20;
	dHP=100;
	dx=9;
	dy=9;
	while(dHP>0) {
		HP=100;
		x=1;
		y=1;
		zd=20;
		dHP=100;
		dx=9;
		dy=9;
		while(true) {
			out_1();
			play();
			AI_1();
			if(HP<=0) {
				break;
			}
			if(dHP<=0) {
				break;
			}
			Sleep(200);
		}
	}
}
int vs_12() {
	HP=100;
	x=1;
	y=1;
	zd=20;
	dHP=160;
	dx=9;
	dy=9;
	while(dHP>0) {
		HP=100;
		x=1;
		y=1;
		zd=20;
		dHP=160;
		dx=9;
		dy=9;
		while(true) {
			out_1();
			play();
			AI_1();
			if(HP<=0) {
				break;
			}
			if(dHP<=0) {
				break;
			}
			Sleep(200);
		}
	}
}
int vs_13() {
	HP=100;
	x=1;
	y=1;
	zd=20;
	dHP=200;
	dx=9;
	dy=9;
	while(dHP>0) {
		HP=100;
		x=1;
		y=1;
		zd=20;
		dHP=200;
		dx=9;
		dy=9;
		while(true) {
			out_9();
			play();
			if(HP<=0) {
				break;
			}
			if(dHP<=0) {
				break;
			}
			Sleep(200);
		}
	}
}
int vs_14() {
	HP=100;
	x=1;
	y=1;
	zd=20;
	dHP=160;
	dx=9;
	dy=9;
	while(dHP>0) {
		HP=100;
		x=1;
		y=1;
		zd=20;
		dHP=160;
		dx=9;
		dy=9;
		while(true) {
			out_1();
			play();
			AI_1();
			if(HP<=0) {
				break;
			}
			if(dHP<=0) {
				break;
			}
			Sleep(200);
		}
	}
}
int vs_15() {
	HP=100;
	x=1;
	y=1;
	zd=20;
	dHP=120;
	dx=9;
	dy=9;
	while(dHP>0) {
		HP=100;
		x=1;
		y=1;
		zd=20;
		dHP=160;
		dx=9;
		dy=9;
		while(true) {
			out_10();
			play();
			AI_2();
			if(HP<=0) {
				break;
			}
			if(dHP<=0) {
				break;
			}
			Sleep(200);
		}
	}
}
int vs_16() {
	HP=100;
	x=1;
	y=1;
	zd=20;
	dHP=120;
	dx=9;
	dy=9;
	while(dHP>0) {
		HP=100;
		x=1;
		y=1;
		zd=20;
		dHP=160;
		dx=9;
		dy=9;
		while(true) {
			out_10();
			play();
			AI_1();
			if(HP<=0) {
				break;
			}
			if(dHP<=0) {
				break;
			}
			Sleep(200);
		}
	}
}
int vs_17() {
	HP=100;
	x=1;
	y=1;
	zd=20;
	dHP=90;
	dx=9;
	dy=9;
	while(dHP>0) {
		HP=100;
		x=1;
		y=1;
		zd=20;
		dHP=160;
		dx=9;
		dy=9;
		while(true) {
			out_10();
			play();
			AI_1();
			if(HP<=0) {
				break;
			}
			if(dHP<=0) {
				break;
			}
			Sleep(200);
		}
	}
}
int story1() {
	system("cls");
	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |FOREGROUND_RED);
	cout<<"客户:杨叔正在搞电疗改造人,赶紧给我进山搞他,小心点,山里有守卫!";
	Sleep(1000);
	while(!KEY_DOWN(MOUSE_EVENT)) {

	}
	system("cls");
	cout<<"战友1:我去警卫室,你去山里,我打完警卫后,就会直接来,我们打败了杨叔后,你撤退,我用炸弹炸山。";
	Sleep(1000);
	while(!KEY_DOWN(MOUSE_EVENT)) {

	}
	system("cls");
	cout<<"初入深山";
	Sleep(1000);
	while(!KEY_DOWN(MOUSE_EVENT)) {

	}
	system("cls");
}
int story2() {
	system("cls");
	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |FOREGROUND_RED);
	cout<<"客户:小心,里面有会放电的改造人,他会攻击你的!";
	Sleep(1000);
	while(!KEY_DOWN(MOUSE_EVENT)) {

	}
	system("cls");
	cout<<"进入基地";
	Sleep(1000);
	while(!KEY_DOWN(MOUSE_EVENT)) {

	}
	system("cls");
}
int story3() {
	system("cls");
	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |FOREGROUND_RED);
	cout<<"战友1:我...我...不行啦,爆破任务只能靠打爆杨叔随身带的C4了!";
	Sleep(1000);
	while(!KEY_DOWN(MOUSE_EVENT)) {

	}
	system("cls");
	cout<<"客户:有个红衣家长,阻止他把小孩送给杨叔治网瘾(改造)!";
	Sleep(1000);
	while(!KEY_DOWN(MOUSE_EVENT)) {

	}
	system("cls");
	cout<<"深入基地";
	Sleep(1000);
	while(!KEY_DOWN(MOUSE_EVENT)) {

	}
	system("cls");
}
int story4() {
	system("cls");
	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |FOREGROUND_RED);
	cout<<"客户:看到那个男人了吗,他是杨叔,干了他,你队友死了,赶紧打死杨叔,不要靠近他,他会点C4的!";
	Sleep(1000);
	while(!KEY_DOWN(MOUSE_EVENT)) {

	}
	system("cls");
	cout<<"基地对决";
	Sleep(1000);
	while(!KEY_DOWN(MOUSE_EVENT)) {

	}
	system("cls");
}
int story5() {
	system("cls");
	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |FOREGROUND_RED);
	cout<<"客户:干的漂亮,再也没有小孩被改造了!";
	Sleep(1000);
	while(!KEY_DOWN(MOUSE_EVENT)) {

	}
	system("cls");
	cout<<"客户:任务应该完成了....";
	Sleep(1000);
	while(!KEY_DOWN(MOUSE_EVENT)) {

	}
	system("cls");
}
int story6() {
	system("cls");
	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |FOREGROUND_RED);
	cout<<"客户:手机推送说大山基地的杨叔是克隆体,快打败研究员去方舱医院!";
	Sleep(1000);
	while(!KEY_DOWN(MOUSE_EVENT)) {

	}
	system("cls");
	cout<<"战友2:我去先攻杨叔的非法武装基地,杀多点守卫。";
	Sleep(1000);
	while(!KEY_DOWN(MOUSE_EVENT)) {

	}
	system("cls");
	cout<<"新冠世界";
	Sleep(1000);
	while(!KEY_DOWN(MOUSE_EVENT)) {

	}
	system("cls");
}
int story7() {
	system("cls");
	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |FOREGROUND_RED);
	cout<<"客户:击败研究员!";
	Sleep(1000);
	while(!KEY_DOWN(MOUSE_EVENT)) {

	}
	system("cls");
	cout<<"中断改造";
	Sleep(1000);
	while(!KEY_DOWN(MOUSE_EVENT)) {

	}
	system("cls");
}
int story8() {
	system("cls");
	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |FOREGROUND_RED);
	cout<<"客户:拿到情报了,杨叔逃跑了,那个是病毒改造人,打败他逃出去!";
	Sleep(1000);
	while(!KEY_DOWN(MOUSE_EVENT)) {

	}
	system("cls");
	cout<<"逃离方舱";
	Sleep(1000);
	while(!KEY_DOWN(MOUSE_EVENT)) {

	}
	system("cls");
}
int story9() {
	system("cls");
	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |FOREGROUND_RED);
	cout<<"客户:立刻去杨永信的诊所,阻止杨永信的放电改造人计划,战友2会跟你去!";
	Sleep(1000);
	while(!KEY_DOWN(MOUSE_EVENT)) {

	}
	system("cls");

	cout<<"战友2:啊啊啊...";
	Sleep(1000);
	while(!KEY_DOWN(MOUSE_EVENT)) {

	}
	system("cls");
	cout<<"守卫:立刻投降!";
	Sleep(1000);
	while(!KEY_DOWN(MOUSE_EVENT)) {

	}
	system("cls");
	cout<<"潜入诊所";
	Sleep(1000);
	while(!KEY_DOWN(MOUSE_EVENT)) {

	}
	system("cls");
}
int story10() {
	system("cls");
	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |FOREGROUND_RED);
	cout<<"放电改造人:识别到敌人,实施攻击。";
	Sleep(1000);
	while(!KEY_DOWN(MOUSE_EVENT)) {

	}
	system("cls");
	cout<<"诊所火拼";
	Sleep(1000);
	while(!KEY_DOWN(MOUSE_EVENT)) {

	}
	system("cls");
}
int story11() {
	system("cls");
	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |FOREGROUND_RED);
	cout<<"客户:这里有杨叔最后一个克隆人,击杀他!";
	Sleep(1000);
	while(!KEY_DOWN(MOUSE_EVENT)) {

	}
	system("cls");
	cout<<"克隆破灭";
	Sleep(1000);
	while(!KEY_DOWN(MOUSE_EVENT)) {

	}
	system("cls");
}
int story12() {
	system("cls");
	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |FOREGROUND_RED);
	cout<<"客户:立即返回深山,歼灭杨叔!";
	Sleep(1000);
	while(!KEY_DOWN(MOUSE_EVENT)) {

	}
	system("cls");
	cout<<"重返深山";
	Sleep(1000);
	while(!KEY_DOWN(MOUSE_EVENT)) {

	}
	system("cls");
}
int story13() {
	system("cls");
	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |FOREGROUND_RED);
	cout<<"守卫:举起手来,抱头蹲下!";
	Sleep(1000);
	while(!KEY_DOWN(MOUSE_EVENT)) {

	}
	system("cls");
	cout<<"再次进攻";
	Sleep(1000);
	while(!KEY_DOWN(MOUSE_EVENT)) {

	}
	system("cls");
}
int story14() {
	system("cls");
	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |FOREGROUND_RED);
	cout<<"一个小孩:救救我(用枪打爆改造机)!";
	Sleep(1000);
	while(!KEY_DOWN(MOUSE_EVENT)) {

	}
	system("cls");
	cout<<"救下小孩";
	Sleep(1000);
	while(!KEY_DOWN(MOUSE_EVENT)) {

	}
	system("cls");
}
int story15() {
	system("cls");
	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |FOREGROUND_RED);
	cout<<"客户:看到杨叔了吗,歼灭他!";
	Sleep(1000);
	while(!KEY_DOWN(MOUSE_EVENT)) {

	}
	system("cls");
	cout<<"最终对决";
	Sleep(1000);
	while(!KEY_DOWN(MOUSE_EVENT)) {

	}
	system("cls");
}
int story16() {
	system("cls");
	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |FOREGROUND_RED);
	cout<<"客户:好家伙,QQ看点上的营销号说杨叔只是保护伞的一小部分,你要负责捣毁保护伞!";
	Sleep(1000);
	while(!KEY_DOWN(MOUSE_EVENT)) {

	}
	system("cls");
	cout<<"丧尸:啊!";
	Sleep(1000);
	while(!KEY_DOWN(MOUSE_EVENT)) {

	}
	system("cls");
	cout<<"保护伞战争";
	Sleep(1000);
	while(!KEY_DOWN(MOUSE_EVENT)) {

	}
	system("cls");
}
int story17() {
	system("cls");
	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |FOREGROUND_RED);
	cout<<"守卫:你完了!";
	Sleep(1000);
	while(!KEY_DOWN(MOUSE_EVENT)) {

	}
	system("cls");
	cout<<"歼灭守卫";
	Sleep(1000);
	while(!KEY_DOWN(MOUSE_EVENT)) {

	}
	system("cls");
}
int story18() {
	system("cls");
	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |FOREGROUND_RED);
	cout<<"保护伞公司老板:今天你死定了!";
	Sleep(1000);
	while(!KEY_DOWN(MOUSE_EVENT)) {

	}
	system("cls");
	cout<<"摧毁保护伞";
	Sleep(1000);
	while(!KEY_DOWN(MOUSE_EVENT)) {

	}
	system("cls");
}
int story19() {
	system("cls");
	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |FOREGROUND_RED);
	cout<<"客户:改造人的源头是狗日子国731部队,赶紧消灭它!";
	Sleep(1000);
	while(!KEY_DOWN(MOUSE_EVENT)) {

	}
	system("cls");
	cout<<"侵入部队";
	Sleep(1000);
	while(!KEY_DOWN(MOUSE_EVENT)) {

	}
	system("cls");
}
int story20() {
	system("cls");
	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |FOREGROUND_RED);
	cout<<"大佐:八嘎呀路!";
	Sleep(1000);
	while(!KEY_DOWN(MOUSE_EVENT)) {

	}
	system("cls");
	cout<<"终局之战";
	Sleep(1000);
	while(!KEY_DOWN(MOUSE_EVENT)) {

	}
	system("cls");
}
int story21() {
	system("cls");
	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY |FOREGROUND_RED);
	cout<<"客户:干的漂亮!";
	Sleep(1000);
	while(!KEY_DOWN(MOUSE_EVENT)) {

	}
	system("cls");
	cout<<"任务完成";
	Sleep(1000);
	while(!KEY_DOWN(MOUSE_EVENT)) {

	}
	system("cls");
}
int main() {
	SetConsoleCursorInfo( hand, &info );
	first();
	//第一章节:捣毁狼窝
	story1();
	vs_1();
	story2();
	vs_2();
	story3();
	vs_3();
	story4();
	vs_4();
	story5(); 
}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值