代码演示效果
代码如下:
#include<iostream>
#include<windows.h>
#include<stdlib.h>
using namespace std;
int main()
{
cout<<"欢迎来到圣诞规则怪谈的世界"<<endl;
cout<<"此游戏为小花花小制作"<<endl;
system("color 7C");
cout<<"请你在规则中存活两天,你将获得游戏胜利"<<endl;
Sleep(3000);
system("color 0F");
cout<<" /!~~~~~~~~~~~~~@ ☆ $$ .☆"<<endl;
cout<<" ./ !~~~▓~ ~~~~@ ◆ * $◢◣$ *"<<endl;
cout<<" / ^^ ! ══════@.◆ * $◢★◣$ *"<<endl;
cout<<" ..▎[] ▎田 田 ▎ |┃◆ * $◢■■◣$ *"<<endl;
cout<<" &&▎ ▎ ▎'|'▎ * $◢■■■◣$ *"<<endl;
cout<<"# ■■■■■■■■■■〓▄▃▂▁ ︸︸||︸︸"<<endl;
cout<<" 这是你的房子"<<endl;
cout<<"爸爸妈妈要出去出差一段时间,家里目前只有你和妹妹,请你遵守规则,不然...game over..."<<endl;
cout<<"你将要怪谈世界中存活2天,2天之后你若活着,你将获得游戏的胜利!"<<endl;
cout<<"第1天是平安夜"<<endl;
cout<<"第2天是圣诞节"<<endl;
cout<<"圣诞节那天,你的小伙伴会和你一起过节哦"<<endl;
cout<<"你身边的人随时有可能变异,请你时刻保持清醒!!!"<<endl;
cout<<"输入3按确定后进入下一个环节,后将进入怪谈世界"<<endl;//对于同学来说,时间可以长点
cout<<"不要输入汉字,否则会出bug,请自行解决¥%&game over!"<<endl;
int d;
cin>>d; //输入汉字会一直运行,不会停止
system("color 7C");
system("color 6C");
system("color 3C");
system("color 5C");
system("color 0C");
system("cls");
Sleep(3000);//这里要用延迟,不然容易被系统跳过
cout<<"你醒了,你发现被窝上有一份纸条"<<endl;
cout<<" 纸条1:"<<endl;
cout<<"规则1:圣诞节快到了,你要在圣诞节来临之前买好物资,记住:圣诞老人不会提前到来"<<endl;
cout<<"规则2:你的家只有一扇门,如果出现两扇门,请你马上到你家门口的大树下,他会告诉你答案"<<endl;
cout<<"规则3:请不要随便离开你的妹妹,但可以趁她睡觉的时候外出"<<endl;
Sleep(3000);//这里要用延迟,不然容易被系统跳过
cout<<"温馨提示:阅读完请按3进入游戏!!!"<<endl; //
int d1;
cin>>d1; //阅读完输入代码 ,d系列表示输入选项的变量
system("cls");
cout<<"后天就是圣诞节了,你很开心哦"<<endl; Sleep(2000);
cout<<"你起身去厨房,妹妹已经在冲牛奶了,你和妹妹吃完早餐"<<endl; Sleep(2000);
cout<<"妹妹悠闲的在沙发上看电视"<<endl; Sleep(2000);
cout<<"你突然想起你要准备圣诞物资啦"<<endl; Sleep(2000);
cout<<"是否决定要出去买东西:(1-去;2-不去)"<<endl; Sleep(2000);
int a;//写程序关键从a用起,避免混乱
cin>>a;
if(a==2)
{//a==2的开始端
cout<<"你想多陪伴在妹妹身边,于是你们一起看巴啦啦小魔仙"<<endl; Sleep(2000);
}//a==2的结束端
else
{ //a==2,else的开始端
system("color 0F");
cout<<"你刚打开房门"<<endl; Sleep(1000);
cout<<"姐姐,你要离开我吗~~"<<endl; Sleep(1000);
cout<<" ~~呀~~" <<endl; Sleep(1000);
system("cls");//以下为game ovre代码
cout<<" game over "<<endl;
system("color 7C");
system("color 6C");
system("color 3C");
system("color 5C");
system("color 2C"); //字体颜色变化
cout<<"你违反了规则3"<<endl;
Sleep(3000);
cout<<"恭喜你触发作者的眷顾,免死一次!!!"<<endl;
cout<<"温馨提示:阅读完请按3进入游戏!!!"<<endl;
int d2;//d系列为3
cin>>d2;
Sleep(3000);
system("color 0F");//颜色恢复正常
system("cls");//清屏
} //a=2,else的结束段
cout<<"你和妹妹看了一会儿电视,妹妹有点疲惫,于是她就上床上睡觉了"<<endl; Sleep(2000);
cout<<"此时电视里播放着你最喜欢的游戏解说MC"<<endl; Sleep(2000);
cout<<"你面临着选择:(1-继续看电视 2-去上街买物质)"<<endl;
int b;
cin>>b;
if(b==1){
cout<<"电视播放:mc家里有个贪吃的妹妹,一天吃掉一百斤大米!!我该如何生存?"<<endl;
Sleep(1000);
cout<<"远离你的妹妹"<<endl;
cout<<"远离你的妹妹"<<endl;
cout<<"远离你的妹妹"<<endl;
Sleep(3000);
cout<<"你惊讶,回神后。。。"<<endl;
cout<<"发现电视里正常播放mc的内容"<<endl; }
else
{
cout<<"你买了圣诞帽,圣诞树,圣诞手套……"<<endl;
cout<<"你发现了手套里面的另外一张纸条"<<endl;
cout<<" "<<endl;
cout<<" 纸条2"<<endl;
cout<<"规则4:妹妹喜欢模仿巴啦啦小魔仙,她非常喜欢说巴啦啦能量"<<endl;
cout<<" 千万不要让她说出古娜拉黑暗之神,如果她说出,请立刻把圣诞树上的9倒过来"<<endl;
cout<<"规则5:小红、小蓝、小绿三个朋友会来你家过圣诞节,请你务必要给他们开门"<<endl;
cout<<"规则6:你可以听小红说的话,但她必须要佩戴M M型领结"<<endl;
system("pause");// 暂停程序的执行,等待用户按下任意键继续
int d3;//d系列为3
system("cls");
}
cout<<"现在你在家的院子里啦"<<endl;
cout<<" /!~~~~~~~~~~~~~@ ☆ $$ .☆"<<endl;
cout<<" ./ !~~~▓~ ~~~~@ ◆ * $◢◣$ *"<<endl;
cout<<" / ^^ ! ══════@.◆ * $◢★◣$ *"<<endl;
cout<<" ..▎[] ▎田 田 ▎ |┃◆ * $◢■■◣$ *"<<endl;
cout<<" &&▎ 门 门'|'▎ * $◢■■■◣$ *"<<endl;
cout<<"# ■■■■■■■■■■〓▄▃▂▁ ︸︸||︸︸"<<endl;
Sleep(2000);
cout<<"是否开门回家:(1-回家开门;2-先去大树那边)"<<endl;
int c;
cin>>c;
if(c==1){
cout<<"你一打开门,就被黑暗侵蚀了"<<endl;
cout<<" game over "<<endl;
system("color 7C");
system("color 6C");
system("color 3C");
system("color 5C");
system("color 2C"); //字体颜色变化
cout<<"你违反了规则2"<<endl;
}
else
{//635对应131的大括号,相当于else包揽了全部,那么上个if执行完就结束
cout<<"大树下掉下一个礼物盒子"<<endl; Sleep(2000);
cout<<"你正想拆这个礼物盒子"<<endl; Sleep(2000);
cout<<"礼物盒子出现一行式子:3/5的余数是多少?" <<endl; Sleep(2000);
cout<<"请输入:"<<endl;
int e;
cin>>e;
if(e==3)
{//e=3的开始端
cout<<"打开礼盒中发现写了一行文字:请你回头看你家"<<endl;
Sleep(2000);
cout<<" /!~~~~~~~~~~~~~@ ☆ $$ .☆"<<endl;
cout<<" ./ !~~~▓~ ~~~~@ ◆ * $◢◣$ *"<<endl;
cout<<" / ^^ ! ══════@.◆ * $◢★◣$ *"<<endl;
cout<<" ..▎[] ▎田 田 ▎ |┃◆ * $◢■■◣$ *"<<endl;
cout<<" &&▎ ▎ ▎'|'▎ * $◢■■■◣$ *"<<endl;
cout<<"# ■■■■■■■■■■〓▄▃▂▁ ︸︸||︸︸"<<endl;
cout<<"你有惊无险地说道:终于恢复正常了!"<<endl;
cout<<"温馨提示:阅读完请按3进入下一个环节!!!"<<endl;
int d3;//d系列为3
cin>>d3;
}
else
{
cout<<"礼物盒子打开了"<<endl;
Sleep(1000);
system("cls");
cout<<" .-----------."<<endl;
cout<<" .' '."<<endl;
cout<<"/ /_\ /_\ \ "<<endl;
cout<<": ;"<<endl;
cout<<"| /\\/\\/\\/\\/\\/\\ |"<<endl;
cout<<": \/\\/\\/\\/\\/\\/ :"<<endl;
cout<<"\ /"<<endl;
cout<<" `. .'"<<endl;
cout<<" `~~~~~~~~~~~~`"<<endl;
Sleep(5000);
system("cls");
cout<<" .------------."<<endl;
cout<<" .' '."<<endl;
cout<<"/ /_\ /_\ \ "<<endl;
cout<<": ;"<<endl;
cout<<"| /\/\/\/\/\/\ |"<<endl;
cout<<"| | | |"<<endl;
cout<<"| | | |"<<endl;
cout<<"| | | |"<<endl;
cout<<"| | | |"<<endl;
cout<<": \/\/\/\/\/\/ :"<<endl;
cout<<"\ /"<<endl;
cout<<" `. .'"<<endl;
cout<<" `~~~~~~~~~~~~~`"<<endl;
Sleep(5000);
system("cls");
cout<<"这都算错,game over吧!"<<endl;
Sleep(3000);
cout<<"本游戏无论失败与否,都会进入下一个环节"<<endl;
cout<<"本提示只出现一次,下列情节不会提示"<<endl;
cout<<"温馨提示:阅读完请按3进入下一个环节!!!"<<endl;
int d3;//d系列为阅读完选择3
cin>>d3;
}
system("cls");
cout<<"你回到了家里, 你把圣诞树等物品放仓库"<<endl;
cout<<" \ / "<<endl;
cout<<" -->9<-- "<<endl;
cout<<" /o\ "<<endl;
cout<<" /_\_\ "<<endl;
cout<<" /_/_0_\ "<<endl;
cout<<" /_o_\_\_\ "<<endl;
cout<<" /_/_/_/_/o\ "<<endl;
cout<<" /@\_\_\@\_\_\ "<<endl;
cout<<" /_/_/O/_/_/_/_\ "<<endl;
cout<<" /_\_\_\_\_\o\_\_\ "<<endl;
cout<<" /_/0/_/_/_0_/_/@/_\ "<<endl;
cout<<" /_\_\_\_\_\_\_\_\_\_\ "<<endl;
cout<<"/_/o/_/_/@/_/_/o/_/0/_\ "<<endl;
cout<<" [___] "<<endl;
cout<<" $圣诞树登场$ "<<endl;
cout<<"这时,妹妹高兴地向你跑来"<<endl;
cout<<"说:“姐姐,我练习一个魔法”"<<endl;
cout<<"巴拉啦能量-思密达-姐姐消失"<<endl;
system("color 7C");
system("color 6C");
system("color 3C");
system("color 5C");
system("color 2C");
system("color 0F");
cout<<"你想,这傻妹妹怎么说这样的话?"<<endl;
cout<<"那要不要将圣诞树上的9倒过来?"<<endl;
cout<<"1-倒;2-不倒"<<endl;
int f;
cin>>f;
if(f==1)
{
cout<<"你刚把圣诞树上的9倒过来"<<endl;
Sleep(1000);
cout<<"妹妹向你扑过来"<<endl;
Sleep(1000);
cout<<"为什么要这样做???"<<endl;
system("color 4C");
Sleep(1000);
cout<<" ~~呀~~ "<<endl;
Sleep(1000);
cout<<" game over "<<endl;
cout<<"输入3进入下一个环节"<<endl;
int g4;
cin>>g4;
}
if(f>=2)
{
cout<<"好的,妹妹开玩笑说闹着玩"<<endl;
}
system("cls");
system("color 8F");
cout<<" 夜晚时间"<<endl;
cout<<"-----------------------------"<<endl;
system("cls");
cout<<"咚咚咚~"<<endl;
cout<<"谁?!"<<endl;
cout<<"我是亲爱的圣诞老人,快来开门吧,我给你礼物哦"<<endl;
cout<<"开不开门?1-开;2-不开"<<endl;
int f2;
cin>>f2;
if(f2==1)
{
system("color 4C");
cout<<"圣诞老人变成血人魔头,你被gameover了"<<endl;
cout<<" , _..._ ,"<<endl;
cout<<" {'. .' '. .'}"<<endl;
cout<<" { ~ '. _|= __|_ .' ~}"<<endl;
cout<<" { ~ ~ '-._ (___________) _.-'~ ~ }"<<endl;
cout<<" {~ ~ ~ ~.' '. ~ ~ }"<<endl;
cout<<"{ ~ ~ ~ $ /\ /\ & ~ ~ }"<<endl;
cout<<"{ ~ ~ $ __ __ & ~ ~ }"<<endl;
cout<<" { ~ $ -<(血) (血)>- & ~ ~}"<<endl;
cout<<" { ~ ;( \/ .-. \/ ); ~ }"<<endl;
cout<<" { ~ ~&_ () ^ ( ) ^ () _& ~ }"<<endl;
cout<<" '-._~ & (`-._'-'_.-') & ~_.-'"<<endl;
cout<<" '--& `'._' '_.'` &--' "<<endl;
cout<<" & \`-'/ &"<<endl;
cout<<" `& '-' &'"<<endl;
cout<<" `& &'"<<endl;
cout<<" '-...-'"<<endl;
Sleep(3000);
system("pause");
system("color 0F");
system("cls");
}
if(f2==2)
{
cout<<"你选择了不开--圣诞老人强行破门"<<endl;
cout<<"磅、磅、磅"<<endl;
cout<<"门都快敲碎了!!!我该咋办???快躲!!!"<<endl;
Sleep(1000);
cout<<".";
Sleep(1000);
cout<<".";
Sleep(1000);
cout<<".";
cout<<"这时,妹妹登场!!!"<<endl;
cout<<"诡异地说:古娜拉黑暗之神——玛卡巴卡——嘎嘎嘎"<<endl;
Sleep(10000);
system("cls");
cout<<"---啊---你听见了假圣诞老人的一声惨叫"<<endl;
cout<<"你想起来仓库还有你跳钢管舞的钢管,可以用来防身(除非你是女的,不然~~难解释)"<<endl;
cout<<"怎么做???1-去仓库;2-打开门查看情况"<<endl;//不是这里断开,而是在第2天断开
int d4;
cin>>d4;
if(d4==1)
{
cout<<"你来到了仓库,发现了圣诞树"<<endl;
cout<<"你突然想起妹妹刚刚叫的是古娜拉黑暗之神"<<endl;
cout<<"你急忙把圣诞树上的9倒过来了"<<endl;
cout<<" \ / "<<endl;
cout<<" -->6<-- "<<endl;
cout<<" /o\\ "<<endl;
cout<<" /_\_\\ "<<endl;
cout<<" /_/_0_\\ "<<endl;
cout<<" /_o_\_\_\\ "<<endl;
cout<<" /_/_/_/_/o\\ "<<endl;
cout<<" /@\_\_\@\_\_\\ "<<endl;
cout<<" /_/_/O/_/_/_/_\\ "<<endl;
cout<<" /_\_\_\_\_\o\_\_\\ "<<endl;
cout<<" /_/0/_/_/_0_/_/@/_\\ "<<endl;
cout<<" /_\_\_\_\_\_\_\_\_\_\\ "<<endl;
cout<<"/_/o/_/_/@/_/_/o/_/0/_\\ "<<endl;
cout<<" [___] "<<endl;
cout<<"你回去打开了门,发现什么都没有,妹妹依旧在睡觉"<<endl;
cout<<"似乎一切都没有发生"<<endl;
cout<<"……"<<endl;
Sleep(6000);
}
else
{
cout<<"啊,这,这是什么?你看到了一滩血迹"<<endl;
system("color 4D");
system("color 6C");
system("color 3B");
system("color 2C");
system("color 7F");
system("color 0F");
cout<<"你回头……"<<endl;
system("color 4C");
cout<<"妹妹手长出了利爪,扑向了你"<<endl;
Sleep(1000);
cout<<" ~~呀~~ "<<endl;
Sleep(1000);
cout<<" game over "<<endl;
cout<<"你违反了规则4"<<endl;
Sleep(7000);
}
system("cls");
system("color 0F");
}
cout<<"恭喜你,成功存活1天"<<endl;
cout<<"------第2天------"<<endl;
cout<<"你再次醒来,发现了纸条3"<<endl;
cout<<" 纸条3"<<endl;
cout<<"规则7:小红和两个好朋友会过来,请好好珍惜友谊"<<endl;
cout<<"规则8:你爸爸是画家,请不要坐红色的椅子"<<endl;
cout<<"规则9:千万不要让小红跟你妹妹对视"<<endl;
cout<<"输入3进入下一个环节"<<endl;
int d5;
cin>>d5;
system("cls");
cout<<"___---___---___---___---___---___---___---___"<<endl;
cout<<"叮咚、叮咚、叮咚"<<endl;
cout<<"你通过猫眼看到的场景如下图"<<endl;
cout<<" _O_ _____ _<>_ ___ "<<endl;
cout<<" / \ | | / \ / _ \ "<<endl;
cout<<" |==/=\==| |[/_\]| |==\==/==| | / \ | "<<endl;
cout<<" | O O | / O O \ | >< | | |*| | "<<endl;
cout<<" \ V / /\ - /\ ,-\ () /-. \ X / "<<endl;
cout<<" /`---'\ /`---'\ V( `-====-' )V /`---'\ "<<endl;
cout<<" O'_:_`O O'M|M`O (_____:|_____) O'_|_`O "<<endl;
cout<<" -- -- -- -- ---- ---- -- -- "<<endl;
cout<<"妹仔们,是否开门(1-开门;2-不开)"<<endl;
int d6;
cin>>d6;
if(d6==1)
{
cout<<"你刚把门打开,突然其中一个小伙伴变异"<<endl;
Sleep(1000);
cout<<" ~~呀~~ "<<endl;
Sleep(1000);
cout<<" game over "<<endl;
cout<<"你违反了规则7"<<endl;
cout<<"再次恭喜你触发作者的眷顾,免死一次!!!"<<endl;
cout<<"温馨提示:阅读完请按3进入游戏!!!"<<endl;
int d7;
cin>>d7;
}
else
{
cout<<"你感觉很疑惑哦,我只有3个好朋友?问另外一个人是谁"<<endl;
cout<<"另外一个人回答:“我叫古娜拉,是小红的好朋友”"<<endl;
cout<<"这、这、这绝对是变异人!!!"<<endl;
Sleep(5000);
}
system("cls");
cout<<"不久就没有敲门声了"<<endl;
cout<<"叮咚、叮咚、叮咚,门铃声再次响起"<<endl;
cout<<"你通过猫眼看到的场景如下图"<<endl;
cout<<" _O_ _____ _<>_ "<<endl;
cout<<" / \ | | / \ "<<endl;
cout<<" |==/=\==| |[/_\]| |==\==/==| "<<endl;
cout<<" | O O | / O O \ | >< | "<<endl;
cout<<" \ V / /\ - /\ ,-\ () /-. "<<endl;
cout<<" /`---'\ /`---'\ V( `-====-' )V "<<endl;
cout<<" O'_:_`O O'M|M`O (_____:|_____) "<<endl;
cout<<" -- -- -- -- ---- ---- "<<endl;
cout<<"哇!是我的小伙伴过来了哦!!!"<<endl;
cout<<"你热情开了门"<<endl;
Sleep(5000);
cout<<"她们坐在客厅里又说有笑"<<endl;
cout<<"你切好了水果,发现客厅只剩一张红色的椅子"<<endl;
cout<<"你心里想,规则上说不能坐红色椅子"<<endl;
Sleep(2000);
cout<<"这时,小红嘴巴狰狞的说:快坐下来呀,,,"<<endl;
cout<<"似乎不坐下就要把你吃掉的样子"<<endl;
cout<<"你突然想起规则也要珍惜友谊"<<endl;
Sleep(2000);
cout<<"怎么办?"<<endl;
cout<<"怎么办?怎么办?怎么办?"<<endl;
cout<<"怎么办?"<<endl;
Sleep(2000);
cout<<"你快四分五裂"<<endl;
cout<<"……"<<endl;
cout<<"你灵机一动,说我还忘了一件事要完成,完成后再来陪你"<<endl;
system("pause");
system("cls");
cout<<"去哪里?1-仓库;2-爸爸的房间"<<endl;
int d8;
cin>>d8;
if(d8==1)
{
cout<<"你实在没办法,想起仓库有钢管,可以用来防身"<<endl;
cout<<"你刚拿起钢管,刚转身"<<endl;
system("color 4D");
Sleep(3000);
system("color 0F");
Sleep(1000);
cout<<" ~~呀~~ "<<endl;
Sleep(1000);
cout<<" game over "<<endl;
cout<<"但你奇怪的复活了"<<endl;
system("pause");
system("cls");
}
if(d8==2)
{
cout<<"哈呼、哈呼~~"<<endl;
cout<<"爸爸是画家,他房间里应该会有一些涂料"<<endl;
cout<<"在他的房间里找到了白色的染料。"<<endl;
cout<<"把椅子涂成了白色,是圣诞节独有的气息"<<endl;
cout<<"你逃过了这一劫"<<endl;
Sleep(5000);
system("cls");
}
cout<<"你和大家一起坐在客厅,齐乐融融"<<endl;
cout<<"你看着白色的椅子,安心了很多"<<endl;
cout<<"恭喜你,额外发现一张纸条"<<endl;
cout<<" 纸条4"<<endl;
cout<<"规则10:圣诞老人不喜欢苹果,千万不要让他看到,但他非常喜欢数学好的小朋友"<<endl;
cout<<"规则11:圣诞老人的礼物有两个,请选择有数字的那个"<<endl;
cout<<"规则12:小红很注重她的MM型领结"<<endl;
cout<<"规则13:纸条4中有一条规则是假的,这条是真的"<<endl;
cout<<"阅读完请按3继续"<<endl;
int d9;
cin>>d9;
system("cls");
cout<<"这时,妹妹睡醒出来了"<<endl;
cout<<"哇~好多好多好多小朋友呀@"<<endl;
cout<<"看起来好好吃呀!"<<endl;
cout<<"原来妹妹饿了,那么一起吃午饭吧"<<endl;
cout<<"--------------午饭时间------------"<<endl;
cout<<"午饭挺好吃的,很快就只剩一只鸡腿"<<endl;
cout<<"做什么?1-继续干饭;2-把自己准备的精美的MM型领结赠送给小红"<<endl;
int d10;
cin>>d10;
if(d10==1)
{
cout<<"你心里想着:反正还有其它菜,这不关我什么事"<<endl;
cout<<"突然,你感觉空气急剧下降"<<endl;
cout<<"妹妹因为一条鸡腿跟小红对视,双眼通红"<<endl;
cout<<"喷"<<endl;
cout<<" 喷"<<endl;
cout<<"喷"<<endl;
cout<<"整个房子轰天动地,倾房倒下"<<endl;
Sleep(1000);
cout<<" ~~呀~~ "<<endl;
Sleep(1000);
cout<<" game over "<<endl;
Sleep(2000);
system("pause");
system("cls");
}
else
{
cout<<"你感觉不踏实,她们可能会因为鸡腿抢夺起来"<<endl;
cout<<"你拿起一对精美的MM型领结给小红"<<endl;
cout<<"还好你看到了规则上要佩戴M M型领结,提前准备了"<<endl;
cout<<"小红很喜欢这个领结哦,说这是我最喜欢的领结了哦"<<endl;
cout<<"小红一开心,给了你一个宝贝:M之玫瑰"<<endl;
cout<<" \_\/ .-==/~\ "<<endl;
cout<<"___/_,__,_ __ ____ ____ __)/ M /{~}}"<<endl;
cout<<"---,---,------------------,\'-' {{~}"<<endl;
cout<<" '-==\}/ "<<endl;
cout<<"这可以用来防身用ヾ(?°?°?)??"<<endl;
cout<<"输入3进入下一个环节"<<endl;
int g3;
cin>>g3;
system("cls");
}
cout<<"为了圣诞老人的到来,我们可是忙了一天"<<endl;
cout<<"这妹妹也一直不懂来帮忙,一直在看电视"<<endl;
cout<<"小红洗完澡,对我们说:“忙了一天,我们出去走走吧,看看有什么收获”"<<endl;
cout<<" _____ __________________ "<<endl;
cout<<" | |____| | "<<endl;
cout<<" |[/_\]| |我们一起出去走走吧| "<<endl;
cout<<" / O O \ |__________________| "<<endl;
cout<<" /\ - /\ "<<endl;
cout<<" /`---'\ "<<endl;
cout<<" O' | `O "<<endl;
cout<<" -- -- "<<endl;
cout<<"你回头看了一下妹妹,妹妹看了一天的电视,现在熟睡在床上呢"<<endl;
cout<<"刚刚闪闪发光的会不会是纸条之类的神秘线索吧!!!"<<endl;
cout<<"去不去?1-去;2-不去"<<endl;
int d11;
cin>>d11;
if(d11==1)
{
cout<<"你在好奇心的驱使下,跟着出去"<<endl;
cout<<"嘻、嘻、嘻"<<endl;
Sleep(1000);
cout<<"终于逮到你了"<<endl;
system("color 4C");
Sleep(1000);
cout<<"猎杀时刻"<<endl;
Sleep(1000);
cout<<" ~~呀~~ "<<endl;
Sleep(1000);
cout<<" game over "<<endl;
Sleep(5000);
cout<<"可你又奇怪的复活了"<<endl;
system("color 0F");
system("cls");
}
else
{
cout<<"小红有点不开心,双眼逐渐流出血,房间在扭曲"<<endl;
Sleep(1000);
cout<<"你猛然发现:小红没有带M M型领结"<<endl;
Sleep(1000);
cout<<"还好你口袋里还有一个,你把它给小红带上"<<endl;
Sleep(1000);
cout<<"这一切终于正常了"<<endl;
Sleep(1000);
cout<<"你再次睁眼,发现小红安静的坐在沙发,似乎什么都没有发生过"<<endl;
Sleep(2000);
cout<<"输入3进入下一个环节"<<endl;
int g2;
cin>>g2;
system("cls");
}
cout<<"---叮叮当———叮叮当---叮叮叮叮当---"<<endl;
cout<<"---快开门———快开门---不然噶了你---"<<endl;
cout<<" 圣诞老爷爷登场" <<endl;
Sleep(3000);
cout<<"妹妹高兴地拿出苹果对姐姐说,我们拿出来孝敬圣诞老人吧"<<endl;
Sleep(1000);
cout<<"这时圣诞老爷爷已经开门了,他,他看到了苹果"<<endl;
Sleep(1000);
cout<<"脸上喜悦的表情瞬间变成死亡微笑"<<endl;
cout<<"怎么办?1-把苹果丢出窗外 2-拿起苹果"<<endl;
int g;
cin>>g;
if(g==1)
{
cout<<"你灵机一动,把苹果扔出窗外"<<endl;
Sleep(1000);
cout<<"正当你为你的智商骄傲的时候"<<endl;
Sleep(1000);
cout<<"圣诞老爷爷愤怒地说:苹果、苹果、我最讨厌"<<endl;
Sleep(1000);
cout<<"~~最讨厌有苹果的人了"<<endl;
cout<<" ~~呀~~ "<<endl;
Sleep(1000);
cout<<" game over "<<endl;
Sleep(5000);
cout<<"再次尝试吧!!!"<<endl;
system("color 0F");
}
else
{
cout<<"可怕的事还是发生了"<<endl;
Sleep(1000);
cout<<"规则上说不要让圣诞老人看到苹果"<<endl;
cout<<"现在丢了也无济于事,也改变不了什么"<<endl;
Sleep(1000);
cout<<"于是你拿起苹果微笑对圣诞老人说"<<endl;
Sleep(1000);
cout<<"一个苹果 + 一个苹果 = 两个苹果"<<endl;
cout<<"圣诞老爷爷,我数学好吧!!!"<<endl;
cout<<" "<<endl;
cout<<" "<<endl;
cout<<" "<<endl;
Sleep(2000);
cout<<" \(^o^)/~好 \(^o^)/~好 \(^o^)/~好"<<endl;
Sleep(1000);
cout<<"我最喜欢数学、算术好的小朋友了"<<endl;
Sleep(1000);
cout<<"好孩子,圣诞老人会祝福你一路平安!!!"<<endl;
Sleep(1000);
cout<<"说着:圣诞老人给你两个礼物选择,左手的礼物有数字,右手的礼物有一个雪花的图案"<<endl;
cout<<"选哪个?1-左手;2-右手"<<endl;
int h;
cin>>h;
if(h==1)
{
cout<<"哎呀,你个斩刀鬼呀,圣诞节不选雪花选数字,game over 吧!"<<endl;
cout<<" ~~呀~~ "<<endl;
Sleep(1000);
cout<<" game over "<<endl;
Sleep(5000);
cout<<"游戏结束,结局失败"<<endl;
system("pause");
}
else
{
cout<<"只有你才懂爷爷的心思呀"<<endl;
Sleep(1000);
cout<<"圣诞老爷爷把你当作公主一样抱在怀里,永远都不松开"<<endl;
Sleep(2000);
cout<<"游戏结束,顺利通关"<<endl;
cout<<" "<<endl;
cout<<" ~~呀~~ "<<endl;
Sleep(1000);
cout<<" game win "<<endl;
Sleep(5000);
}
}
return 0;
} //635对应131的大括号
}
作品情节如上,滑稽可笑又需要消耗智慧,有好的情节更改一定要给我看看哦!!!