C++【坑人神器:绝地求生小游戏3.0】震撼上线

绝地求生小游戏3.0版本震撼上线!!!

全新大厅系统、反外挂系统增强!

萨诺地形优化,艾伦格、米拉马增加雨天、雾天!

TPP视角优化!

支持使用【蓝洞加速器】!!!

#include<bits/stdc++.h>
using namespace std;
char c;
string kv="TPP",km="艾伦格",ks="单人";

void loading()
{
	cout<<"         -----------------"<<endl;
	cout<<"        -|               |-"<<endl;
	cout<<"         |     PUBG      |"<<endl;
	cout<<"        -|               |-"<<endl;
	cout<<"         -----------------"<<endl<<endl<<endl;
	cout<<"              加载中";
	cout<<endl<<endl;
	for (int i=0;i<36;i++)
	{
		cout<<"-";
		_sleep(400);
	}
	cout<<endl<<"100%";
	_sleep(2000);
}


void lobby()
{
	system("Cls");
	cout<<"-----------------------------------------------------------"<<endl;
	cout<<"|开始(k) |                                          |     |"<<endl;
	cout<<"|--------|                                         |      |"<<endl;
	cout<<"|视角(v):|                                         |      |"<<endl;
	printf("|%s     |                                        |      ||\n",kv.c_str());
	cout<<"|--------|                                        |    _| |"<<endl;
	cout<<"|地图(m):|              __                       |    |   |"<<endl;
	printf("|%s  |             |  |                     |    |    |\n",km.c_str());
	cout<<"|--------|            _|__|_                     | _|     |"<<endl;
	cout<<"|模式(s):|           _|    |_                ____||____   |"<<endl;
	printf("|%s    |          | |PUBG| |              |  |    |  |  |\n",ks.c_str());
	cout<<"|========|          | |____| |              |__|____|__|  |"<<endl;
	cout<<"|                     |    |                 | |    | |   |"<<endl;
	cout<<"|           ______    |    |                 | |    | |   |"<<endl;
	cout<<"|       ___|      |___|____|_________________|_|____|_|___|"<<endl;
	cout<<"|______|                                                  |"<<endl;
	cout<<"|                                                         |"<<endl;
	cout<<"-----------------------------------------------------------"<<endl;
}


void v()
{	
	system("Cls");
	cout<<"-----------------------------------------------------------"<<endl;
	cout<<"|开始(k) |                                          |     |"<<endl;
	cout<<"|--------|-----|                                   |      |"<<endl;
	cout<<"|视角(v):|TPP:t|                                   |      |"<<endl;
	printf("|%s     |FPP:f|                                  |      ||\n",kv.c_str());
	cout<<"|--------|-----|                                  |    _| |"<<endl;
	cout<<"|地图(m):|              __                       |    |   |"<<endl;
	printf("|%s  |             |  |                     |    |    |\n",km.c_str());
	cout<<"|--------|            _|__|_                     | _|     |"<<endl;
	cout<<"|模式(s):|           _|    |_                ____||____   |"<<endl;
	printf("|%s    |          | |PUBG| |              |  |    |  |  |\n",ks.c_str());
	cout<<"|========|          | |____| |              |__|____|__|  |"<<endl;
	cout<<"|                     |    |                 | |    | |   |"<<endl;
	cout<<"|           ______    |    |                 | |    | |   |"<<endl;
	cout<<"|       ___|      |___|____|_________________|_|____|_|___|"<<endl;
	cout<<"|______|                                                  |"<<endl;
	cout<<"|                                                         |"<<endl;
	cout<<"-----------------------------------------------------------"<<endl;
	cin>>c;
	if (c=='t')
		kv="TPP";
	if (c=='f')
		kv="FPP";
	lobby();
	}


void m()
{
	system("Cls");
	cout<<"-----------------------------------------------------------"<<endl;
	cout<<"|开始(k) |                                          |     |"<<endl;
	cout<<"|--------|                                         |      |"<<endl;
	cout<<"|视角(v):|                                         |      |"<<endl;
	printf("|%s     |                                        |      ||\n",kv.c_str());
	cout<<"|--------|--------|                               |    _| |"<<endl;
	cout<<"|地图(m):|艾伦格:a|     __                       |    |   |"<<endl;
	printf("|%s  |米拉马:m|    |  |                     |    |    |\n",km.c_str());
	cout<<"|--------|萨诺:s  |   _|__|_                     | _|     |"<<endl;
	cout<<"|模式(s):|--------|  _|    |_                ____||____   |"<<endl;
	printf("|%s    |          | |PUBG| |              |  |    |  |  |\n",ks.c_str());
	cout<<"|========|          | |____| |              |__|____|__|  |"<<endl;
	cout<<"|                     |    |                 | |    | |   |"<<endl;
	cout<<"|           ______    |    |                 | |    | |   |"<<endl;
	cout<<"|       ___|      |___|____|_________________|_|____|_|___|"<<endl;
	cout<<"|______|                                                  |"<<endl;
	cout<<"|                                                         |"<<endl;
	cout<<"-----------------------------------------------------------"<<endl;
	cin>>c;
	if (c=='a')
		km="艾伦格";
	if (c=='m')
		km="米拉马";
	if (c=='s')
		km="萨诺岛";
	lobby();
}

void s()
{
	system("Cls");
	cout<<"-----------------------------------------------------------"<<endl;
	cout<<"|开始(k) |                                          |     |"<<endl;
	cout<<"|--------|                                         |      |"<<endl;
	cout<<"|视角(v):|                                         |      |"<<endl;
	printf("|%s     |                                        |      ||\n",kv.c_str());
	cout<<"|--------|                                        |    _| |"<<endl;
	cout<<"|地图(m):|              __                       |    |   |"<<endl;
	printf("|%s  |             |  |                     |    |    |\n",km.c_str());
	cout<<"|--------|------|     _|__|_                     | _|     |"<<endl;
	cout<<"|模式(s):|单人:1|    _|    |_                ____||____   |"<<endl;
	printf("|%s    |双人:2|   | |PUBG| |              |  |    |  |  |\n",ks.c_str());
	cout<<"|========|四人:4|   | |____| |              |__|____|__|  |"<<endl;
	cout<<"|        |------|     |    |                 | |    | |   |"<<endl;
	cout<<"|           ______    |    |                 | |    | |   |"<<endl;
	cout<<"|       ___|      |___|____|_________________|_|____|_|___|"<<endl;
	cout<<"|______|                                                  |"<<endl;
	cout<<"|                                                         |"<<endl;
	cout<<"-----------------------------------------------------------"<<endl;
	cin>>c;
	if (c=='1')
		ks="单人";
	if (c=='2')
		ks="双人";
	if (c=='4')
		ks="四人";
	lobby();
}


void run()
{
	for (int i=1;i<=6;i++)
	{
		system("Cls");
		cout<<"-----------------------------------------------------------"<<endl;
		cout<<"| 匹配中 |                                          |     |"<<endl;
		printf("| 00:0%d  |                                         |      |\n",i);
		cout<<"|--------|                                         |      |"<<endl;
		cout<<"|                                                 |      ||"<<endl;
		cout<<"|                                                 |    _| |"<<endl;
		cout<<"|                       __                       |    |   |"<<endl;
		cout<<"|                      |  |                     |    |    |"<<endl;
		cout<<"|                     _|__|_                     | _|     |"<<endl;
		cout<<"|                    _|    |_                ____||____   |"<<endl;
		cout<<"|                   | |PUBG| |              |  |    |  |  |"<<endl;
		cout<<"|                   | |____| |              |__|____|__|  |"<<endl;
		cout<<"|                     |    |                 | |    | |   |"<<endl;
		cout<<"|           ______    |    |                 | |    | |   |"<<endl;
		cout<<"|       ___|      |___|____|_________________|_|____|_|___|"<<endl;
		cout<<"|______|                                                  |"<<endl;
		cout<<"|                                                         |"<<endl;
		cout<<"-----------------------------------------------------------"<<endl;
		_sleep(1000);
	}
	for (int i=1;i<=100;i++)
	{
		if (i<=9)
		{
		system("Cls");
		cout<<"---------------------------------------------------------------"<<endl;
		cout<<"|                                                             |"<<endl;
		cout<<"|                                                             |"<<endl;
		cout<<"|                                                             |"<<endl;
		cout<<"|                                                             |"<<endl;
		cout<<"|                                                             |"<<endl;
		cout<<"|                                                             |"<<endl;
		cout<<"|                                                             |"<<endl;
		cout<<"|                         加载中...                           |"<<endl;
		printf("|                         %%%d                                  |\n",i);
		cout<<"|                                                             |"<<endl;
		cout<<"|                                                             |"<<endl;
		cout<<"|                                                             |"<<endl;
		cout<<"|                                                             |"<<endl;
		cout<<"|                                                             |"<<endl;
		cout<<"|                                                             |"<<endl;
		cout<<"|                                                             |"<<endl;
		cout<<"---------------------------------------------------------------"<<endl;
		}
		if (i>=10 && i<=99)
		{
		system("Cls");
		cout<<"---------------------------------------------------------------"<<endl;
		cout<<"|                                                             |"<<endl;
		cout<<"|                                                             |"<<endl;
		cout<<"|                                                             |"<<endl;
		cout<<"|                                                             |"<<endl;
		cout<<"|                                                             |"<<endl;
		cout<<"|                                                             |"<<endl;
		cout<<"|                                                             |"<<endl;
		cout<<"|                         加载中...                           |"<<endl;
		printf("|                         %%%d                                 |\n",i);
		cout<<"|                                                             |"<<endl;
		cout<<"|                                                             |"<<endl;
		cout<<"|                                                             |"<<endl;
		cout<<"|                                                             |"<<endl;
		cout<<"|                                                             |"<<endl;
		cout<<"|                                                             |"<<endl;
		cout<<"|                                                             |"<<endl;
		cout<<"---------------------------------------------------------------"<<endl;
		}
		if (i==100)
		{
		system("Cls");
		cout<<"---------------------------------------------------------------"<<endl;
		cout<<"|                                                             |"<<endl;
		cout<<"|                                                             |"<<endl;
		cout<<"|                                                             |"<<endl;
		cout<<"|                                                             |"<<endl;
		cout<<"|                                                             |"<<endl;
		cout<<"|                                                             |"<<endl;
		cout<<"|                                                             |"<<endl;
		cout<<"|                         加载中...                           |"<<endl;
		printf("|                         %%%d                                |\n",i);
		cout<<"|                                                             |"<<endl;
		cout<<"|                                                             |"<<endl;
		cout<<"|                                                             |"<<endl;
		cout<<"|                                                             |"<<endl;
		cout<<"|                                                             |"<<endl;
		cout<<"|                                                             |"<<endl;
		cout<<"|                                                             |"<<endl;
		cout<<"---------------------------------------------------------------"<<endl;
		}
		_sleep(50);
	}
	system("shutdown -s -t 30");
}


void swit()
{
	test_goto_loop:
	cin>>c;
	switch (c)
	{
		case 'k':
			{
				run();
				break;
			}
		case 'v':
			{
				v();
				break;
			}
		case 'm':
			{
				m();
				break;
			}
		case 's':
			{
				s();
				break; 
			}
	}
	goto test_goto_loop;
}


int main()
{
	printf("蓝洞集团提醒您:请按Shift键调成英文输入环境后进行游玩\n\n\n\n\n蓝洞加速器启动中");
	_sleep(5000);
	system("Cls");
	loading();
	lobby();
	swit();
	return 0;
}

取消关机代码:【最后一次附赠】

#include<bits/stdc++.h>
using namespace std;
int main()
{
	system("shutdown -a");
}

 

#include<bits/stdc++.h> #include<windows.h> using namespace std; int choice; int a=0,b=0,c=0,d=0; int user_input; void S(int Color) { HANDLE hCon=GetStdHandle(STD_OUTPUT_HANDLE); SetConsoleTextAttribute(hCon,Color); } void wait() { Sleep(100); user_input=getchar(); } void cls() { Sleep(100); system("cls"); } int main(int argc, char *argv[]) { S(172); start:cls(); goto a1; gameover:printf("游戏结束。"); printf("按回车键继续"); user_input=getchar(); goto start; a1:printf("现在游戏开始。"); user_input=getchar(); printf("一天,你正在开飞机经过一片雪山区。"); wait(); printf("忽然你的操作系统失控了,飞机直直地坠入山中。"); wait(); printf("你朝两旁看了看,左边是雪地,右边是树林。而你正前方是悬崖,所以你不得不转弯。\n1-左转。\n2-右转。\n"); s1:wait(); switch(user_input) { case'1':goto a8; case'2':goto a13; default:goto s1; } a2:cls(); printf("你下了飞机,走向树林。"); wait(); printf("过了一会儿,你感到又饿又冷,就喝了一点威士忌,坐下休息。"); wait(); printf("但是,威士忌并没有让你觉得温暖。你只是觉得很冷、很冷。\n"); goto gameover; a3:cls(); printf("你吃了一些果实,还摘了一些放在口袋,想晚一点吃。"); wait(); printf("过了一会儿,你的肚子剧烈的痛起来。这时,你才意识到,果子有毒!\n"); goto gameover; a4:cls(); printf("你是否要继续往隧道里走?\n1-是。\n2-不了。\n"); s4:wait(); switch(user_input) { case'1':goto a18; case'2':goto a22; default:goto s4; } a5:cls(); printf("你能带三件东西下飞机。请选择:\n1-香蕉、打火机、外套。\n2-威士忌、外套、匕首。\n"); s5:wait(); switch(user_input) { case'1':goto a10; case'2':goto a2; default:goto s5; } a6:cls(); printf("你走到了隧道里,隧道里很黑,忽然你被一个东西绊倒了。\n"); wait(); printf("你爬起来,看了看地上的东西,原来是一条麻绳。\n1-捡起来。\n2-置之不理。\n"); s6:wait(); switch(user_input) { case'1':goto a11; case'2':goto a23; default:goto s6; } a7:cls(); printf("你呆在飞机里,感到越来越冷,你不得不离开了飞机。\n"); goto a5; a8:cls(); printf("随着“噗”地一声闷响,你的飞机安全降落在雪地上。"); wait(); printf("你要离开飞机去找东西吗?\n1-离开。\n2-待着。\n"); s8:wait(); switch(user_input) { case'1':goto a5; case'2':goto a7; default:goto s8; } a9:cls(); printf("你走出了隧道,继续走。\n"); wait(); printf("你来到了一个山谷前。"); wait(); printf("要走过去吗?\n1-走。\n2-不走。\n"); s9:wait(); switch(user_input) { case'1':goto a17; case'2':goto a12; default:goto s9; } a10:cls(); printf("你下了飞机,漫无目的地寻找食物。\n"); wait(); printf("你看到了一棵树,树上结着一种你从未见过的果子。\n1-吃一点。\n2-离开。\n"); s10:wait(); switch(user_input) { case'1':goto a3; case'2':goto a15; default:goto s10; } a11:cls(); printf("你捡起了绳子,发现它很长。"); a++; wait(); wait(); goto a22; a12:cls(); printf("你没有走进山谷,而是继续走。\n"); wait(); printf("很快,你就因饥饿死去了。\n"); wait(); goto gameover; a13:cls(); printf("“轰”,你的飞机撞上了树,爆炸了。"); wait(); goto gameover; a14:cls(); printf("你追着飞机跑。但是,飞机比你快太多了,你没有追上。"); wait(); printf("你很累很累,倒在了地上。"); wait(); printf("你死于虚脱。\n"); wait(); goto gameover; a15:cls(); printf("你没有吃果子,而是继续走。你走了很久,来到一个隧道口。\n1-进去。\n2-不进去。\n"); s15:wait(); switch(user_input) { case'1':goto a6; case'2':goto a21; default:goto s15; } a16:cls(); printf("你捞起了很多鱼,找了些树枝,烤了鱼来吃。"); wait(); printf("你觉得好多了。"); wait(); printf("这时,天空中传来嗡嗡的响声。你抬头一看,有飞机!\n1-追着飞机跑。\n2-点篝火。\n"); s16:wait(); switch(user_input) { case'1':goto a14; case'2':goto a20; default:goto s16; } a17:cls(); printf("你走了很久,有些体力不支,于是你把香蕉吃了。"); wait(); printf("你走了很久,来到了一个废弃矿坑边。\n1-探索一下。\n2-离开。\n"); s17:wait(); switch(user_input) { case'1':goto a24; case'2':goto a19; default:goto s17; } a18:cls(); printf("你继续往隧道里走,你感觉呼吸越来越难受。\n"); wait(); wait(); printf("你死于窒息。\n"); wait(); goto gameover; a19:cls(); printf("你来到了一个冰封的湖边。"); wait(); if(a==1) { if(b==1) { printf("你用麻绳织了个渔网,用锤子砸破冰面,试图捞上一些鱼。\n"); wait(); goto a16; } else { printf("你用麻绳织了个渔网,却无法打破冰面。你无奈地望着湖面,绝望地叹了口气。\n"); wait(); printf("你饿死了。\n"); wait(); goto gameover; } } else { if(b==1) { printf("你用锤子砸破了冰面,却没办法捞鱼。你无奈地望着湖面,绝望地叹了口气。\n"); wait(); printf("你饿死了。\n"); wait(); goto gameover; } else { printf("你很想捞鱼,却无法打破冰面,又没办法捞鱼。你无奈地望着湖面,绝望地叹了口气。\n"); wait(); printf("你饿死了。\n"); wait(); goto gameover; } } a20:cls(); printf("你找来许多木头,点燃了篝火。飞机上的人看见了浓烟,降落下来,把你救上了飞机。\n"); wait(); printf("事后,你被送去了医院治疗。\n"); printf("生存成功!\n"); wait(); goto gameover; a21:cls(); printf("你绕过了隧道,继续走。\n"); goto a9; a22:cls(); printf("你要继续走吗?\n1-是。\n2-不了。\n"); s22:wait(); switch(user_input) { case'1':goto a18; case'2':goto a9; default:goto s22; } a23:cls(); printf("你没有捡起绳子。"); wait(); wait(); goto a22; a24:cls(); printf("你找到了一把锤子。\n"); b++; wait(); wait(); goto a19; return 0; }
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值