问题标题: 熊出没僵尸惊魂

1
2
已解决
李沐阳
李沐阳
初级守护
初级守护
#include<iostream>
#include<cstdio>
#include<string>
#include <windows.h>
#include <conio.h>
#include <fstream>
#include <ctime>
#include <time.h>
#include <stdio.h>
using namespace std;
int main(){
    int n;
	for(int i=0;i<1;i++){
		cout<<"熊出没--僵尸惊魂"<<"\n";
    	cout<<"熊大出门了,你在熊洞里吃蜂蜜,这时你听道了一声惨叫,好像熊大的,你要做什吗?1出去查看 2呆在熊洞"<<"\n";
		cin>>n;
		if(n==2){
			cout<<"僵尸熊大闯进来了,把你变成了僵尸熊二/游戏结束/失败"<<"\n";
			break;
		}
		cout<<"按任意键继续"<<"\n";
		system("cls");
        _getch();
    	cout<<"你看见了僵尸熊大!!!僵尸熊大向你扑了过来!!!1快跑!!! 2使用蜂蜜"<<"\n";
		cin>>n;
		if(n==1){
	        cout<<"你以为你跑得过僵尸熊大吗?游戏结束/失败"<<"\n";
			break;
		}
		system("cls");
        _getch();
        cout<<"按任意键继续"<<"\n";
		cout<<"你使用蜂蜜引走了僵尸熊大,你想逃到哪?1吉吉家 2光头强家"<<"\n";
		cin>>n;
		if(n==1){
	        cout<<"你到了吉吉家,发现吉吉也变成了僵尸,把你变成了僵尸熊二游戏结束/失败"<<"\n";
			break;
		}
		cout<<"按任意键继续"<<"\n";
		system("cls");
        _getch();
		cout<<"你到了光头强家,敲了敲门,光头强开了门"<<"\n";
		Sleep(1000);
		cout<<"光头强:快进来,小心被僵尸熊大听见了"<<"\n";
		Sleep(1000);
		cout<<"你进了光头强家,发现了毛毛"<<"\n";
		Sleep(1000);
		cout<<"你:毛毛!!!!吉吉呢"<<"\n";
		Sleep(1000);
		cout<<"毛毛:吉吉国王,它......它变......变成僵......僵尸了,呜呜呜呜呜呜呜呜呜呜呜呜"<<"\n";
		Sleep(1000);
		cout<<"你:毛毛!别哭(你安**毛毛)"<<"\n";
		Sleep(1000);
		cout<<"光头强:毛毛真可怜,我们还是想想如何解决这次僵尸危**"<<"\n";
		cout<<"按任意键继续"<<"\n";
		system("cls");
        _getch();
		cout<<"你注意到有轻微的撞门声,逐渐的变重,后来你们每个人都听到了"<<"\n";
		Sleep(1000);
		cout<<"光头强:这是怎么回事!!!"<<"\n";
		Sleep(3000);
		cout<<"你来到了门旁边......";
		Sleep(4000);
		cout<<"你看见了僵尸熊大正在撞门!!!!!!"<<"\n";
		Sleep(1000);
		cout<<"光头强:危险,快趴下!!!"<<"\n";
		Sleep(1000);
		cout<<"你被光头强和毛毛推倒了"<<"\n";
		cout<<"按任意键继续"<<"\n";
		Sleep(5000);
		system("cls");
        _getch();
		cout<<"未完待续"<<"\n";
		cout<<"按任意键继续"<<"\n";
		Sleep(5000);
		system("cls");
        _getch();
        cout<<"制作人:李沐阳"<<"\n";
        cout<<"剧情:李沐阳"<<"\n";
        cout<<"音乐:???有吗"<<"\n";
        cout<<"推荐游戏:以后会发"<<"\n";
	}
	return 0;
}

 

李沐阳在2023-10-22 14:32:22追加了内容

更新啦

#include<iostream>
#include<cstdio>
#include<string>
#include <windows.h>
#include <conio.h>
#include <fstream>
#include <ctime>
#include <time.h>
#include <stdio.h>
using namespace std;
int main(){
    int n;
    for(int i=0;i<1;i++){
        cout<<"熊出没--僵尸惊魂"<<"\n";
        cout<<"熊大出门了,你在熊洞里吃蜂蜜,这时你听道了一声惨叫,好像熊大的,你要做什吗?1出去查看 2呆在熊洞"<<"\n";
        cin>>n;
        if(n==2){
            cout<<"僵尸熊大闯进来了,把你变成了僵尸熊二/游戏结束/失败"<<"\n";
            break;
        }
        system("cls");
        _getch();
        system("pause");
        cout<<"你看见了僵尸熊大!!!僵尸熊大向你扑了过来!!!1快跑!!! 2使用蜂蜜"<<"\n";
        cin>>n;
        if(n==1){
            cout<<"你以为你跑得过僵尸熊大吗?游戏结束/失败"<<"\n";
            break;
        }
        system("cls");
        _getch();
        system("pause");
        cout<<"你使用蜂蜜引走了僵尸熊大,你想逃到哪?1吉吉家 2光头强家"<<"\n";
        cin>>n;
        if(n==1){
            cout<<"你到了吉吉家,发现吉吉也变成了僵尸,把你变成了僵尸熊二游戏结束/失败"<<"\n";
            break;
        }
        system("cls");
        _getch();
        system("pause");
        cout<<"你到了光头强家,敲了敲门,光头强开了门"<<"\n";
        Sleep(2000);
        cout<<"光头强:快进来,小心被僵尸熊大听见了"<<"\n";
        Sleep(2000);
        cout<<"你进了光头强家,发现了毛毛"<<"\n";
        Sleep(2000);
        cout<<"你:毛毛!!!!吉吉呢"<<"\n";
        Sleep(2000);
        cout<<"毛毛:吉吉国王,它......它变......变成僵......僵尸了,呜呜呜呜呜呜呜呜呜呜呜呜"<<"\n";
        Sleep(2000);
        cout<<"你:毛毛!别哭(你安**毛毛)"<<"\n";
        Sleep(2000);
        cout<<"光头强:毛毛真可怜,我们还是想想如何解决这次僵尸危机"<<"\n";
        cout<<"按任意键继续"<<"\n";
        Sleep(4000);
        system("cls");
        _getch();
        cout<<"你注意到有轻微的撞门声,逐渐的变重,后来你们每个人都听到了"<<"\n";
        Sleep(2000);
        cout<<"光头强:这是怎么回事!!!"<<"\n";
        Sleep(3000);
        cout<<"你来到了门旁边......";
        Sleep(4000);
        cout<<"你看见了僵尸熊大正在撞门!!!!!!"<<"\n";
        Sleep(2000);
        cout<<"光头强:危险,快趴下!!!"<<"\n";
        Sleep(2000);
        cout<<"你被光头强和毛毛推倒了"<<"\n";
        Sleep(5000);
        system("cls");
        _getch();
        system("pause");
        Sleep(5000);
        cout<<"第二章.实验室"<<"\n";
        cout<<"你醒来了......"<<"\n";
        cout<<"你看到了一张纸,上面有"<<"\n";
        cout<<"_____________________"<<"\n";
        cout<<"|二狗               |"<<"\n";
        cout<<"|  我是大马猴,尽快解|"<<"\n";
        cout<<"|决了他们,但可以让他|"<<"\n";
        cout<<"|们仨多吃点苦头,另外|"<<"\n";
        cout<<"|8:30地下防空洞见.(1|"<<"\n";
        cout<<"|2:00把熊二解决)    |"<<"\n";
        cout<<"|             大马猴|"<<"\n";
        cout<<"|___________________|"<<"\n";
        Sleep(3000);
        cout<<"天哪,你看了看电子钟,11:40了!!!"<<"\n";
        Sleep(1000);
        cout<<"你推了推门,打不开,又拉了拉门,也打不开!!!门被锁了!!!"<<"\n";
        Sleep(1000);
        cout<<"你发现了门上有一张纸"<<"\n";
        cout<<"_____________________"<<"\n";
        cout<<"|                   |"<<"\n";
        cout<<"|  二狗健忘,屋子里有|"<<"\n";
        cout<<"|一把备用钥匙他应该.\\"<<"\n";
        cout<<"|可以找到           /"<<"\n";
        cout<<"|___________________|"<<"\n";
        Sleep(3000);
        cout<<"你打算在附近搜索,你想搜索哪?1门 2柜子 3冰箱"<<"\n";
        cin>>n;
        if(n==1){
			cout<<"你没发现什么"<<"\n";
			cout<<"你打算在附近搜索,你想搜索哪?1柜子 2冰箱"<<"\n";
        	cin>>n;
        	if(n==1){
				cout<<"你发现了钥匙"<<"\n";
				cout<<"你打算在附近搜索,你想搜索哪?1冰箱"<<"\n";
		        cin>>n;
		        if(n==1){
		        	cout<<"你发现了蜂蜜"<<"\n";
				}
		        if(n!=1){
		        	cout<<"......";
		        	cout<<"乱输是吧?游戏结束/失败"<<"\n";
		        	break;
				}
			}
			if(n==2){
				cout<<"你发现了蜂蜜"<<"\n";
				cout<<"你打算在附近搜索,你想搜索哪?1门 "<<"\n";
		        cin>>n;
		        if(n==1){
		        	cout<<"你没发现什么";
				}
		        if(n!=1){
		        	cout<<"......";
		        	cout<<"乱输是吧?游戏结束/失败"<<"\n";
		        	break;
				}
			}
			if(n!=1&&n!=2){
		    	cout<<"......";
		    	cout<<"乱输是吧?游戏结束/失败"<<"\n";
		        break;
			}
		}
        if(n==2){
        	cout<<"你发现了钥匙"<<"\n";
			cout<<"你打算再在附近搜索,你想搜索哪?1门 2冰箱"<<"\n";
        	cin>>n;
        	if(n==1){
				cout<<"你没发现什么"<<"\n";
				cout<<"你打算在附近搜索,你想搜索哪?1冰箱"<<"\n";
		        cin>>n;
		        if(n==1){
		        	cout<<"你发现了蜂蜜"<<"\n";
				}
		        if(n!=1){
		        	cout<<"......";
		        	cout<<"乱输是吧?游戏结束/失败"<<"\n";
		        	break;
				}
			}
			if(n==2){
				cout<<"你发现了蜂蜜"<<"\n";
				cout<<"你打算在附近搜索,你想搜索哪?1门 "<<"\n";
		        cin>>n;
		        if(n==1){
		        	cout<<"你没发现什么";
				}
		        if(n!=1){
		        	cout<<"......";
		        	cout<<"乱输是吧?游戏结束/失败"<<"\n";
		        	break;
				}
			}
			if(n!=1&&n!=2){
		    	cout<<"......";
		    	cout<<"乱输是吧?游戏结束/失败"<<"\n";
		        break;
			}
		}
        if(n==3){
			cout<<"你发现了蜂蜜"<<"\n";
			cout<<"你打算在附近搜索,你想搜索哪?1门 2柜子"<<"\n";
	        cin>>n;
	        if(n==1){
				cout<<"你没发现什么"<<"\n";
				cout<<"你打算在附近搜索,你想搜索哪?1柜子"<<"\n";
		        cin>>n;
		        if(n==1){
		        	cout<<"你发现了钥匙"<<"\n";
				}
		        if(n!=1){
		        	cout<<"......";
		        	cout<<"乱输是吧?游戏结束/失败"<<"\n";
		        	break;
				}
			}
			if(n==2){
				cout<<"你发现了钥匙"<<"\n";
				cout<<"你打算在附近搜索,你想搜索哪?1门 "<<"\n";
		        cin>>n;
		        if(n==1){
		        	cout<<"你没发现什么";
				}
		        if(n!=1){
		        	cout<<"......";
		        	cout<<"乱输是吧?游戏结束/失败"<<"\n";
		        	break;
				}
			}
			if(n!=1&&n!=2){
		    	cout<<"......";
		    	cout<<"乱输是吧?游戏结束/失败"<<"\n";
		        break;
			}
		}
        if(n!=1&&n!=2&&n!=3){
        	cout<<"......";
        	cout<<"乱输是吧?游戏结束/失败" <<"\n";
        	break;
		}
		cout<<"你打开了门,逃了出去";
        cout<<"你跑向了防空洞"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树     你        树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        Sleep(3000);
        system("cls");
        _getch();
        system("pause");
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树     你        树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        Sleep(3000);
        system("cls");
        _getch();
        system("pause");
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树      你       树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        Sleep(3000);
        system("cls");
        _getch();
        system("pause");
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树       你      树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        Sleep(3000);
        system("cls");
        _getch();
        system("pause");
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树      你       树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        Sleep(3000);
        system("cls");
        _getch();
        system("pause");
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树      你       树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        Sleep(3000);
        system("cls");
        _getch();
        system("pause");
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树      你       树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        Sleep(3000);
        system("cls");
        _getch();
        system("pause");
        cout<<"|树               树|"<<"\n";
        cout<<"|树      你       树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        Sleep(3000);
        system("cls");
        _getch();
        system("pause");
        cout<<"|树      你       树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        Sleep(3000);
        system("cls");
        _getch();
        system("pause");
        cout<<"|树_____    ______树|"<<"\n";
        cout<<"|树    [____]     树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树      你       树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树______    _____树|"<<"\n";
        cout<<"|树     /         树|"<<"\n";
        cout<<"|树    /          树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"|树     二狗      树|"<<"\n";
        cout<<"|树               树|"<<"\n";
        cout<<"你:!!!!"<<"\n";
        Sleep(2000);
        cout<<"二狗:门为什么开着??"<<"\n";
        Sleep(2000);
        cout<<"你想怎么样"<<"\n";
        Sleep(2000);
        cout<<"1.躲进灌木丛2.干了!!!3.???"<<"\n";
        cin>>n;
		if(n==2){
			cout<<"二狗:阿妈,熊二!!!!";
			cout<<"一声枪响过后,你没了,游戏结束/失败";
		}
		if(n==3){
			cout<<"!*@&^#%{|>:#^@&";
			cout<<"世界崩坏了,游戏结束/失败";
		}
		cout<<"你躲在灌木丛里,二狗发现没事,便走了";
		Sleep(3000);
		cout<<"你进入了防空洞";
		Sleep(3000);
		cout<<"防空洞里有,老人(无人村),光头强,毛毛";
		Sleep(3000);
		cout<<"你:老人,光头强,毛毛!!!";
		Sleep(3000);
		cout<<"老人:没时间解释了,我和毛毛去疏散动物与小镇的人,光头强与你去阻止他们";
		Sleep(3000);
		system("cls");
        _getch();
        system("pause");
        cout<<"未完待续"<<"\n";
        Sleep(5000);
        system("cls");
        _getch();
        system("pause");
        cout<<"制作人:李沐阳"<<"\n";
        cout<<"剧情:李沐阳"<<"\n";
        cout<<"音乐:???有吗"<<"\n";
        cout<<"推荐游戏:以后会发"<<"\n";
    }
    return 0;
}

 


0
已采纳
李奕歌
李奕歌
初级天翼
初级天翼

请按任意键继续可以改为:

system("pause");

更好亿点

1
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
我要回答