#include<bits/stdc++.h>
#include<Windows.h>
#include<conio.h>
#include<time.h>
#define mm1 700
#define mm2 1200
#define mm3 1900
using namespace std;
const long long m=MAXn=10000000000000000000;
int fishjez[30]={0,80,40,60,90,100,85,55,75,25,25,40,60,50,45,130,70};
string gjfxx[30]={"","獠牙","利爪","笙忼术","笙电术","土玄术","战斧","法杖","易闽术","鸡汤术","篮球","易慴术","戟埕术","黑子"};
string fz[30]={"","野猪","毒腥","吞噬","火电","咀骨","僵尸","协增","黑子","长臂","召唤","黄眸","蛛形","鸡王"};
string fishing[200]={"","石斑鱼","螃蟹","条石斑","鲭鱼","鲶鱼","红鳟鱼","海鲂","小鲨鱼","海参","鳐鱼","沙丁鱼","鳕鱼","蝴蝶鱼","章鱼","秋刀鱼","罗非鱼","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""};
string fms[8]={"","I","II","III","IV","V"};
string dfs1[20]={"","","",""};
struct o{
int times;
int jjes;
}fishs[1000];
int main(){
system("title 快乐游戏机");
for(int i=1;i<=14;i+=1){fishs[i].jjes =fishjez[i];}string gjfx;int ttk=0;
char a1[100][100]={
"################################### ",
"#! # *# # ",
"###### ##### ##### ###### ",
"# * # ",
"##### ########## ######## ##### ",
"# ## *# # # ## # ",
"# ### # # # ### # ",
"# #### ######## ###### #### # ",
"# ## ## # ",
"# ######### ######## # ",
"# ## ## @ # ",
"############ #### ########### ",
"# ## ## # ",
"### ## ### ### ### # ",
"#* # #@ # ",
"################################### ",
" ",
};
char a2[100][100]={
"################################### ",
"#! ### # ",
"####### ### ######## # ",
"# ### ### * # # ",
"# ### ########### # ",
"# ###### ### # ",
"# # ################ # ",
"# ### # # ",
"# # * # ################ ",
"# ###### ### *# # ",
"# ### ##### # ",
"# ### # # # ",
"# ### # # # @ # ",
"# ### ######## # # # ",
"# # # ",
"################################### ",
" ",
};
char a3[100][100]={
"################################### ",
"# @ ##### # # # ",
"# # # &# # # # # & # # ",
"# # # ## # # # *# # ",
"# ## ## ## ###### # ",
"# & # # # # # # ",
"################# ################# ",
"# ! # ",
"################# ################# ",
"# # # # #* # ",
"# # ## ## # # # ",
"# * ### # #@ # # # ",
"# ### # # # & # # ",
"##### # # ########### # ",
"#& ######## # # @ # ",
"################################### ",
" ",
};
char a4[100][100]={
"################################### ",
"# # # * # ",
"# ###### # ! # ###### # ",
"# ### ### # ",
"####### ## ## ####### ",
"# * ## # # ## # ",
"# ## ###### ##### ## # ",
"# ## ## ## ## # ",
"# ## ## ## ## # ",
"# ### @ # ### # * ### # ",
"# ##* ## ## ## # ",
"# # ## # # ## # # ",
"# # # # # @ # ",
"# ####### ####### # ",
"# # ",
"################################### ",
" ",
};
char a5[100][100]={
"################################### ",
"#! *# ",
"# #### ### ###### ",
"######### # ##### # ",
"# @ # #### # ",
"####### ## ###### # ### # ",
"# ### *# # # # ",
"# ### ###### # # # ",
"# ### ### # # # ",
"# ### ### # # # ",
"#### ### ### # # # # ",
"# ##### #### # # # # ",
"# ### # # # # ",
"# ##### ########### ### ##",
"# ### ## @ #",
"####################################",
" ",
};
string s20;int fmt;string fucks;
int k10=0;string sb0="欢迎使用快乐游戏机,尊敬的用户,快乐游戏机竭诚为您服务!",sb1="欢迎来到鸡仙大陆!",sb2="这片大陆危机四伏,你要想方设法的生存下去,并逃出这里!";
for(int i=0;i<=sb0.size()-1;i++){
cout<<sb0[i];
Beep(mm3,45);Sleep(13);}
Sleep(620);Beep(mm3,60);
cout<<endl<<" 请输入游戏机的密码(6位):" ;
string hhhh;
for(int i=1;;i++){
cin>>hhhh;
if(hhhh=="123456"){cout<<"密码正确!"<<endl;Beep(mm2,201);break; }
cout<<"密码错误 ";Beep(mm1,500);
if(i>1){cout<<"已尝试"<<k10<<"次"<<endl;}k10+=1;}
while(2){
cout<<"请问你想玩什么游戏?"<<endl;Sleep(500);
cout<<"双城之战请输入:1 抽卡牌请输入:2 解救人质请输入:3 石头剪刀布请输入:4 鸡仙大陆(生存版)请输入:5"<<endl;
long long zidan=0;
//木材cll1 藤条cll2 棕榈叶cll3 铁锭cll4 石片cll5 青金石cll6
int cl7=0,ml1=0,tl1=0,tl2=0,tl3=0,tl4=0,tl5=0,tl6=0,tl7=0,plof=0;
int cll1[49]={0,3,2,10,3,2,5,12,20,0,2,4,6,5,1,1,0,0,1,0,0,0,4,0,0,2,500,5,0,0,10,100,0,0,10,10};
int cll2[49]={0,0,10,15,0,2,3,5,12,0,0,3,4,3,5,30,5,0,0,0,1,0,0,0,0,1,0,7,0,40,0,100,0,0,50,0};
int cll3[49]={0,3,0,15,2,0,0,0,0,0,0,0,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0,2,0,0,10,50,100,80,200,0};
int cll4[49]={0,0,1,7,0,0,0,0,4,0,0,0,2,0,0,0,20,1,1,1,1,5,0,0,2,4,500,0,4,0,0,0,0,0,100,5};
int cll5[49]={0,0,0,0,1,0,0,2,0,2,3,0,1,0,10,0,5,0,0,0,0,0,0,0,0,0,0,5,0,20,0,0,30,0,0,0};
int jnj[40]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
int hs[10]={0,0,0},hss[10]={0,0,0};
int j11[40]={0,1,2,4,6,10,15,20,60,150,151};
int j12[40]={0,7,15,25,50,100,220,340,1314,3000,250250,857857,22222,53453};
int j13[40]={0,25,50,90,175,220,350,700,1100,4500,3838,3838438,43553,114514};
int linjian[40]={0,0,0,0,0,0};
int jjjb[20]={0,7,15,32,60,120,400,700,1000,2500,3830,413,131,3123};
int ve[20]={0,12,12,12};
int gjs[30]={0,3,4,2,15,18,25,100,350,500,4,6,15},xls[30]={0,25,40,100,70,250,280,350,1000,23423,546654,54336,56665};
int jjjj[20]={0,12,15,5,100,160,220,350,1250,4500,6000,20,35,100};
string ssss[30]={"","小野猪","小狮子","小鳄龟","火电怪","土蜥蜴","野人酋长","森林女巫","森林巨人","钏姍钾","蔡虚坤","人物3","人物4","人物5"};
int xxxx[20]={0,160,220,700,450,1000,1200,2000,7000,20000,500000,114514,20005};
int jbs[40]={0,90,15,120,220,400,550,300,1,8,1,10,35,40,20,400,500,1300,1800,10000,25000};
string sss[20]={"","绿色平原","沙漠丘陵","世纪峡谷","死亡瀑布","黑暗森林","野人部落","僵尸村落","沉船","远山","废弃的篮球场","山顶洞","大山顶洞","超大的山顶洞"};
int xlz[100]={0,320,170,250,300,250,220,220,400,2000};
int gjz[100]={0,28,35,16,14,18,10,13,7,50};
int ltz[100]={0,200,400,200,180,220,270,250,100,50};
int wgj[100]={0,120,100,150,130,110,200,500,66666};
int dssgj[100]={0,12,15,5,100,160,220,350,1250,4500,6000,55,70,63};
int dssxl[100]={0,160,220,700,450,1000,1200,2000,7000,20000,500000,100000,320000,780000};
string ds[100]={"","小野猪","小狮子","小鳄龟","火电怪","土蜥蜴","野人酋长","森林女巫","小黄嘉安","钏姍钾","蔡虚坤"};
string wnm[100]={"","天空之刃","风鹰剑","原木刀","阿莫斯之弓","赤沙之杖","无工之剑","狼末","反物质核弹",""};
string cnm[100]={"","宠物1","宠物2","宠物3","宠物4","宠物5","宠物6","","","",""};
int fmtj=0,fmtj2=0,fmtj3=0;int jl=150;
int kjk;int uxl;int fy=0;int cl6=0;string dfs,dfs2; int ppm,ppm2;
int max1=0,max2=0;int zxc=0;int yd;int uyu;
long long h,q=0,am=0,cnt=0,sb=0,gj=0,xl=0,x1,t=0,bx1,sr,mjj,ll=8,sdd=0,gh=0,s5=0,s6=0,s7,s11=0,s12=0,s13,v,ti=15,yy=0,akm=0,ab=444,z,jj,n=0,x=0,y=100;
string s1,s2,s8,s9,s10,hj,s20;int k,gb,nd,yp,ugb=15,jxl=0,bd=0,jjb=0,sx=150,gsx=0,ggb=0,js=0,yls=0,ujy=0,jjy=0,jysx=100,dg=1,km=520,gm;int jm=20,jm2=5,io,cntm=100;string s45;
string r;int njz=0,aqw=10;int akl=0,qwz=0,step,stepisSB,stepisverySB,lmk;int nm;int pl=0,srs=0; bool tm1=0,tm2=0,tm3=0,tm4=0,tm5=0;int cl1=2,cl2=2,cl3=2,cl4=0,cl5=0;int p1=0,p2=100,pdg=1;int tian=0,shi=8,fen=0; int rw1=0,rw11=0,rw2=0,rw21=0,rw3=0,rw31=0,rw4=0,rw41=0,rw51=0,rw61=0,rw7=0,rw71=0,rw8,rw81=0,rw9=0,rw91=0,rwa=0,rwa1=0,rwb=0,rwb1=0,rwc=0,rwc1=0,rwd=0,rwd1=0;
int et=0,jgj=0,jez=200,jezsx=200,sp1=1,sp2=1,sp3=0,jsp=0,sk12,cmk=180;
char amy[100][100];int k10=1; long long u;bool han=0;x1=5; int tm9=0;
uxl=150;sx=150;fmtj=fmtj2=fmtj3=0;
cin>>h;
if(h==1){
int yx,wq,cw,dxl,dgj;
int xl,gj,lt;string s1,s2,cwnm,s10;
string nmt;
system("cls");
for(int i=3;i>=1;i-=1){
cout<<i<<"秒后开始游戏";
Beep(mm1,200);
Sleep(720);system("cls");
}cout<<"正在载入游戏中";for(int i=1;i<=3;i+=1){cout<<".";Sleep(440);}
Sleep(444);system("cls");
cout<<"请为你的角色创建一个名称吧:";cin>>nmt;Sleep(644);system("cls");
cout<<"\n 请选择一个英雄:\n";Sleep(444);cout<<"1,人物1 2,迪卢克 3,温迪 4,可莉 5,莫娜 6,阿贝多 7,优菈 8,埃洛伊 9,蔡徐坤\n ";
cin>>yx;xl=xlz[yx];gj=gjz[yx];lt=ltz[yx];Sleep(400); system("cls");
cout<<"\n 请选择一把武器:\n";Sleep(400);cout<<"1,天空之刃 2,风鹰剑 3,原木刀 4,阿莫斯之弓 5,赤沙之杖 6,无工之剑 7,偃月刀 8,反物质核弹\n ";
cin>>wq;cout<<"你装备了"<<wnm[wq];Sleep(555);cout<<"\n";s1=wnm[wq];gj+=wgj[wq];system("cls");
cout<<"\n 请选择你的宠物:\n";Sleep(411);cout<<"1,宠物1 2宠物2 3,宠物3 4,宠物4 5,宠物5 6宠物6\n ";
cin>>cw;cwnm=cnm[cw];Sleep(399);system("cls");
system("pause");
cout<<"正在匹配中";for(int i=1;i<=3;i+=1){cout<<".";Sleep(555);}
cout<<"\n你的对手是:";Sleep(444);srand(time(NULL));
int a=rand()%10+1;cout<<ds[a];s10=ds[a];dgj=dssgj[a];dxl=dssxl[a];
cout<<"\n";
cout<<"危险指数为"<<gj/15+xl/45<<"\n";cout<<s10<<"气势汹汹地向你冲来\n";
for(int i=1;;i+=1)
{
int kjk;
cout<<"==============================================#"<<endl<<"要怎么办?"<<endl<<endl;Sleep(333);cout<<" 0,技能 1,攻击 2,防御 ";if(i>=3){cout<<"3,逃跑";}cin>>kjk;
if(kjk==3){
if(i>=3){srand(time(0));int wers=rand()%8+1;
if(wers==1||wers==4||wers==5||wers==7){cout<<" 逃跑成功!"<<endl;continue;}
else{cout<<" 逃跑失败!"<<endl;
for(int p1=1;p1<=wers-1;p1++){
if(xl<=0){cout<<"你s了,游戏失败!#_#\n"; Sleep(444);system("pause");Sleep(300);break;}cout<<s10;
if(p1>1){cout<<"再次";}cout<<"攻击!"<<endl;Sleep(444);cout<<"对你造成"<<gj<<"点伤害,当前你的血量为"<<xl<<endl;Sleep(666);
}
cout<<"你趁着"<<s10<<"的攻击间隙,逃跑了" <<endl;
}break;
}}
if(kjk==2){cout<<"你防御了来自"<<s10<<"的攻击,受到"<<5<<"点伤害";xl-=5;dxl-=10;continue;}
if(kjk==1){Sleep(333);
cout<<"你使用"<<s1<<"攻击,";cout<<"对"<<s10<<"造成"<<gj<<"点攻击, ";Sleep(666);cout<<"当前"<<s10<<"的血量为"<<dxl<<",你的血量为"<<xl<<"\n\n";Sleep(855);
dxl-=gj;if(dxl<=0){cout<<"最后,"<<s10<<"终于倒下了身躯\n 你胜利了";Sleep(1000);break;system("cls");}
cout<<s10<<"使用"<<gjfxx[a]<<"对你造成了"<<dgj<<"点攻击,";Sleep(666);cout<<"当前"<<s10<<"的血量为"<<dxl<<",你的血量为"<<xl<<"\n\n";Sleep(555);
xl-=dgj;if(xl<=0){cout<<"你牺牲了\n游戏失败!";Sleep(1000);system("cls");break;}}}}
if(h==2){
for(int k=1;k<=300;k
c++小游戏 要求:DEV-C++
最新推荐文章于 2024-04-13 21:17:15 发布