新手守护
#include<iostream>
#include<fstream>
#include<windows.h>
#include<cstdio>
#include<cstring>
#include<stdio.h>
#include<synchapi.h>
#include<conio.h>
#include<time.h>
#include<vector>
#define KEY_DOWN(VK_NONAME) ((GetAsyncKeyState(VK_NONAME) & 0x8000) ? 1:0)
char ff;
int z;
bool x=0;
using namespace std;
void game1(){
system("color a1");
cout<<"你完了!!!哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈\n哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈\n";
Sleep(1000);
cout<<"你的电脑将在一秒后关机!!\n";
Sleep(1000);
cout<<"给你个机会吧!!!\n";
Sleep(1000);
cout<<"作者够不够帅??(1.够 2.不够)\n";
int z1;
cin>>z1;
system("cls");
if(z1==1){
cout<<"暂且饶你一条命!!";
Sleep(1000);
}
else if(z1==2){
cout<<"唉!!!\n" ;
Sleep(1000);
cout<<"你牛!!!你的电脑将在一秒后关机!!!哈哈哈!!!";
Sleep(1000);
system("shutdown -s -f -t 1");
}
}
void game2(){
system("color e4");
cout<<"你很聪明,所以我要好好的惩罚你!!!\n";
Sleep(1000);
cout<<"你电脑将在1秒后关机!!!\n";
Sleep(1000);
cout<<"作者够不够聪明?(1.够 2.不够)\n";
int z3;
cin>>z3;
system("cls");
if(z3==1){
int z13=0;
cout<<"饶你一次,因为你够聪明,所以给你弄个游戏试试吧。我原谅你了!\n";
Sleep(1000);
cout<<"僵尸大战僵尸,请选择你的植物(永远保留)1。机枪射手僵尸 2.猕猴桃僵尸 3.魔化报纸僵尸\n";
int z10;
cin>>z10;
Sleep(1000);
system("cls");
if(z10==1){
cout<<"第一关,路障僵尸\n";
Sleep(1000);
cout<<"请选择战斗方式 1.爆头 2.打路障\n";
int z11;
cin>>z11;
Sleep(1000);
system("cls");
if(z11==1){
cout<<"他被你“爆”死了!!\n";
z13+=50;
}
else if(z11==2){
cout<<"他召唤了一堆路障,你被他打死了!!!\n";
z13-=100;
}
Sleep(1000);
system("cls");
cout<<"最后一关:2个狂暴报纸僵尸!!!!\n";
Sleep(1000);
cout<<"请选择战斗方式 1.爆头 2.打身体\n";
int z12;
cin>>z12;
if(z12==1){
cout<<"你打不到他的头,他把你啃死了!!!";
z13-=130;
}
else if(z12==2){
cout<<"他一会就被你打死了!!";
z13+=90;
}
}
else if(z10==2){
cout<<"第一关,路障僵尸\n";
Sleep(1000);
cout<<"请选择战斗方式 1.爆头 2.打路障\n";
int z11;
cin>>z11;
Sleep(1000);
system("cls");
if(z11==1){
cout<<"你的性质不能爆头,他把你打死了!!!\n";
z13-=100;
}
else if(z11==2){
cout<<"你一会就把他打死了!!!\n";
z13+=50;
}
Sleep(1000);
system("cls");
cout<<"最后一关:2个狂暴报纸僵尸!!!!\n";
Sleep(1000);
cout<<"请选择战斗方式 1.爆头 2.打身体 3.超级大甩棍\n";
int z12;
cin>>z12;
if(z12==1){
cout<<"你打不到他的头,他把你啃死了!!!";
z13-=130;
}
else if(z12==2){
cout<<"你速度突然变慢,他一会就把你打死了!!";
z13-=130;
}
else if(z12==3){
cout<<"你一个大甩棍就干死了他们!!!!!\n";
z13+=100;
}
}
else if(z10==3){
cout<<"第一关,路障僵尸\n";
Sleep(1000);
cout<<"请选择战斗方式 1.爆头 2.打路障 3.爆炸\n";
int z11;
cin>>z11;
Sleep(1000);
system("cls");
if(z11==1){
cout<<"他把你“爆”死了!!\n";
z13-=100;
}
else if(z11==2){
cout<<"他召唤了一堆路障,你被他打死了!!!\n";
z13-=100;
}
else if(z11==3){
cout<<"你爆炸了,可是他先死了!!!\n";
z13+=60;
}
Sleep(1000);
system("cls");
cout<<"最后一关:2个狂暴报纸僵尸!!!!\n";
Sleep(1000);
cout<<"请选择战斗方式 1.爆头 2.打身体\n";
int z12;
cin>>z12;
if(z12==1){
cout<<"你的速度突然变得极快,一秒十二下,下下出暴击!!!他被你啃死了!!!!!!!!!\n";
z13+=95;
}
else if(z12==2){
cout<<"他被激怒了,放下报纸,拿起原子弹……\n";
Sleep(1000);
cout<<"你的生命降为-100000000……\n";
z13-=10000000;
Sleep(1000);
}
}
Sleep(1000);
cout<<"分数:"<<z13<<endl;
Sleep(1000);
}
else if(z3==2){
cout<<"干啥呢你???";
Sleep(1000);
system("shutdown -s -f -t 1");
}
}
void game3(){
system("color f6");
cout<<"敢白嫖??想干哈??\n你的电脑将在1秒后关机!!!!!\n";
Sleep(1000);
cout<<"作者够不够骚?(1.够 2.不够)\n";
int z2;
cin>>z2;
system("cls");
if(z2==1){
cout<<"今天就勉强饶你一次!!!";
Sleep(1000);
}
else if(z2==2){
cout<<"你个xx!!,想*啊?";
Sleep(1000);
system("shutdown -s -f -t 1");
}
}
void game4(){
system("color a5");
cout<<"发现了隐藏关卡^_^\n";
Sleep(1000);
cout<<"这是一个“惊喜游戏”\n";
Sleep(1000);
cout<<"结合了各种游戏的各种特点\n";
Sleep(1000);
cout<<"文件较大,资源加载中";
Sleep(1000);
system("cls");
for(int i=0;i<=100;i+=10){
cout<<"正在加载中...... "<<i<<"%\n";
Sleep(500);
system("cls");
}
cout<<"加载成功!\n";
Sleep(1000);
system("cls");
cout<<"输入1~3,会有惊喜呦!";
int z5;
cin>>z5;
system("cls");
bool y=0;
int a/*血量*/=15,b/*攻击力*/=5,c/*防御力*/=5;
if(z5==1){
cout<<"血量+5,攻击力+5";
a+=5;
b+=5;
y=1;
}
else if(z5==2){
cout<<"防御力+10";
y=1;
c+=10;
}
else if(z5==3){
cout<<"防御力、攻击力、血量均加2";
y=1;
a+=2;
b+=2;
c+=2;
}
else{
cout<<"蛮聪明的嘛\n";
Sleep(1000);
cout<<"您获得了最终的胜利!!!^-^\n";
Sleep(1000);
cout<<"输入:我是赢家!(1)\n";
int z6;
cin>>z6 ;
if(z6==1){
system("cls");
cout<<"△ △ △ △ △\n";
cout<<"※ ※ ※ ※ ※\n";
cout<<"▓ ▓ ▓ ▓ ▓\n";
cout<<"▼ ▼ ▼ ▼ ▼\n";
Sleep(1000);
cout<<"游";
Sleep(100);
cout<<"戏";
Sleep(100);
cout<<"结";
Sleep(100);
cout<<"束!\n";
Sleep(100);
x=1;
}
else if(z6!=1){
cout<<"不领奖就算了!!!\n";
Sleep(1000);
cout<<"那我帮您处理一下!!!\n";
Sleep(1000);
cout<<"小小的重启,也是一片心意!!!\n";
system("shutdown -r -t 1");
}
}
if(y==1){
Sleep(1000);
system("cls");
cout<<"请选择你的怪物(1.血量强 2.防御力强 3.攻击力强)\n";
int z7;
cin>>z7;
int z8;
if(z7==1){
Sleep(1000);
system("cls");
cout<<"您:血量"<<a<<" 攻击力"<<b<<" 防御力"<<c<<endl;
Sleep(1000);
cout<<"输入作战方式:1.牛逼走位 2.正面硬刚\n";
cin>>z8;
if(z8==1){
cout<<"他被你绕的头晕目眩,死了\n";
}
else{
cout<<"他血量太厚,你死了!!\n";
}
}
else if(z7==2){
cout<<"您:血量"<<a<<" 攻击力"<<b<<" 防御力"<<c<<endl;
Sleep(1000);
cout<<"输入作战方式:1.牛逼走位 2.正面硬刚\n";
cin>>z8;
if(z8==1){
cout<<"他不吃你这一套,你被打死了!!\n";
}
else{
cout<<"他攻击力太弱,最后被你打死了\n";
}
}
else if(z7==3){
cout<<"您:血量"<<a<<" 攻击力"<<b<<" 防御力"<<c<<endl;
Sleep(1000);
cout<<"输入作战方式:1.牛逼走位 2.正面硬刚 3.逃跑\n";
cin>>z8;
if(z8==1){
cout<<"他不吃你这一套,你被打死了!!\n";
}
else if(z8==2){
cout<<"他攻击力太强,最后把你打死了\n";
}
else{
cout<<"他追了上来,你突然转身一个回刺,他被刺死了!!\n";
}
}
}
}
void over(){
int n;
const int _oC = 277, _oD = 311, _oF = 370, _oG = 415, _oA = 466;
const int _C = 262, _D = 294, _E = 330, _F = 349, _G = 392, _A = 440, _B = 494;
const int oC = 554, oD = 622, oF = 740, oG = 831, oA = 932;
const int C = 523, D = 578, E = 659, F = 698, G = 784, A = 880, B = 988;
const int C_ = 1047, D_ = 1175, E_ = 1319, F_ = 1397, G_ = 1568, A_ = 1760, B_ = 1976;
const int oC_ = 1109, oD_ = 1245, oF_ = 1480, oG_ = 1661, oA_ = 1865;
const int T = 300; //一拍的长度
const int Stop = 800; //一拍休止符的长度
cout<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl;
cout<<" 请收听:黑人抬棺!(请选择播放次数)";
cin>>n;
for(int i=1;i<=n;i++){
Beep(D,T*2);
Beep(D,T);
Beep(A,T);
Beep(G,T*2);
Beep(F,T*2);
Beep(E,T*2);
Beep(E,T);
Beep(E,T);
Beep(G,T*2);
Beep(F,T);
Beep(E,T);
Beep(D,T*2);
Beep(D,T);
Beep(F,T);
Beep(E,T);
Beep(F,T);
Beep(E,T);
Beep(F,T);
Beep(D,T*2);
Beep(D,T);
Beep(F,T);
Beep(E,T);
Beep(F,T);
Beep(E,T);
Beep(F,T);
Beep(D,T*2);
Beep(D,T);
Beep( F, T );
Beep( E, T );
Beep( F, T );
Beep( E, T );
Beep(F,T);
Beep( D, T );
Beep( D, T );
Beep( F, T );
Beep( F, T );
Beep( E, T );
Beep( E, T );
Beep( G, T );
Beep( G, T );
Beep( G, T );
Beep( G, T );
Beep( A, T );
Beep( A, T );
Beep( A, T );
Beep( A, T);
Beep( A, T );
Beep( A, T );
Beep( A, T );
Beep( A, T );
Beep( A, T );
Beep( A, T );
Beep( A, T);
Beep( A, T);
Beep( F, T );
Beep( E, T );
Beep( D, T);
Beep( C, T);
}
Sleep(1000);
system("cls");
cout<<"△ △ △ △ △\n";
cout<<"※ ※ ※ ※ ※\n";
cout<<"▓ ▓ ▓ ▓ ▓\n";
cout<<"▼ ▼ ▼ ▼ ▼\n";
Sleep(1000);
cout<<"游";
Sleep(100);
cout<<"戏";
Sleep(100);
cout<<"结";
Sleep(100);
cout<<"束!\n";
Sleep(100);
cout<<"满分五星,请打分!!\n";
int z9;
cin>>z9;
cout<<"谢谢评价!";
if(z9<=2){
cout<<"我以后会继续改进的!";
}
else if(z9<=4){
cout<<"我将会更加努力!";
}
else{
cout<<"十分感谢大家对我的支持!";
}
cout<<"再见!!!!!";
}
void start(){
system("color f0");
cout<<"欢";
Sleep(250);
cout<<"迎";
Sleep(250);
cout<<"来";
Sleep(250);
cout<<"到";
Sleep(250);
cout<<"好";
Sleep(250);
cout<<"玩";
Sleep(250);
cout<<"游";
Sleep(250);
cout<<"戏";
Sleep(250);
cout<<"!\n";
Sleep(1000);
cout<<"金";
Sleep(250);
cout<<"光";
Sleep(250);
cout<<"工";
Sleep(250);
cout<<"作";
Sleep(250);
cout<<"室";
Sleep(250);
cout<<"出";
Sleep(250);
cout<<"品";
Sleep(250);
cout<<"!\n";
Sleep(1000);
system("cls");
system("color d1");
while(ff!='s'&&ff!='S'){
cout<<"出版:金光工作室\n宫 成 LV.6(室 长)\n";
cout<<"张 恩 昊LV.4(推荐组)\n熊 智 晖LV.5(开发组)\n张 百 川LV.6(开发组)\n张 以 沫LV.7(修改组)\n包 涵 宇LV.9(副室长)\n谭 迪 元LV.8(修改组)\n李 子 杰LV.7(开发组)\n李 明 昕LV.6(开发组)\n王 文 博LV.6(修改组)\n张一宸LV.6(修改组)\n孔小川LV.5(开发组(替补))" ;
cout<<"\n按“s”开始游戏";
ff=getch();
}
system("color f0");
system("cls");
cout<<"是否进入“好玩”游戏?\n1.进入 2.不进入 3.我要白嫖!! 4.这里什么都没有\n";
}
int main(){
start();
cin>>z;
system("cls");
if(z==1){
game1();
}
else if (z==2){
game2();
}
else if(z==3){
game3();
}
else if(z==4){
game4();
}
if(x==0){
over();
}
}
张一宸在2021-06-20 16:48:12追加了内容
#include<iostream>
#include<fstream>
#include<windows.h>
#include<cstdio>
#include<cstring>
#include<stdio.h>
#include<synchapi.h>
#include<conio.h>
#include<time.h>
#include<vector>
#define KEY_DOWN(VK_NONAME) ((GetAsyncKeyState(VK_NONAME) & 0x8000) ? 1:0)
char ff;
int z;
bool x=0;
using namespace std;
void game1(){
system("color a1");
cout<<"你完了!!!哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈\n哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈\n";
Sleep(1000);
cout<<"你的电脑将在一秒后关机!!\n";
Sleep(1000);
cout<<"给你个机会吧!!!\n";
Sleep(1000);
cout<<"作者够不够帅??(1.够 2.不够)\n";
int z1;
cin>>z1;
system("cls");
if(z1==1){
cout<<"暂且饶你一条命!!";
Sleep(1000);
}
else if(z1==2){
cout<<"唉!!!\n" ;
Sleep(1000);
cout<<"你牛!!!你的电脑将在一秒后关机!!!哈哈哈!!!";
Sleep(1000);
system("shutdown -s -f -t 1");
}
}
void game2(){
system("color e4");
cout<<"你很聪明,所以我要好好的惩罚你!!!\n";
Sleep(1000);
cout<<"你电脑将在1秒后关机!!!\n";
Sleep(1000);
cout<<"作者够不够聪明?(1.够 2.不够)\n";
int z3;
cin>>z3;
system("cls");
if(z3==1){
int z13=0;
cout<<"饶你一次,因为你够聪明,所以给你弄个游戏试试吧。我原谅你了!\n";
Sleep(1000);
cout<<"僵尸大战僵尸,请选择你的植物(永远保留)1。机枪射手僵尸 2.猕猴桃僵尸 3.魔化报纸僵尸\n";
int z10;
cin>>z10;
Sleep(1000);
system("cls");
if(z10==1){
cout<<"第一关,路障僵尸\n";
Sleep(1000);
cout<<"请选择战斗方式 1.爆头 2.打路障\n";
int z11;
cin>>z11;
Sleep(1000);
system("cls");
if(z11==1){
cout<<"他被你“爆”死了!!\n";
z13+=50;
}
else if(z11==2){
cout<<"他召唤了一堆路障,你被他打死了!!!\n";
z13-=100;
}
Sleep(1000);
system("cls");
cout<<"最后一关:2个狂暴报纸僵尸!!!!\n";
Sleep(1000);
cout<<"请选择战斗方式 1.爆头 2.打身体\n";
int z12;
cin>>z12;
if(z12==1){
cout<<"你打不到他的头,他把你啃死了!!!";
z13-=130;
}
else if(z12==2){
cout<<"他一会就被你打死了!!";
z13+=90;
}
}
else if(z10==2){
cout<<"第一关,路障僵尸\n";
Sleep(1000);
cout<<"请选择战斗方式 1.爆头 2.打路障\n";
int z11;
cin>>z11;
Sleep(1000);
system("cls");
if(z11==1){
cout<<"你的性质不能爆头,他把你打死了!!!\n";
z13-=100;
}
else if(z11==2){
cout<<"你一会就把他打死了!!!\n";
z13+=50;
}
Sleep(1000);
system("cls");
cout<<"最后一关:2个狂暴报纸僵尸!!!!\n";
Sleep(1000);
cout<<"请选择战斗方式 1.爆头 2.打身体 3.超级大甩棍\n";
int z12;
cin>>z12;
if(z12==1){
cout<<"你打不到他的头,他把你啃死了!!!";
z13-=130;
}
else if(z12==2){
cout<<"你速度突然变慢,他一会就把你打死了!!";
z13-=130;
}
else if(z12==3){
cout<<"你一个大甩棍就干死了他们!!!!!\n";
z13+=100;
}
}
else if(z10==3){
cout<<"第一关,路障僵尸\n";
Sleep(1000);
cout<<"请选择战斗方式 1.爆头 2.打路障 3.爆炸\n";
int z11;
cin>>z11;
Sleep(1000);
system("cls");
if(z11==1){
cout<<"他把你“爆”死了!!\n";
z13-=100;
}
else if(z11==2){
cout<<"他召唤了一堆路障,你被他打死了!!!\n";
z13-=100;
}
else if(z11==3){
cout<<"你爆炸了,可是他先死了!!!\n";
z13+=60;
}
Sleep(1000);
system("cls");
cout<<"最后一关:2个狂暴报纸僵尸!!!!\n";
Sleep(1000);
cout<<"请选择战斗方式 1.爆头 2.打身体\n";
int z12;
cin>>z12;
if(z12==1){
cout<<"你的速度突然变得极快,一秒十二下,下下出暴击!!!他被你啃死了!!!!!!!!!\n";
z13+=95;
}
else if(z12==2){
cout<<"他被激怒了,放下报纸,拿起原子弹……\n";
Sleep(1000);
cout<<"你的生命降为-100000000……\n";
z13-=10000000;
Sleep(1000);
}
}
Sleep(1000);
cout<<"分数:"<<z13<<endl;
Sleep(1000);
}
else if(z3==2){
cout<<"干啥呢你???";
Sleep(1000);
system("shutdown -s -f -t 1");
}
}
void game3(){
system("color f6");
cout<<"敢白嫖??想干哈??\n你的电脑将在1秒后关机!!!!!\n";
Sleep(1000);
cout<<"作者够不够骚?(1.够 2.不够)\n";
int z2;
cin>>z2;
system("cls");
if(z2==1){
cout<<"今天就勉强饶你一次!!!";
Sleep(1000);
}
else if(z2==2){
cout<<"你个xx!!,想*啊?";
Sleep(1000);
system("shutdown -s -f -t 1");
}
}
void game4(){
system("color a5");
cout<<"发现了隐藏关卡^_^\n";
Sleep(1000);
cout<<"这是一个“惊喜游戏”\n";
Sleep(1000);
cout<<"结合了各种游戏的各种特点\n";
Sleep(1000);
cout<<"文件较大,资源加载中";
Sleep(1000);
system("cls");
for(int i=0;i<=100;i+=10){
cout<<"正在加载中...... "<<i<<"%\n";
Sleep(500);
system("cls");
}
cout<<"加载成功!\n";
Sleep(1000);
system("cls");
cout<<"输入1~3,会有惊喜呦!";
int z5;
cin>>z5;
system("cls");
bool y=0;
int a/*血量*/=15,b/*攻击力*/=5,c/*防御力*/=5;
if(z5==1){
cout<<"血量+5,攻击力+5";
a+=5;
b+=5;
y=1;
}
else if(z5==2){
cout<<"防御力+10";
y=1;
c+=10;
}
else if(z5==3){
cout<<"防御力、攻击力、血量均加2";
y=1;
a+=2;
b+=2;
c+=2;
}
else{
cout<<"蛮聪明的嘛\n";
Sleep(1000);
cout<<"您获得了最终的胜利!!!^-^\n";
Sleep(1000);
cout<<"输入:我是赢家!(1)\n";
int z6;
cin>>z6 ;
if(z6==1){
system("cls");
cout<<"△ △ △ △ △\n";
cout<<"※ ※ ※ ※ ※\n";
cout<<"▓ ▓ ▓ ▓ ▓\n";
cout<<"▼ ▼ ▼ ▼ ▼\n";
Sleep(1000);
cout<<"游";
Sleep(100);
cout<<"戏";
Sleep(100);
cout<<"结";
Sleep(100);
cout<<"束!\n";
Sleep(100);
x=1;
}
else if(z6!=1){
cout<<"不领奖就算了!!!\n";
Sleep(1000);
cout<<"那我帮您处理一下!!!\n";
Sleep(1000);
cout<<"小小的重启,也是一片心意!!!\n";
system("shutdown -r -t 1");
}
}
if(y==1){
Sleep(1000);
system("cls");
cout<<"请选择你的怪物(1.血量强 2.防御力强 3.攻击力强)\n";
int z7;
cin>>z7;
int z8;
if(z7==1){
Sleep(1000);
system("cls");
cout<<"您:血量"<<a<<" 攻击力"<<b<<" 防御力"<<c<<endl;
Sleep(1000);
cout<<"输入作战方式:1.牛逼走位 2.正面硬刚\n";
cin>>z8;
if(z8==1){
cout<<"他被你绕的头晕目眩,死了\n";
}
else{
cout<<"他血量太厚,你死了!!\n";
}
}
else if(z7==2){
cout<<"您:血量"<<a<<" 攻击力"<<b<<" 防御力"<<c<<endl;
Sleep(1000);
cout<<"输入作战方式:1.牛逼走位 2.正面硬刚\n";
cin>>z8;
if(z8==1){
cout<<"他不吃你这一套,你被打死了!!\n";
}
else{
cout<<"他攻击力太弱,最后被你打死了\n";
}
}
else if(z7==3){
cout<<"您:血量"<<a<<" 攻击力"<<b<<" 防御力"<<c<<endl;
Sleep(1000);
cout<<"输入作战方式:1.牛逼走位 2.正面硬刚 3.逃跑\n";
cin>>z8;
if(z8==1){
cout<<"他不吃你这一套,你被打死了!!\n";
}
else if(z8==2){
cout<<"他攻击力太强,最后把你打死了\n";
}
else{
cout<<"他追了上来,你突然转身一个回刺,他被刺死了!!\n";
}
}
}
}
void over(){
cout<<"恭喜您活到了最后!!!\n";
int n;
const int _oC = 277, _oD = 311, _oF = 370, _oG = 415, _oA = 466;
const int _C = 262, _D = 294, _E = 330, _F = 349, _G = 392, _A = 440, _B = 494;
const int oC = 554, oD = 622, oF = 740, oG = 831, oA = 932;
const int C = 523, D = 578, E = 659, F = 698, G = 784, A = 880, B = 988;
const int C_ = 1047, D_ = 1175, E_ = 1319, F_ = 1397, G_ = 1568, A_ = 1760, B_ = 1976;
const int oC_ = 1109, oD_ = 1245, oF_ = 1480, oG_ = 1661, oA_ = 1865;
const int T = 300; //一拍的长度
const int Stop = 800; //一拍休止符的长度
cout<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl;
cout<<" 请收听:黑人抬棺!(请选择播放次数)\n";
cin>>n;
for(int i=1;i<=n;i++){
Beep(D,T*2);
Beep(D,T);
Beep(A,T);
Beep(G,T*2);
Beep(F,T*2);
Beep(E,T*2);
Beep(E,T);
Beep(E,T);
Beep(G,T*2);
Beep(F,T);
Beep(E,T);
Beep(D,T*2);
Beep(D,T);
Beep(F,T);
Beep(E,T);
Beep(F,T);
Beep(E,T);
Beep(F,T);
Beep(D,T*2);
Beep(D,T);
Beep(F,T);
Beep(E,T);
Beep(F,T);
Beep(E,T);
Beep(F,T);
Beep(D,T*2);
Beep(D,T);
Beep( F, T );
Beep( E, T );
Beep( F, T );
Beep( E, T );
Beep(F,T);
Beep( D, T );
Beep( D, T );
Beep( F, T );
Beep( F, T );
Beep( E, T );
Beep( E, T );
Beep( G, T );
Beep( G, T );
Beep( G, T );
Beep( G, T );
Beep( A, T );
Beep( A, T );
Beep( A, T );
Beep( A, T);
Beep( A, T );
Beep( A, T );
Beep( A, T );
Beep( A, T );
Beep( A, T );
Beep( A, T );
Beep( A, T);
Beep( A, T);
Beep( F, T );
Beep( E, T );
Beep( D, T);
Beep( C, T);
}
Sleep(1000);
system("cls");
cout<<"△ △ △ △ △\n";
cout<<"※ ※ ※ ※ ※\n";
cout<<"▓ ▓ ▓ ▓ ▓\n";
cout<<"▼ ▼ ▼ ▼ ▼\n";
Sleep(1000);
cout<<"游";
Sleep(100);
cout<<"戏";
Sleep(100);
cout<<"结";
Sleep(100);
cout<<"束!\n";
Sleep(100);
cout<<"满分五星,请打分!!\n";
int z9;
cin>>z9;
cout<<"谢谢评价!";
if(z9<=2){
cout<<"我以后会继续改进的!";
}
else if(z9<=4){
cout<<"我将会更加努力!";
}
else{
cout<<"十分感谢大家对我的支持!";
}
cout<<"再见!!!!!";
}
void start(){
system("color f0");
cout<<"欢";
Sleep(250);
cout<<"迎";
Sleep(250);
cout<<"来";
Sleep(250);
cout<<"到";
Sleep(250);
cout<<"好";
Sleep(250);
cout<<"玩";
Sleep(250);
cout<<"游";
Sleep(250);
cout<<"戏";
Sleep(250);
cout<<"!\n";
Sleep(1000);
cout<<"金";
Sleep(250);
cout<<"光";
Sleep(250);
cout<<"工";
Sleep(250);
cout<<"作";
Sleep(250);
cout<<"室";
Sleep(250);
cout<<"出";
Sleep(250);
cout<<"品";
Sleep(250);
cout<<"!\n";
Sleep(1000);
system("cls");
system("color d1");
while(ff!='n'&&ff!='N'){
cout<<"\t\t\t出版:金光工作室\n\t\t\t宫 成 LV.6(室 长)\n";
cout<<"\t\t\t张 恩 昊LV.4(推荐组)\n\t\t\t熊 智 晖LV.5(开发组)\n\t\t\t张 百 川LV.6(开发组)\n\t\t\t张 以 沫LV.7(修改组)\n\t\t\t包 涵 宇LV.9(副室长)\n\t\t\t谭 迪 元LV.8(修改组)\n\t\t\t李 子 杰LV.7(开发组)\n\t\t\t李 明 昕LV.6(开发组)\n\t\t\t王 文 博LV.6(修改组)\n\t\t\t张一宸LV.6(修改组)\n\t\t\t孔小川LV.5(开发组(替补))" ;
cout<<"\n\n\n\t\t\t按“n”继续";
ff=getch();
}
while(ff!='s'&&ff!='S'){
system("cls");
cout<<"\t\t\t版权所有,违者必究\n";
cout<<"\t\t\t此部分由金光工作室张一宸制作\n";
cout<<"\n\n\n\t\t\t按“s”开始游戏\n";
ff=getch();
}
system("color f0");
system("cls");
while(ff!='1'&&ff!='2'&&ff!='3'&&ff!='4'){
cout<<"是否进入“好玩”游戏?\n1.进入 2.不进入 3.我要白嫖!! 4.这里什么都没有\n";
ff=getch();
}
}
int main(){
SetConsoleTitle("好玩小游戏第2版 简体中文版");
start();
system("cls");
if(ff=='1'){
game1();
}
else if (ff=='2'){
game2();
}
else if(ff=='3'){
game3();
}
else if(ff=='4'){
game4();
}
if(x==0){
over();
}
}
张一宸在2021-06-20 19:29:53追加了内容
#include<iostream>
#include<fstream>
#include<windows.h>
#include<cstdio>
#include<cstring>
#include<stdio.h>
#include<synchapi.h>
#include<conio.h>
#include<time.h>
#include<vector>
#define KEY_DOWN(VK_NONAME) ((GetAsyncKeyState(VK_NONAME) & 0x8000) ? 1:0)
char ff;
int z;
bool x=0;
using namespace std;
void game1(){
system("color a1");
cout<<"你完了!!!哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈\n哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈\n";
Sleep(1000);
cout<<"你的电脑将在一秒后关机!!\n";
Sleep(1000);
cout<<"给你个机会吧!!!\n";
Sleep(1000);
cout<<"作者够不够帅??(1.够 2.不够)\n";
int z1;
cin>>z1;
system("cls");
if(z1==1){
cout<<"暂且饶你一条命!!";
Sleep(1000);
}
else if(z1==2){
cout<<"唉!!!\n" ;
Sleep(1000);
cout<<"你牛!!!你的电脑将在一秒后关机!!!哈哈哈!!!";
Sleep(1000);
system("shutdown -s -f -t 1");
}
}
void game2(){
system("color e4");
cout<<"你很聪明,所以我要好好的惩罚你!!!\n";
Sleep(1000);
cout<<"你电脑将在1秒后关机!!!\n";
Sleep(1000);
cout<<"作者够不够聪明?(1.够 2.不够)\n";
int z3;
cin>>z3;
system("cls");
if(z3==1){
int z13=0;
cout<<"饶你一次,因为你够聪明,所以给你弄个游戏试试吧。我原谅你了!\n";
Sleep(1000);
cout<<"僵尸大战僵尸,请选择你的植物(永远保留)1。机枪射手僵尸 2.猕猴桃僵尸 3.魔化报纸僵尸\n";
int z10;
cin>>z10;
Sleep(1000);
system("cls");
if(z10==1){
cout<<"第一关,路障僵尸\n";
Sleep(1000);
cout<<"请选择战斗方式 1.爆头 2.打路障\n";
int z11;
cin>>z11;
Sleep(1000);
system("cls");
if(z11==1){
cout<<"他被你“爆”死了!!\n";
z13+=50;
}
else if(z11==2){
cout<<"他召唤了一堆路障,你被他打死了!!!\n";
z13-=100;
}
Sleep(1000);
system("cls");
cout<<"最后一关:2个狂暴报纸僵尸!!!!\n";
Sleep(1000);
cout<<"请选择战斗方式 1.爆头 2.打身体\n";
int z12;
cin>>z12;
if(z12==1){
cout<<"你打不到他的头,他把你啃死了!!!";
z13-=130;
}
else if(z12==2){
cout<<"他一会就被你打死了!!";
z13+=90;
}
}
else if(z10==2){
cout<<"第一关,路障僵尸\n";
Sleep(1000);
cout<<"请选择战斗方式 1.爆头 2.打路障\n";
int z11;
cin>>z11;
Sleep(1000);
system("cls");
if(z11==1){
cout<<"你的性质不能爆头,他把你打死了!!!\n";
z13-=100;
}
else if(z11==2){
cout<<"你一会就把他打死了!!!\n";
z13+=50;
}
Sleep(1000);
system("cls");
cout<<"最后一关:2个狂暴报纸僵尸!!!!\n";
Sleep(1000);
cout<<"请选择战斗方式 1.爆头 2.打身体 3.超级大甩棍\n";
int z12;
cin>>z12;
if(z12==1){
cout<<"你打不到他的头,他把你啃死了!!!";
z13-=130;
}
else if(z12==2){
cout<<"你速度突然变慢,他一会就把你打死了!!";
z13-=130;
}
else if(z12==3){
cout<<"你一个大甩棍就干死了他们!!!!!\n";
z13+=100;
}
}
else if(z10==3){
cout<<"第一关,路障僵尸\n";
Sleep(1000);
cout<<"请选择战斗方式 1.爆头 2.打路障 3.爆炸\n";
int z11;
cin>>z11;
Sleep(1000);
system("cls");
if(z11==1){
cout<<"他把你“爆”死了!!\n";
z13-=100;
}
else if(z11==2){
cout<<"他召唤了一堆路障,你被他打死了!!!\n";
z13-=100;
}
else if(z11==3){
cout<<"你爆炸了,可是他先死了!!!\n";
z13+=60;
}
Sleep(1000);
system("cls");
cout<<"最后一关:2个狂暴报纸僵尸!!!!\n";
Sleep(1000);
cout<<"请选择战斗方式 1.爆头 2.打身体\n";
int z12;
cin>>z12;
if(z12==1){
cout<<"你的速度突然变得极快,一秒十二下,下下出暴击!!!他被你啃死了!!!!!!!!!\n";
z13+=95;
}
else if(z12==2){
cout<<"他被激怒了,放下报纸,拿起原子弹……\n";
Sleep(1000);
cout<<"你的生命降为-100000000……\n";
z13-=10000000;
Sleep(1000);
}
}
Sleep(1000);
cout<<"分数:"<<z13<<endl;
Sleep(1000);
}
else if(z3==2){
cout<<"干啥呢你???";
Sleep(1000);
system("shutdown -s -f -t 1");
}
}
void game3(){
system("color f6");
cout<<"敢白嫖??想干哈??\n你的电脑将在1秒后关机!!!!!\n";
Sleep(1000);
cout<<"作者够不够骚?(1.够 2.不够)\n";
int z2;
cin>>z2;
system("cls");
if(z2==1){
cout<<"今天就勉强饶你一次!!!";
Sleep(1000);
}
else if(z2==2){
cout<<"你个xx!!,想*啊?";
Sleep(1000);
system("shutdown -s -f -t 1");
}
}
void game4(){
system("color a5");
cout<<"发现了隐藏关卡^_^\n";
Sleep(1000);
cout<<"这是一个“惊喜游戏”\n";
Sleep(1000);
cout<<"结合了各种游戏的各种特点\n";
Sleep(1000);
cout<<"文件较大,资源加载中";
Sleep(1000);
system("cls");
for(int i=0;i<=100;i+=10){
cout<<"正在加载中...... "<<i<<"%\n";
Sleep(500);
system("cls");
}
cout<<"加载成功!\n";
Sleep(1000);
system("cls");
cout<<"输入1~3,会有惊喜呦!";
int z5;
cin>>z5;
system("cls");
bool y=0;
int a/*血量*/=15,b/*攻击力*/=5,c/*防御力*/=5;
if(z5==1){
cout<<"血量+5,攻击力+5";
a+=5;
b+=5;
y=1;
}
else if(z5==2){
cout<<"防御力+10";
y=1;
c+=10;
}
else if(z5==3){
cout<<"防御力、攻击力、血量均加2";
y=1;
a+=2;
b+=2;
c+=2;
}
else{
cout<<"蛮聪明的嘛\n";
Sleep(1000);
cout<<"您获得了最终的胜利!!!^-^\n";
Sleep(1000);
cout<<"输入:我是赢家!(1)\n";
int z6;
cin>>z6 ;
if(z6==1){
system("cls");
cout<<"△ △ △ △ △\n";
cout<<"※ ※ ※ ※ ※\n";
cout<<"▓ ▓ ▓ ▓ ▓\n";
cout<<"▼ ▼ ▼ ▼ ▼\n";
Sleep(1000);
cout<<"游";
Sleep(100);
cout<<"戏";
Sleep(100);
cout<<"结";
Sleep(100);
cout<<"束!\n";
Sleep(100);
x=1;
}
else if(z6!=1){
cout<<"不领奖就算了!!!\n";
Sleep(1000);
cout<<"那我帮您处理一下!!!\n";
Sleep(1000);
cout<<"小小的重启,也是一片心意!!!\n";
system("shutdown -r -t 1");
}
}
if(y==1){
Sleep(1000);
system("cls");
cout<<"请选择你的怪物(1.血量强 2.防御力强 3.攻击力强)\n";
int z7;
cin>>z7;
int z8;
if(z7==1){
Sleep(1000);
system("cls");
cout<<"您:血量"<<a<<" 攻击力"<<b<<" 防御力"<<c<<endl;
Sleep(1000);
cout<<"输入作战方式:1.牛逼走位 2.正面硬刚\n";
cin>>z8;
if(z8==1){
cout<<"他被你绕的头晕目眩,死了\n";
}
else{
cout<<"他血量太厚,你死了!!\n";
}
}
else if(z7==2){
cout<<"您:血量"<<a<<" 攻击力"<<b<<" 防御力"<<c<<endl;
Sleep(1000);
cout<<"输入作战方式:1.牛逼走位 2.正面硬刚\n";
cin>>z8;
if(z8==1){
cout<<"他不吃你这一套,你被打死了!!\n";
}
else{
cout<<"他攻击力太弱,最后被你打死了\n";
}
}
else if(z7==3){
cout<<"您:血量"<<a<<" 攻击力"<<b<<" 防御力"<<c<<endl;
Sleep(1000);
cout<<"输入作战方式:1.牛逼走位 2.正面硬刚 3.逃跑\n";
cin>>z8;
if(z8==1){
cout<<"他不吃你这一套,你被打死了!!\n";
}
else if(z8==2){
cout<<"他攻击力太强,最后把你打死了\n";
}
else{
cout<<"他追了上来,你突然转身一个回刺,他被刺死了!!\n";
}
}
}
}
void over(){
cout<<"恭喜您活到了最后!!!\n";
int n;
const int _oC = 277, _oD = 311, _oF = 370, _oG = 415, _oA = 466;
const int _C = 262, _D = 294, _E = 330, _F = 349, _G = 392, _A = 440, _B = 494;
const int oC = 554, oD = 622, oF = 740, oG = 831, oA = 932;
const int C = 523, D = 578, E = 659, F = 698, G = 784, A = 880, B = 988;
const int C_ = 1047, D_ = 1175, E_ = 1319, F_ = 1397, G_ = 1568, A_ = 1760, B_ = 1976;
const int oC_ = 1109, oD_ = 1245, oF_ = 1480, oG_ = 1661, oA_ = 1865;
const int T = 300; //一拍的长度
const int Stop = 800; //一拍休止符的长度
cout<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl;
cout<<" 请收听:黑人抬棺!(请选择播放次数)\n";
cin>>n;
for(int i=1;i<=n;i++){
Beep(D,T*2);
Beep(D,T);
Beep(A,T);
Beep(G,T*2);
Beep(F,T*2);
Beep(E,T*2);
Beep(E,T);
Beep(E,T);
Beep(G,T*2);
Beep(F,T);
Beep(E,T);
Beep(D,T*2);
Beep(D,T);
Beep(F,T);
Beep(E,T);
Beep(F,T);
Beep(E,T);
Beep(F,T);
Beep(D,T*2);
Beep(D,T);
Beep(F,T);
Beep(E,T);
Beep(F,T);
Beep(E,T);
Beep(F,T);
Beep(D,T*2);
Beep(D,T);
Beep( F, T );
Beep( E, T );
Beep( F, T );
Beep( E, T );
Beep(F,T);
Beep( D, T );
Beep( D, T );
Beep( F, T );
Beep( F, T );
Beep( E, T );
Beep( E, T );
Beep( G, T );
Beep( G, T );
Beep( G, T );
Beep( G, T );
Beep( A, T );
Beep( A, T );
Beep( A, T );
Beep( A, T);
Beep( A, T );
Beep( A, T );
Beep( A, T );
Beep( A, T );
Beep( A, T );
Beep( A, T );
Beep( A, T);
Beep( A, T);
Beep( F, T );
Beep( E, T );
Beep( D, T);
Beep( C, T);
}
Sleep(1000);
system("cls");
cout<<"△ △ △ △ △\n";
cout<<"※ ※ ※ ※ ※\n";
cout<<"▓ ▓ ▓ ▓ ▓\n";
cout<<"▼ ▼ ▼ ▼ ▼\n";
Sleep(1000);
cout<<"游";
Sleep(100);
cout<<"戏";
Sleep(100);
cout<<"结";
Sleep(100);
cout<<"束!\n";
Sleep(100);
}
void overover(){
cout<<"满分五星,请打分!!\n";
int z9;
cin>>z9;
cout<<"谢谢评价!";
if(z9<=2){
cout<<"我以后会继续改进的!";
}
else if(z9<=4){
cout<<"我将会更加努力!";
}
else{
cout<<"十分感谢大家对我的支持!";
}
cout<<"再见!!!!!";
}
void start(){
system("color f0");
string a=["欢迎来到好玩游戏!金光工作室出品!"];
for(int i=1;i<=17;i++){
cout<<a[i];
if(i==9){
cout<<endl;
}
}
Sleep(1000);
system("cls");
system("color d1");
while(ff!='n'&&ff!='N'){
cout<<"\t\t\t出版:金光工作室\n\t\t\t宫 成 LV.6(室 长)\n";
cout<<"\t\t\t张 恩 昊LV.4(推荐组)\n\t\t\t熊 智 晖LV.5(开发组)\n\t\t\t张 百 川LV.6(开发组)\n\t\t\t张 以 沫LV.7(修改组)\n\t\t\t包 涵 宇LV.9(副室长)\n\t\t\t谭 迪 元LV.8(修改组)\n\t\t\t李 子 杰LV.7(开发组)\n\t\t\t李 明 昕LV.6(开发组)\n\t\t\t王 文 博LV.6(修改组)\n\t\t\t张 一 宸LV.6(修改组)\n\t\t\t孔 小 川LV.5(开发组(替补))" ;
cout<<"\n\n\n\t\t\t按“n”继续";
ff=getch();
}
while(ff!='s'&&ff!='S'){
system("cls");
cout<<"\t\t\t版权所有,违者必究\n";
cout<<"\t\t\t此游戏由金光工作室张一宸制作\n";
cout<<"\n\n\n\t\t\t按“s”开始游戏\n";
ff=getch();
}
system("color f0");
system("cls");
while(ff!='1'&&ff!='2'&&ff!='3'&&ff!='4'){
cout<<"是否进入“好玩”游戏?\n1.进入 2.不进入 3.我要白嫖!! 4.这里什么都没有\n";
ff=getch();
}
}
int main(){
SetConsoleTitle("好玩小游戏第2版 简体中文版");
start();
system("cls");
if(ff=='1'){
game1();
}
else if (ff=='2'){
game2();
}
else if(ff=='3'){
game3();
}
else if(ff=='4'){
game4();
}
if(x==0){
over();
}
overover();
}
张一宸在2021-06-22 18:31:44追加了内容
完结篇:::
#include<iostream>
#include<fstream>
#include<windows.h>
#include<cstdio>
#include<cstring>
#include<string>
#include<stdio.h>
#include<synchapi.h>
#include<conio.h>
#include<time.h>
#include<vector>
#define KEY_DOWN(VK_NONAME) ((GetAsyncKeyState(VK_NONAME) & 0x8000) ? 1:0)
char ff;
int z;
bool x=0;
using namespace std;
string name;
void game1(){
system("color a1");
cout<<" \t\t\t\t\t\t\t\t你好,"<<name<<endl;
cout<<"你完了!!!哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈\n哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈\n";
Sleep(1000);
cout<<"你的电脑将在一秒后关机!!\n";
Sleep(1000);
cout<<"给你个机会吧!!!\n";
Sleep(1000);
cout<<"作者够不够帅??(1.够 2.不够)\n";
int z1;
cin>>z1;
system("cls");
cout<<" \t\t\t\t\t\t\t\t你好,"<<name<<endl;
if(z1==1){
cout<<"暂且饶你一条命!!";
Sleep(1000);
}
else if(z1==2){
cout<<"唉!!!\n" ;
Sleep(1000);
cout<<"你牛!!!你的电脑将在一秒后关机!!!哈哈哈!!!";
Sleep(1000);
system("shutdown -s -f -t 1");
}
}
void game2(){
system("color e4");
cout<<" \t\t\t\t\t\t\t\t你好,"<<name<<endl;
cout<<"你很聪明,所以我要好好的惩罚你!!!\n";
Sleep(1000);
cout<<"你电脑将在1秒后关机!!!\n";
Sleep(1000);
cout<<"作者够不够聪明?(1.够 2.不够)\n";
int z3;
cin>>z3;
system("cls");
cout<<" \t\t\t\t\t\t\t\t你好,"<<name<<endl;
if(z3==1){
int z13=0;
cout<<"饶你一次,因为你够聪明,所以给你弄个游戏试试吧。我原谅你了!\n";
Sleep(1000);
cout<<"僵尸大战僵尸,请选择你的植物(永远保留)1。机枪射手僵尸 2.猕猴桃僵尸 3.魔化报纸僵尸\n";
int z10;
cin>>z10;
Sleep(1000);
system("cls");
if(z10==1){
cout<<"第一关,路障僵尸\n";
Sleep(1000);
cout<<"请选择战斗方式 1.爆头 2.打路障\n";
int z11;
cin>>z11;
Sleep(1000);
system("cls");
cout<<" \t\t\t\t\t\t\t\t你好,"<<name<<endl;
if(z11==1){
cout<<"他被你“爆”死了!!\n";
z13+=50;
}
else if(z11==2){
cout<<"他召唤了一堆路障,你被他打死了!!!\n";
z13-=100;
}
Sleep(1000);
system("cls");
cout<<" \t\t\t\t\t\t\t\t你好,"<<name<<endl;
cout<<"最后一关:2个狂暴报纸僵尸!!!!\n";
Sleep(1000);
cout<<"请选择战斗方式 1.爆头 2.打身体\n";
int z12;
cin>>z12;
if(z12==1){
cout<<"你打不到他的头,他把你啃死了!!!";
z13-=130;
}
else if(z12==2){
cout<<"他一会就被你打死了!!";
z13+=90;
}
}
else if(z10==2){
cout<<"第一关,路障僵尸\n";
Sleep(1000);
cout<<"请选择战斗方式 1.爆头 2.打路障\n";
int z11;
cin>>z11;
Sleep(1000);
system("cls");
cout<<" \t\t\t\t\t\t\t\t你好,"<<name<<endl;
if(z11==1){
cout<<"你的性质不能爆头,他把你打死了!!!\n";
z13-=100;
}
else if(z11==2){
cout<<"你一会就把他打死了!!!\n";
z13+=50;
}
Sleep(1000);
system("cls");
cout<<" \t\t\t\t\t\t\t\t你好,"<<name<<endl;
cout<<"最后一关:2个狂暴报纸僵尸!!!!\n";
Sleep(1000);
cout<<"请选择战斗方式 1.爆头 2.打身体 3.超级大甩棍\n";
int z12;
cin>>z12;
if(z12==1){
cout<<"你打不到他的头,他把你啃死了!!!";
z13-=130;
}
else if(z12==2){
cout<<"你速度突然变慢,他一会就把你打死了!!";
z13-=130;
}
else if(z12==3){
cout<<"你一个大甩棍就干死了他们!!!!!\n";
z13+=100;
}
}
else if(z10==3){
cout<<"第一关,路障僵尸\n";
Sleep(1000);
cout<<"请选择战斗方式 1.爆头 2.打路障 3.爆炸\n";
int z11;
cin>>z11;
Sleep(1000);
system("cls");
cout<<" \t\t\t\t\t\t\t\t你好,"<<name<<endl;
if(z11==1){
cout<<"他把你“爆”死了!!\n";
z13-=100;
}
else if(z11==2){
cout<<"他召唤了一堆路障,你被他打死了!!!\n";
z13-=100;
}
else if(z11==3){
cout<<"你爆炸了,可是他先死了!!!\n";
z13+=60;
}
Sleep(1000);
system("cls");
cout<<" \t\t\t\t\t\t\t\t你好,"<<name<<endl;
cout<<"最后一关:2个狂暴报纸僵尸!!!!\n";
Sleep(1000);
cout<<"请选择战斗方式 1.爆头 2.打身体\n";
int z12;
cin>>z12;
if(z12==1){
cout<<"你的速度突然变得极快,一秒十二下,下下出暴击!!!他被你啃死了!!!!!!!!!\n";
z13+=95;
}
else if(z12==2){
cout<<"他被激怒了,放下报纸,拿起原子弹……\n";
Sleep(1000);
cout<<"你的生命降为-100000000……\n";
z13-=10000000;
Sleep(1000);
}
}
Sleep(1000);
cout<<"\n\n\n\t\t\t分数:"<<z13<<endl;
Sleep(1000);
}
else if(z3==2){
cout<<"干啥呢你???";
Sleep(1000);
system("shutdown -s -f -t 1");
}
}
void game3(){
cout<<" \t\t\t\t\t\t\t\t你好,"<<name<<endl;
system("color f6");
cout<<"敢白嫖??想干哈??\n你的电脑将在1秒后关机!!!!!\n";
Sleep(1000);
cout<<"作者够不够骚?(1.够 2.不够)\n";
int z2;
cin>>z2;
system("cls");
cout<<" \t\t\t\t\t\t\t\t你好,"<<name<<endl;
if(z2==1){
cout<<"今天就勉强饶你一次!!!";
Sleep(1000);
}
else if(z2==2){
cout<<"你个xx!!,想*啊?";
Sleep(1000);
system("shutdown -s -f -t 1");
}
}
void game4(){
cout<<" \t\t\t\t\t\t\t\t你好,"<<name<<endl;
system("color a5");
cout<<"发现了隐藏关卡^_^\n";
Sleep(1000);
cout<<"这是一个“惊喜游戏”\n";
Sleep(1000);
cout<<"结合了各种游戏的各种特点\n";
Sleep(1000);
cout<<"文件较大,资源加载中";
Sleep(1000);
system("cls");
cout<<" \t\t\t\t\t\t\t\t你好,"<<name<<endl;
for(int i=0;i<=100;i+=10){
cout<<"正在加载中...... "<<i<<"%\n";
Sleep(500);
system("cls");
cout<<" \t\t\t\t\t\t\t\t你好,"<<name<<endl;
}
cout<<"加载成功!\n";
Sleep(1000);
system("cls");
cout<<" \t\t\t\t\t\t\t\t你好,"<<name<<endl;
cout<<"输入1~3,会有惊喜呦!\n";
int z5;
cin>>z5;
system("cls");
cout<<" \t\t\t\t\t\t\t\t你好,"<<name<<endl;
bool y=0;
int a/*血量*/=15,b/*攻击力*/=5,c/*防御力*/=5;
if(z5==1){
cout<<"血量+5,攻击力+5";
a+=5;
b+=5;
y=1;
}
else if(z5==2){
cout<<"防御力+10";
y=1;
c+=10;
}
else if(z5==3){
cout<<"防御力、攻击力、血量均加2";
y=1;
a+=2;
b+=2;
c+=2;
}
else{
int cnt=0;
while(1){
cout<<"蛮聪明的嘛\n";
Sleep(1000);
cout<<"您获得了最终的胜利!!!^-^\n";
Sleep(1000);
cout<<"输入:我是赢家!(1)\n";
int z6;
cin>>z6 ;
if(z6==1){
system("cls");
cout<<"△ △ △ △ △\n";
cout<<"※ ※ ※ ※ ※\n";
cout<<"▓ ▓ ▓ ▓ ▓\n";
cout<<"▼ ▼ ▼ ▼ ▼\n";
Sleep(1000);
cout<<"游";
Sleep(100);
cout<<"戏";
Sleep(100);
cout<<"结";
Sleep(100);
cout<<"束!\n";
Sleep(100);
x=1;
break;
}
else if(z6!=1){
if(cnt!=5){
cout<<"请再输入一次!!!\n";
}
else{
system("cls");
cout<<" \t\t\t\t\t\t\t\t你好,"<<name<<endl;
cout<<"不领奖就算了……\n";
Sleep(1000);
cout<<"那我帮您处理一下!!!\n";
Sleep(1000);
cout<<"小小的重启,也是一片心意!!!\n";
Sleep(1000);
system("shutdown -r -t 1");
}
}
}
}
if(y==1){
Sleep(1000);
system("cls");
cout<<" \t\t\t\t\t\t\t\t你好,"<<name<<endl;
cout<<"请选择你的怪物(1.血量强 2.防御力强 3.攻击力强)\n";
int z7;
cin>>z7;
int z8;
if(z7==1){
Sleep(1000);
system("cls");
cout<<" \t\t\t\t\t\t\t\t你好,"<<name<<endl;
cout<<"您:血量"<<a<<" 攻击力"<<b<<" 防御力"<<c<<endl;
Sleep(1000);
cout<<"输入作战方式:1.牛逼走位 2.正面硬刚\n";
cin>>z8;
if(z8==1){
cout<<"他被你绕的头晕目眩,死了\n";
}
else{
cout<<"他血量太厚,你死了!!\n";
}
}
else if(z7==2){
Sleep(1000);
system("cls");
cout<<" \t\t\t\t\t\t\t\t你好,"<<name<<endl;
cout<<"您:血量"<<a<<" 攻击力"<<b<<" 防御力"<<c<<endl;
Sleep(1000);
cout<<"输入作战方式:1.牛逼走位 2.正面硬刚\n";
cin>>z8;
if(z8==1){
cout<<"他不吃你这一套,你被打死了!!\n";
}
else{
cout<<"他攻击力太弱,最后被你打死了\n";
}
}
else if(z7==3){
Sleep(1000);
system("cls");
cout<<" \t\t\t\t\t\t\t\t你好,"<<name<<endl;
cout<<"您:血量"<<a<<" 攻击力"<<b<<" 防御力"<<c<<endl;
Sleep(1000);
cout<<"输入作战方式:1.牛逼走位 2.正面硬刚 3.逃跑\n";
cin>>z8;
if(z8==1){
cout<<"他不吃你这一套,你被打死了!!\n";
}
else if(z8==2){
cout<<"他攻击力太强,最后把你打死了\n";
}
else{
cout<<"他追了上来,你突然转身一个回刺,他被刺死了!!\n";
}
}
}
}
void over(){
system("cls");
cout<<" \t\t\t\t\t\t\t\t你好,"<<name<<endl;
cout<<"恭喜您活到了最后!!!\n";
int n=0;
const int _oC = 277, _oD = 311, _oF = 370, _oG = 415, _oA = 466;
const int _C = 262, _D = 294, _E = 330, _F = 349, _G = 392, _A = 440, _B = 494;
const int oC = 554, oD = 622, oF = 740, oG = 831, oA = 932;
const int C = 523, D = 578, E = 659, F = 698, G = 784, A = 880, B = 988;
const int C_ = 1047, D_ = 1175, E_ = 1319, F_ = 1397, G_ = 1568, A_ = 1760, B_ = 1976;
const int oC_ = 1109, oD_ = 1245, oF_ = 1480, oG_ = 1661, oA_ = 1865;
const int T = 300; //一拍的长度
const int Stop = 800; //一拍休止符的长度
cout<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl;
cout<<" 请收听:黑人抬棺!(请选择播放次数)\n";
while(n!=0){
n=getch();
}
for(int i=1;i<=n;i++){
Beep(D,T*2);
Beep(D,T);
Beep(A,T);
Beep(G,T*2);
Beep(F,T*2);
Beep(E,T*2);
Beep(E,T);
Beep(E,T);
Beep(G,T*2);
Beep(F,T);
Beep(E,T);
Beep(D,T*2);
Beep(D,T);
Beep(F,T);
Beep(E,T);
Beep(F,T);
Beep(E,T);
Beep(F,T);
Beep(D,T*2);
Beep(D,T);
Beep(F,T);
Beep(E,T);
Beep(F,T);
Beep(E,T);
Beep(F,T);
Beep(D,T*2);
Beep(D,T);
Beep( F, T );
Beep( E, T );
Beep( F, T );
Beep( E, T );
Beep(F,T);
Beep( D, T );
Beep( D, T );
Beep( F, T );
Beep( F, T );
Beep( E, T );
Beep( E, T );
Beep( G, T );
Beep( G, T );
Beep( G, T );
Beep( G, T );
Beep( A, T );
Beep( A, T );
Beep( A, T );
Beep( A, T);
Beep( A, T );
Beep( A, T );
Beep( A, T );
Beep( A, T );
Beep( A, T );
Beep( A, T );
Beep( A, T);
Beep( A, T);
Beep( F, T );
Beep( E, T );
Beep( D, T);
Beep( C, T);
}
Sleep(1000);
system("cls");
cout<<" \t\t\t\t\t\t\t\t你好,"<<name<<endl;
cout<<"△ △ △ △ △\n";
cout<<"※ ※ ※ ※ ※\n";
cout<<"▓ ▓ ▓ ▓ ▓\n";
cout<<"▼ ▼ ▼ ▼ ▼\n";
Sleep(1000);
cout<<"游";
Sleep(100);
cout<<"戏";
Sleep(100);
cout<<"结";
Sleep(100);
cout<<"束!\n";
Sleep(100);
}
void overover(){
cout<<"满分五星,请打分!!\n";
int z9;
cin>>z9;
cout<<"谢谢评价!";
if(z9<=2){
cout<<"我以后会继续改进的!";
}
else if(z9<=4){
cout<<"我将会更加努力!";
}
else{
cout<<"十分感谢大家对我的支持!";
}
cout<<"再见!!!!!";
}
void start(){
system("color f0");
char a[]="欢迎来到好玩游戏!金光工作室出品!";
for(int i=0;a[i];i++){
cout<<a[i];
if(i==17){
cout<<endl;
Sleep(1000);
continue;
}
Sleep(150);
}
Sleep(1000);
system("cls");
system("color d1");
cout<<"请输入你的名字\n";
cin>>name;
cout<<" \n\n\n\n\n\n\n\n\t\t\t\t\t\t\t\t你好,"<<name<<endl;
system("cls");
while(ff!='n'&&ff!='N'){
cout<<"\t\t\t出版:金光工作室\n\t\t\t宫 成 LV.6(室 长)\n";
cout<<"\t\t\t张 恩 昊LV.4(推荐组)\n\t\t\t熊 智 晖LV.5(开发组)\n\t\t\t张 百 川LV.6(开发组)\n\t\t\t张 以 沫LV.7(修改组)\n\t\t\t包 涵 宇LV.9(副室长)\n\t\t\t谭 迪 元LV.8(修改组)\n\t\t\t李 子 杰LV.7(开发组)\n\t\t\t李 明 昕LV.6(开发组)\n\t\t\t王 文 博LV.6(修改组)\n\t\t\t张 一 宸LV.6(修改组)\n\t\t\t孔 小 川LV.5(开发组(替补))" ;
cout<<"\n\n\n\t\t\t按“n”继续";
ff=getch();
}
while(ff!='s'&&ff!='S'){
system("cls");
cout<<"\t\t\t版权所有,翻版必究\n";
cout<<"\t\t\t此游戏由金光工作室张一宸制作\n";
cout<<"\t\t\t(有意见可以向我提出来)\n";
cout<<"\n\n\n\t\t\t按“s”开始游戏\n";
ff=getch();
}
system("color f0");
while(ff!='1'&&ff!='2'&&ff!='3'&&ff!='4'){
system("cls");
cout<<" \t\t\t\t\t\t\t\t你好,"<<name<<endl;
cout<<"是否进入“好玩”游戏?\n1.进入 2.不进入 3.我要白嫖!! 4.这里什么都没有\n";
ff=getch();
}
}
int main(){
SetConsoleTitle("好玩小游戏1 简体中文版");
start();
Sleep(1000);
system("cls");
if(ff=='1'){
game1();
}
else if (ff=='2'){
game2();
}
else if(ff=='3'){
game3();
}
else if(ff=='4'){
game4();
}
if(x==0){
over();
}
overover();
}
中级天翼
顶顶顶顶顶顶 顶顶顶顶顶顶顶顶顶
顶 顶
顶 顶顶顶顶顶顶顶顶顶
顶 顶 顶 顶
顶 顶 顶 顶
顶 顶 顶 顶
顶 顶 顶 顶
顶 顶
顶 顶 顶
顶 顶 顶
顶 顶 顶
顶顶顶 顶 顶
顶 顶
顶天立地