求c++游戏
#include <bits/stdc++.h>
#include<windows.h>
using namespace std;
int main(){
system("title minecraft"); cout<<"请选择你的手机类型\n"<<"1.安卓 2.苹果 3.老年机或手表\n"; int a; cin>>a; printf("开始游戏……\n"); Sleep(500); if (a==1 || a==2){ cout<<"请选择你用什么方式登录\n"<<"1.微信 2.QQ 3.微博 4.百度 5.手机号\n"; int b; cin>>b; cout<<"开始游戏!!\n"<<"请选择游玩什么\n"<<"1.服务器 2.单人模式 3.联机大厅 4.我的世界小故事\n"; int c; cin>>c; system("cls"); if (c==1){ Sleep(500); printf("正"); Sleep(500); printf("在"); Sleep(500); printf("进"); Sleep(500); printf("入"); Sleep(500); printf("游"); Sleep(500); printf("戏"); Sleep(500); printf("."); Sleep(500); printf("."); Sleep(500); printf("."); Sleep(500); printf("."); Sleep(500); printf("."); Sleep(500); printf("."); Sleep(500); system("cls"); system("title 租赁服小游戏"); system("color 6C"); cout<<"请选择你要进入的服务器\n"; int d; cin>>d; cout<<"你进来后发现服主正在服务器中\n"<<"你要做些什么?\n"<<"1.找服主要装备 2.好好生存 3.拉帮结派,收集萌新\n"; int e; cin>>e; if (e==1){ cout<<"服主见你猥琐至极,担心之后被打,把你两刀砍了!\n"<<"You died"; return 0; } else if (e==2){ cout<<"你准备将房子建在哪?\n"<<"1.离出生点近 2.海上 3.地底 4.离出生点有多远就多远\n"; int f; cin>>f; if (f==1){ cout<<"你房子被一些熊孩子拆了,流离失所,卒!\n"<<"You died"; return 0; } else if (f==2){ cout<<"海上不是个明智的选择,晚上,一堆溺尸把你脑子吃了\n"<<"You died"; return 0; } else if (f==3){ cout<<"你在地底猥琐发育,挖到钻石,现在你要出去吗?\n"<<"1.yes 2.no\n"; int g; cin>>g; if (g==1){ cout<<"没想到地上的人发展比你快,把凋零乱放,你被凋零炸死了\n"<<"You died"; return 0; } else if (g==2){ cout<<"地底资源缺乏,被别人欺负\n"<<"You died"; return 0; } else{ cout<<"see you!"; return 0; } } else if (f==4){ cout<<"离出生点远的确好,但是死后不容易回家\n"<<"You died"; return 0; } else{ cout<<"see you"; return 0; } } else if (e==3){ cout<<"服主怕你们造反,就把你们全部砍头\n"<<"You died"; return 0; } else{ cout<<"see you"; return 0; } } else if (c==2){ cout<<"请输入种子号\n"; int d; cin>>d; Sleep(500); printf("正"); Sleep(500); printf("在"); Sleep(500); printf("进"); Sleep(500); printf("入"); Sleep(500); printf("游"); Sleep(500); printf("戏"); Sleep(500); printf("."); Sleep(500); printf("."); Sleep(500); printf("."); Sleep(500); printf("."); Sleep(500); printf("."); Sleep(500); printf("."); Sleep(500); system("cls"); if (d==666){ system("color 6B"); cout<<"你走了一段路程后,远远地看见了十字架,你觉得有点不对,于是去到村庄\n"; cout<<"你接下来要干嘛?\n"<<"1.挖矿 2.四处瞎逛 3.砍树\n"; int e; cin>>e; if (e==1){ cout<<"你在村庄附近看见一个不是自己挖的人工矿道,你要进去吗?\n"; cout<<"1.yes 2.no\n"; int f; cin>>f; if (f==1){ cout<<"你发现矿道下有一个告示牌写着 Look back 你回头就看见了him,他一拳把你杀了\n"; cout<<"You died\n"; cout<<"你按复活也不行,于是把电脑砸了,你被母亲First Blood"; return 0; } else if (f==2){ cout<<"你离开那,感觉越来越不对劲,于是回到村庄,在中途看见一路蔓延的火"; cout<<"你还要回村吗?\n"<<"1.no 2.yes\n"; int g; cin>>g; if (g==1){ cout<<"him带着暗黑四大护法和亡灵军队\n"<<"You died\n"; cout<<"你按复活也不行,于是把电脑砸了,你被母亲double kill"; return 0; } else if (g==2){ cout<<"你看见一个白衣少年在毁灭村庄,凑近一瞧,原来是 Entity 303 你要保护村庄吗?\n"; cout<<"1.yes 2.no\n"; int h; cin>>h; if (h==1){ cout<<"你被 Entity 303 吊打\n"<<"You died\n"; cout<<"你按复活也不行,于是把电脑砸了,你被母亲Three kills"; return 0; } else if (h==2){ cout<<"him带着暗黑四大护法和亡灵军队\n"<<"You died\n"; cout<<"你按复活也不行,于是把电脑砸了,你被母亲Four kills"; return 0; } else{ cout<<"see you"; return 0; } } else{ cout<<"see you"; return 0; } } else{ cout<<"see you"; return 0; } } else if (e==2){ cout<<"him带着暗黑四大护法和亡灵军队\n"<<"You died\n"; cout<<"你按复活也不行,于是把电脑砸了,你被母亲double kill"; return 0; } else if (e==3){ cout<<"你在砍树时看见一个黑色的身影,你要去追他吗?\n"<<"1.yes 2.no\n"; int f; cin>>f; if (f==1){ cout<<"他一转身,黑色的躯体,白色的双眼,是 null 你的脑袋爆掉了\n"<<"You died\n"; cout<<"你按复活也不行,于是把电脑砸了,你被母亲 victory"; return 0; } else if (f==2){ cout<<"他扔了一把剑插入你的心脏\n"<<"You died\n"; cout<<"你按复活也不行,于是把电脑砸了,你被母亲 ACE"; return 0; } else{ cout<<"see you"; return 0; } } else{ cout<<"see you"; return 0; } } else{ system("color 5F"); cout<<"你出生在掠夺者哨塔旁,你先打还是发育,还是去村庄\n"<<"1.打击 2.发育 3.去村庄\n"; int e; cin>>e; if (e==1){ cout<<"开局打哨塔,为人民做贡献,但你还是\n"<<"You died"; return 0; } else if (e==2){ cout<<"你现在去干什么?\n"<<"1.开人工矿道 2.砍树 3.找矿洞\n"; int f; cin>>f; if (f==1){ cout<<"你准备怎么挖?\n"<<"1.垂直向下 2.阶梯状\n"; int g; cin>>g; if (g==1){ cout<<"你垂直向下挖到了岩浆\n"<<"You died"; return 0; } else if (g==2){ cout<<"真幸运,你躲过了岩浆,你看见岩浆旁有钻石,你去挖吗\n"<<"1.no 2.yes\n"; int h; cin>>h; if (h==1){ cout<<"刚好有个闪电苦力怕路过,你砍死了它,你挖到了钻石,你要做什么\n"; cout<<"1.回家 2.继续发育\n"; int i; cin>>i; if (i==1){ cout<<"刚好外面是血月,你一上去就被杀了\n"<<"You died"; return 0; } else if (i==2){ cout<<"你不仅躲过了血月,还挖了35颗钻石,你现在准备去哪发展\n"; cout<<"1.地狱 2.末地\n"; int j; cin>>j; if (j==1){ cout<<"你去挖黑曜石时,掉入岩浆\n"<<"You died"; return 0; } else if (j==2){ cout<<"你成功战胜末影龙\n"<<"You win"; int x; cin>>x; return 0; } else{ cout<<"see you"; return 0; } } else{ cout<<"see you"; return 0; } } else if (h==2){ cout<<"闪电苦力怕低调路过,砰~~\n"<<"You died"; return 0; } else{ cout<<"see you"; return 0; } } else{ cout<<"see you"; return 0; } } else if (f==2){ cout<<"你得到了大量木头,你现在干什么\n"<<"1.造房子 2.挖矿\n"; int g; cin>>g; if (g==1){ cout<<"你造完房子后已经是捣蛋夜\n"<<"You died"; return 0; } else if (g==2){ cout<<"现在挖矿太晚了,一堆creeper在你身边,砰~~\n"<<"You died"; return 0; } else{ cout<<"see you"; return 0; } } else if (f==3){ cout<<"你找了一天也没找到,狂欢夜来临\n"<<"You died"; return 0; } else{ cout<<"see you"; return 0; } } else if (e==3){ cout<<"结果村庄里全是奸商,你把电脑砸了\n"<<"你被母亲招待了一次竹笋炒肉丝"; return 0; } else{ cout<<"see you"; return 0; } } } else if (c==3){ system("color 1A"); cout<<"你要和谁玩\n"<<"1.作者林** 2.作者朋友陈**用电脑玩 3.作者朋友夏** 4.和自己朋友 5.乱进房间\n"; int d; cin>>d; Sleep(500); printf("正"); Sleep(500); printf("在"); Sleep(500); printf("进"); Sleep(500); printf("入"); Sleep(500); printf("游"); Sleep(500); printf("戏"); Sleep(500); printf("."); Sleep(500); printf("."); Sleep(500); printf("."); Sleep(500); printf("."); Sleep(500); printf("."); Sleep(500); printf("."); Sleep(500); system("cls"); if (d==1){ cout<<"你一进入游戏便看见林**再建东西,你要干什么\n"<<"1.阻止 2.慢慢发展\n"; int e; cin>>e; if (e==1){ cout<<"林**很是愤怒,把你无限传送至1000层\n"; for (int i=1;i<=5;i++){ cout<<"你从高处摔下来\n"; } cout<<"You died"; return 0; } else if (e==2){ cout<<"结果林**造的是召唤 Entity 303 的祭台, Entity 303 一出现将你杀掉\n"<<"You died"; return 0; } else{ cout<<"see you"; return 0; } } else if (d==2){ cout<<"陈**非常友好,一来就百亿tnt,你的显卡凉了"; return 0; } else if (d==3){ cout<<"你一进入游戏发现是夜晚,你要干什么?\n"<<"1.砍树 2.挖矿 3.退出\n"; int e; cin>>e; if (e==1){ cout<<"你砍树时周围一个怪也没有,夏**挖了个洞躲了进去\n"; cout<<"你一砍,砍到大天亮,这时太阳升了起来,它有着猥琐表情\n"; cout<<"你要作甚?\n"<<"1.逃跑 2.退出\n"; int f; cin>>f; if (f==1){ cout<<"你跑了许久周围全都是岩浆\n"<<"You died"; return 0; } else if (f==2){ cout<<"你发现退不了,一拳把手机打爆了"; return 0; } else{ cout<<"see you"; return 0; } } else if (e==2){ cout<<"你在地底挖矿,突然Red Sun出现,周围变为岩浆\n"<<"You died"; return 0; } else if (e==3){ cout<<"你发现退不了,一拳把手机打爆了"; return 0; } else{ cout<<"see you"; return 0; } } else if (d==4){ Sleep(500); printf("正"); Sleep(500); printf("在"); Sleep(500); printf("进"); Sleep(500); printf("入"); Sleep(500); printf("游"); Sleep(500); printf("戏"); Sleep(500); printf("."); Sleep(500); printf("."); Sleep(500); printf("."); Sleep(500); printf("."); Sleep(500); printf("."); Sleep(500); printf("."); Sleep(500); system("cls"); system("color 3D"); cout<<"你和自己朋友一起玩,你要作甚?\n"<<"1.砍树 2.挖矿 3.造房\n"; int e; cin>>e; if (e==1){ cout<<"现在你得到了10组木头,天也晚了,你准备干什么?\n"<<"1.挖个洞当家 2.造家\n"; int f; cin>>f; if (f==1){ cout<<"你在晚上时还顺便挖矿,现在你和朋友都有铁套、钻剑了\n"; cout<<"你又准备做啥?\n"<<"1.杀末影人 2.挖黑曜石、钻石\n"; int g; cin>>g; if (g==1){ cout<<"你和朋友不小心闯入末影人的洞穴\n"<<"You died"; return 0; } else if (g==2){ cout<<"后来你们附魔了钻剑、弓、套装,打败末影龙,拿到宝藏\n"; cout<<"You win"; int x; cin>>x; return 0; } else{ cout<<"see you"; return 0; } } else if (f==2){ cout<<"你们造家时,一堆怪物围攻你\n"<<"You died"; return 0; } else{ cout<<"see you"; return 0; } } else if (e==2){ cout<<"你们拥有足够多的矿物了,你要干什么?\n"<<"1.造家 2.杀怪 3.去地狱\n"; int f; cin>>f; if (f==1){ cout<<"你们造家时已经到了血月\n"<<"You died"; return 0; } else if (f==2){ cout<<"你们杀了许多怪,拥有很多经验,又要干嘛?\n"<<"1.附魔 2.去末地\n"; int g; cin>>g; if (g==1){ cout<<"你朋友为了秀附魔,把你砍死了\n"<<"You died"; return 0; } else if (g==2){ cout<<"你们去了末地,准备怎么打末影龙?\n"<<"1.两人一起打龙 2.一起打水晶 3.分开打\n"; int h; cin>>h; if (h==1){ cout<<"末影龙无限回血\n"<<"You died"; return 0; } else if (h==2){ cout<<"你们两人都打水晶,没人管末影龙\n"<<"You died"; return 0; } else if (h==3){ cout<<"你们靠着你们“优秀”的配合能力打败了末影龙\n"<<"You win"; return 0; } else{ cout<<"see you"; return 0; } } else{ cout<<"see you"; return 0; } } else if (f==3){ cout<<"你们去到了地狱拿到了许多宝贝,可是你脚滑掉入岩浆\n"<<"You died"; return 0; } else{ cout<<"see you"; return 0; } } else if (e==3){ cout<<"你们一造造到大晚上,刚好lunner moon 来临控制了你们的发展\n"<<"You died"; return 0; } else{ cout<<"see you"; return 0; } } else if (d==5){ Sleep(500); printf("正"); Sleep(500); printf("在"); Sleep(500); printf("进"); Sleep(500); printf("入"); Sleep(500); printf("游"); Sleep(500); printf("戏"); Sleep(500); printf("."); Sleep(500); printf("."); Sleep(500); printf("."); Sleep(500); printf("."); Sleep(500); printf("."); Sleep(500); printf("."); Sleep(500); system("cls"); system("color 4F"); cout<<"你乱进房间,里面房主让你们打开麦克风你开吗?\n"<<"1.no 2.yes\n"; int e; cin>>e; if (e==1){ cout<<"里面一直在骂脏话“***************”被你妈听见\n"<<"You died"; return 0; } else if (e==2){ cout<<"房主已将你踢出房间"; return 0; } else{ cout<<"see you"; return 0; } } else{ cout<<"see you"; return 0; } } else if (c==4){ system("color 6B"); cout<<"MC小故事即将开始,(按任意数字继续)\n"; int d; cin>>d; Sleep(500); cout<<"在茫茫宇宙中有一个星球——方块星球\n"; int e; cin>>e; cout<<"在这星球上还有3位创世神,Noatch、Him和……\n"; int f; cin>>f; cout<<"Udebring,Udebring他收了个关门弟子——Entity 303,虽然Udebring是创世神,可是他\n"; cout<<"渴望力量,抢到了力量之匙,到了方块大陆上召唤了祭坛,准备获取力量时\n"; cout<<"Him突然出现阻止\n"; int g; cin>>g; cout<<"可是Him虽然是创世神,但是Him却还是敌不过已得到力量之匙Udebring\n"; int h; cin>>h; cout<<"Him被Udebring打残废了,只好念出咒语,叫出了Noatch\n"; cout<<"Noatch、Him两人合作将Udebring打死了,夺得了力量之匙\n"; cout<<"创造了MC大陆\n"; int i; cin>>i; cout<<"Him和Noatch二人合力创造了许多生物:史蒂夫、羊、猪……\n"; cout<<"可是过了许久也出现了许多怪物\n"; int j; cin>>j; cout<<"Him看见自己创造的MC大陆有了怪物,便准备控制MC大陆的发展\n"; cout<<"可是Noatch却决定放任MC大陆发展\n"; int k; cin>>k; cout<<"于是Him和Noatch便因为思想不同大打出手\n"; cout<<"结果Him被Noatch封印到下界\n"; int l; cin>>l; cout<<"Him的分身就准备联合末地救出Him\n"; int a; cin>>a; cout<<"Him的分身把Him本体救出来了\n"; int qwe; cin>>qwe; cout<<"最后,Him把Noatch打死了\t"; int qw; cin>>qw; cout<<"Him成了唯一的一个创世神"; } else{ cout<<"see you"; return 0; } } else{ cout<<"你的手机爆掉了!!!"; return 0; } return 0;
}
共 1 条回复
#include <bits/stdc++.h>
#include<windows.h>
using namespace std;
int main(){
}