一个非常简单的小小小小。。。。。。游戏(自编)

关于我的世界!代码如下:

#include <bits/stdc++.h>
#include <windows.h>
using namespace std;
int main(){
	long long a,b=0; 
	string c;
	begin:
		system("mode con cols=150 lines=100");
		system ("cls");
		cout<<"我的世界地图(文字版)"<<endl;
		system("color 1A");
		Sleep(100); 
		system("color 2A");
		Sleep(100); 
		system("color 3A");
		Sleep(100); 
		system("color 4A");
		Sleep(100); 
		system("color 5A");
		Sleep(100); 
		system("color 6A");
		Sleep(100); 
		system("color 7A");
		Sleep(100); 
		system("color 8A");
		Sleep(100); 
		system("color 9A");
		Sleep(100); 
		system("color AA");
		Sleep(100); 
		system("color BA");
		Sleep(100); 
		system("color CA");
		Sleep(100); 
		system("color DA");
		Sleep(100); 
		system("color EA");
		Sleep(100); 
		system("color FA");
		Sleep(1000); 
		system("color 1A");
		cout<<"1.调查问卷  2.开始游戏" <<endl;
		cin>>a;
		if(a==1) goto A;
		else if(a==2) goto B;
		else return 0;
	//各种场景 A:问卷    
	A:
		system ("cls");
		system("mode con cols=50 lines=30");
		cout<<"谢谢您填写本次问卷!"<<endl<<"作者:";
		Sleep(1000);
		cout<<"五";
		Sleep(1000); 
		cout<<"       "<<"木"<<endl;
		Sleep(1000);
		system ("cls");
		cout<<"问题1:作者帅吗?"<<endl<<"1.丑,太丑了2.还行,一般般3.帅,简直太帅了!!!"<<endl;
		cin>>a;
		if(a!=1&&a!=2&&a!=3) return 0;
		else if(a==1) cout<<"好吧,下一题。"<<endl;
		else if(a==2) cout<<"下一题。"<<endl;
		else if(a==3) cout<<"真的吗?谢谢你!"<<endl;
		Sleep(1000);
		system ("cls");
		cout<<"第二个,也是最后一个问题:"<<endl<<"你玩什么?"<<endl<<"1.我的世界2.迷你世界3.都不玩"<<endl;
		cin>>a;
		if(a==1) cout<<"我也是!"<<endl;
		else if(a==2) cout<<"奥"<<endl;
		else if(a==3) cout<<"好吧"<<endl;
		else return 0;
		Sleep(1000);
		cout<<"问卷结束!"<<endl;
		goto begin;
		 
		 
		
	B:
		system("color 0A");
		cout<<"我的世界游戏开始(本游戏纯自编)"<<endl<<"注意:本游戏没有存档功能,失败后请重新游玩!  输入其他字符默认关闭游戏。";
		system("pause");
		Sleep(3000);
		system("cls");
		cout<<"你出生在地狱的一个地洞里,你要干什么?"<<endl<<"1.向上挖2.向下挖"<<endl;
		cin>>a;
		if(a==2) {
			cout<<"你挖着挖着,掉入了岩浆池中,你死了!";
			return 0;
		}
		else if(a==1) {
			cout<<"你正在努力挖掘中";
			Sleep(1000);
			cout<<".";
			Sleep(1000);
			cout<<".";
			Sleep(1000);
			cout<<".";
			Sleep(1000);
			cout<<".";
			Sleep(1000);
			cout<<".";
			Sleep(1000);
			cout<<".";
			system ("cls");
		}
		else return 0; 
			cout<<"你挖到了地狱堡垒,你要干什么?"<<endl<<"1.打烈焰人2.探索"<<endl;
			cin>>a;
			if(a==1){
				cout<<"你因没有装备,被烈焰人打死了!";
				return 0;
			}
		else if(a==2) cout<<"你运气非常好,找到了一套钻石装备,你穿上后威风凛凛,信心满满!";
		else return 0;
		system("pause");
		system ("cls");
		c:
			cout<<"获得了装备后你要干什么?"<<endl<<"1.打烈焰人2.回到主世界"<<endl;
			cin>>a;
			if(a==2){
				cout<<"你因为没有传送门,无法回到主世界!";
				Sleep(1000);
				goto c;
			}
			else if(a==1) cout<<"你一鼓作气,消灭了所有的烈焰人,并摧毁了刷怪笼,解决了后顾之忧!"<<endl;
			else return 0;
			Sleep(1000);
			system("cls");
		cout<<"你找到了末地传送门,你要干什么?"<<endl<<"1.继续探索下界(地狱)2.进入传送门"<<endl;
		cin>>a;
		if(a==1){
			cout<<"你不小心掉入了岩浆,你被烧死了!";
			return 0; 
		}
		else if(a==2) cout<<"你进入了传送门。"<<endl;
		else return 0;
		cout<<"你到达了末地,你要干什么?"<<endl<<"1.摧毁末影水晶2.打末影龙"<<endl;
		cin>>a;
		if(a==1){
			cout<<"你被末影水晶炸死了!!!!!!!!!!";
			return 0;
		}
		else if(a==2) cout<<"你使用了Dream式超级打法,最终打败了末影龙!!!!!"<<endl;
		else return 0;
		cout<<"你"<<endl<<endl;
		Sleep(2000);
		cout<<"赢"<<endl<<endl;
		Sleep(2000);
		cout<<"了"<<endl<<endl;
		Sleep(2000);
		cout<<"!"<<endl<<endl;
		Sleep(2000);
		system("color 1A");
		Sleep(100); 
		system("color 2A");
		Sleep(100); 
		system("color 3A");
		Sleep(100); 
		system("color 4A");
		Sleep(100); 
		system("color 5A");
		Sleep(100); 
		system("color 6A");
		Sleep(100); 
		system("color 7A");
		Sleep(100); 
		system("color 8A");
		Sleep(100); 
		system("color 9A");
		Sleep(100); 
		system("color AA");
		Sleep(100); 
		system("color BA");
		Sleep(100); 
		system("color CA");
		Sleep(100); 
		system("color DA");
		Sleep(100); 
		system("color EA");
		Sleep(100); 
		system("color FA");
		Sleep(1000); 
		system("color 0A");
		Sleep(100);
		goto zuihou;
	zuihou:
		cout<<"先别急着关,你只要输入“作者是我爸爸”(用zuozheshiwobaba表示),作者就告诉你一个秘密!"<<endl;
		Sleep(1000);
		cin>>c;
		if(c=="zuozheshiwobaba"){
			cout<<"wait for 10 second"<<endl;
			Sleep(1000);
			cout<<"wait for 9 second"<<endl;
			Sleep(1000);
			cout<<"wait for 8 second"<<endl;
			Sleep(1000);
			cout<<"wait for 7 second"<<endl;
			Sleep(1000);
			cout<<"wait for 6 second"<<endl;
			Sleep(1000);
			cout<<"wait for 5 second"<<endl;
			Sleep(1000);
			cout<<"wait for 4 second"<<endl;
			Sleep(1000);
			cout<<"wait for 3 second"<<endl;
			Sleep(1000);
			cout<<"wait for 2 second"<<endl;
			Sleep(1000);
			cout<<"wait for 1 second"<<endl;
			Sleep(1000);
			cout<<"没错,我是你爸爸!哈哈哈哈!!!!!"; 
		}
		return 0;
} 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值