资深光能
@吕若朴
#include<bits/stdc++.h>
#include<stdlib.h>
#include<windows.h>
#pragma GCC optimize(3)
#pragma GCC target("avx")
#pragma GCC optimize("Ofast")
#pragma GCC optimize("inline")
#pragma GCC optimize("-fgcse")
#pragma GCC optimize("-fgcse-lm")
#pragma GCC optimize("-fipa-sra")
#pragma GCC optimize("-ftree-pre")
#pragma GCC optimize("-ftree-vrp")
#pragma GCC optimize("-fpeephole2")
#pragma GCC optimize("-ffast-math")
#pragma GCC optimize("-fsched-spec")
#pragma GCC optimize("unroll-loops")
#pragma GCC optimize("-falign-jumps")
#pragma GCC optimize("-falign-loops")
#pragma GCC optimize("-falign-labels")
#pragma GCC optimize("-fdevirtualize")
#pragma GCC optimize("-fcaller-saves")
#pragma GCC optimize("-fcrossjumping")
#pragma GCC optimize("-fthread-jumps")
#pragma GCC optimize("-funroll-loops")
#pragma GCC optimize("-fwhole-program")
#pragma GCC optimize("-freorder-blocks")
#pragma GCC optimize("-fschedule-insns")
#pragma GCC optimize("inline-functions")
#pragma GCC optimize("-ftree-tail-merge")
#pragma GCC optimize("-fschedule-insns2")
#pragma GCC optimize("-fstrict-aliasing")
#pragma GCC optimize("-fstrict-overflow")
#pragma GCC optimize("-falign-functions")
#pragma GCC optimize("-fcse-skip-blocks")
#pragma GCC optimize("-fcse-follow-jumps")
#pragma GCC optimize("-fsched-interblock")
#pragma GCC optimize("-fpartial-inlining")
#pragma GCC optimize("no-stack-protector")
#pragma GCC optimize("-freorder-functions")
#pragma GCC optimize("-findirect-inlining")
#pragma GCC optimize("-frerun-cse-after-loop")
#pragma GCC optimize("inline-small-functions")
#pragma GCC optimize("-finline-small-functions")
#pragma GCC optimize("-ftree-switch-conversion")
#pragma GCC optimize("-foptimize-sibling-calls")
#pragma GCC optimize("-fexpensive-optimizations")
#pragma GCC optimize("-funsafe-loop-optimizations")
#pragma GCC optimize("inline-functions-called-once")
#pragma GCC optimize("-fdelete-null-pointer-checks")
#pragma GCC optimize(2)
using namespace std;
int main(){
HWND hwnd;
hwnd=GetForegroundWindow(); //使hwnd代表最前端的窗口
ShowWindow(hwnd,SW_MAXIMIZE); //最大化 hwnd 所代表的窗口
srand(time(NULL)); //播撒随机种子
system("COLOR F0");
MessageBox(NULL,"欢迎游玩无敌大冒险1.0","无敌大冒险",MB_OK);
for(int i=1;i<=10;i++){
Sleep(50);
system("cls");
cout<<"OOO\n";
cout<<" O 开机中\n";
Sleep(50);
system("cls");
cout<<" OO\n";
cout<<" O 开机中.\n";
cout<<" O\n";
Sleep(50);
system("cls");
cout<<" O\n";
cout<<" O 开机中..\n";
cout<<" OO\n";
Sleep(50);
system("cls");
cout<<" \n";
cout<<" O 开机中...\n";
cout<<"OOO";
Sleep(50);
system("cls");
cout<<" \n";
cout<<"O 开机中\n";
cout<<"OOO\n";
Sleep(50);
system("cls");
cout<<"O \n";
cout<<"O 开机中.\n";
cout<<"OO \n";
Sleep(50);
system("cls");
cout<<"OO \n";
cout<<"O 开机中..\n";
cout<<"O \n";
Sleep(50);
system("cls");
cout<<"OOO\n";
cout<<"O 开机中...\n";
cout<<" \n";
}
system("cls");
system("color 10");
cout<<"无";
system("color 20");
cout<<"敌";
system("color 30");
cout<<"大";
system("color 40");
cout<<"冒";
system("color 50");
cout<<"险";
system("color 60");
cout<<"1";
system("color 70");
cout<<".";
system("color 80");
cout<<"0";
system("color 90");
cout<<"现";
system("color a0");
cout<<"在";
system("color b0");
cout<<"开";
system("color c0");
cout<<"始";
system("color d0");
cout<<"!";
system("color e0");
cout<<"!";
system("color f0");
system("color 10");
system("color 20");
system("color 30");
system("color 40");
system("color 50");
system("color 60");
system("color 70");
system("color 80");
system("color 90");
system("color a0");
system("color b0");
system("color c0");
system("color d0");
system("color e0");
system("color f0");
system("color 10");
system("color 20");
system("color 30");
system("color 40");
system("color 50");
system("color 60");
system("color 70");
system("color 80");
system("color 90");
system("color a0");
system("color b0");
system("color c0");
system("color d0");
system("color e0");
system("color f0");
system("cls");
while(1){
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<<"怎么办?1.拿到魂器,推开伏地魔走人 2.自刎 3.拿到魂器,与伏地魔决斗 4.吃一口奥利给壮胆";
int x;
cin>>x;
if(x!=1&&x!=2&&x!=3&&x!=4){
system("cls");
Sleep(1000);
cout<<"数据出错,请重新输入一个数";
Sleep(1500);
system("cls");
}
if(x==1){
system("cls");
cout<<" ~~~~~~~~~我是白云~~~~~~~~~~\n";
cout<<" ==\n";
cout<<" ========\n";
cout<<" 魂器\n";
cout<<" ===============\n";
cout<<" ==================\n";
cout<<" \n";
cout<<" 终\n";
cout<<" 你 伏地魔 点\n";
cout<<"============================================";
Sleep(1000);
system("cls");
cout<<" ~~~~~~~~~我是白云~~~~~~~~~~\n";
cout<<" ==\n";
cout<<" ========\n";
cout<<" 魂器\n";
cout<<" ===============\n";
cout<<" ==================\n";
cout<<" \n";
cout<<" 你 终\n";
cout<<" 伏地魔 点\n";
cout<<"============================================";
Sleep(1000);
system("cls");
cout<<" ~~~~~~~~~我是白云~~~~~~~~~~\n";
cout<<" ==\n";
cout<<" ========\n";
cout<<" 魂器\n";
cout<<" ===============\n";
cout<<" ==================\n";
cout<<" 你 \n";
cout<<" 终\n";
cout<<" 伏地魔 点\n";
cout<<"============================================";
Sleep(1000);
system("cls");
cout<<" ~~~~~~~~~我是白云~~~~~~~~~~\n";
cout<<" ==\n";
cout<<" ========\n";
cout<<" 魂器\n";
cout<<" 你 ===============\n";
cout<<" ==================\n";
cout<<" \n";
cout<<" 终\n";
cout<<" 伏地魔 点\n";
cout<<"============================================";
Sleep(1000);
system("cls");
cout<<" ~~~~~~~~~我是白云~~~~~~~~~~\n";
cout<<" ==\n";
cout<<" ========\n";
cout<<" 你 魂器\n";
cout<<" ==============\n";
cout<<" ==================\n";
cout<<" \n";
cout<<" 终\n";
cout<<" 伏地魔 点\n";
cout<<"============================================";
Sleep(1000);
system("cls");
cout<<" ~~~~~~~~~我是白云~~~~~~~~~~\n";
cout<<" ==\n";
cout<<" ========\n";
cout<<" 你\n";
cout<<" ==============\n";
cout<<" ==================\n";
cout<<" \n";
cout<<" 终\n";
cout<<" 伏地魔 点\n";
cout<<"============================================";
Sleep(1000);
system("cls");
cout<<" ~~~~~~~~~我是白云~~~~~~~~~~\n";
cout<<" ==\n";
cout<<" ========\n";
cout<<" 你 \n";
cout<<" ==============\n";
cout<<" ==================\n";
cout<<" \n";
cout<<" 终\n";
cout<<" 伏地魔 点\n";
cout<<"============================================";
Sleep(1000);
system("cls");
cout<<" ~~~~~~~~~我是白云~~~~~~~~~~\n";
cout<<" ==\n";
cout<<" ========\n";
cout<<" \n";
cout<<" 你 ==============\n";
cout<<" ==================\n";
cout<<" \n";
cout<<" 终\n";
cout<<" 伏地魔 点\n";
cout<<"============================================";
Sleep(1000);
system("cls");
cout<<" ~~~~~~~~~我是白云~~~~~~~~~~\n";
cout<<" ==\n";
cout<<" ========\n";
cout<<" \n";
cout<<" ==============\n";
cout<<" 你 ==================\n";
cout<<" \n";
cout<<" 终\n";
cout<<" 伏地魔 点\n";
cout<<"============================================";
Sleep(1000);
system("cls");
cout<<" ~~~~~~~~~我是白云~~~~~~~~~~\n";
cout<<" ==\n";
cout<<" ========\n";
cout<<" \n";
cout<<" ==============\n";
cout<<" ==================\n";
cout<<" 你 \n";
cout<<" 终\n";
cout<<" 伏地魔 点\n";
cout<<"============================================";
Sleep(1000);
system("cls");
cout<<" ~~~~~~~~~我是白云~~~~~~~~~~\n";
cout<<" ==\n";
cout<<" ========\n";
cout<<" \n";
cout<<" ==============\n";
cout<<" ==================\n";
cout<<" \n";
cout<<" 你 终\n";
cout<<" 伏地魔 点\n";
cout<<"============================================";
Sleep(1000);
system("cls");
cout<<" ~~~~~~~~~我是白云~~~~~~~~~~\n";
cout<<" ==\n";
cout<<" ========\n";
cout<<" \n";
cout<<" ==============\n";
cout<<" ==================\n";
cout<<" \n";
cout<<" 终\n";
cout<<" 你 伏地魔 点\n";
cout<<"============================================";
Sleep(1000);
system("cls");
cout<<" ~~~~~~~~~我是白云~~~~~~~~~~\n";
cout<<" ==\n";
cout<<" ========\n";
cout<<" \n";
cout<<" ==============\n";
cout<<" ==================\n";
cout<<" \n";
cout<<" 终\n";
cout<<" 你伏地魔 点\n";
cout<<"============================================";
Sleep(1000);
system("cls");
cout<<" ~~~~~~~~~我是白云~~~~~~~~~~\n";
cout<<" ==\n";
cout<<" ========\n";
cout<<" \n";
cout<<" ==============\n";
cout<<" ==================\n";
cout<<" \n";
cout<<" 终\n";
cout<<" 伏地魔你 点\n";
cout<<"============================================\n";
Sleep(1000);
cout<<"伏地魔:你敢推老子?\n";
Sleep(1000);
cout<<"伏地魔:阿瓦达索命!!!\n";
Sleep(1000);
cout<<"你**了......";
Sleep(1000);
system("cls");
}
if(x==2){
system("cls");
Sleep(1000);
cout<<"我只问一句:你为啥自刎?((@′.ω.)有点意思)";
Sleep(1500);
system("cls");
}
if(x==3){
system("cls");
cout<<" ~~~~~~~~~我是白云~~~~~~~~~~\n";
cout<<" ==\n";
cout<<" ========\n";
cout<<" 魂器\n";
cout<<" ===============\n";
cout<<" ==================\n";
cout<<" \n";
cout<<" 终\n";
cout<<" 你 伏地魔 点\n";
cout<<"============================================";
Sleep(1000);
system("cls");
cout<<" ~~~~~~~~~我是白云~~~~~~~~~~\n";
cout<<" ==\n";
cout<<" ========\n";
cout<<" 魂器\n";
cout<<" ===============\n";
cout<<" ==================\n";
cout<<" \n";
cout<<" 你 终\n";
cout<<" 伏地魔 点\n";
cout<<"============================================";
Sleep(1000);
system("cls");
cout<<" ~~~~~~~~~我是白云~~~~~~~~~~\n";
cout<<" ==\n";
cout<<" ========\n";
cout<<" 魂器\n";
cout<<" ===============\n";
cout<<" ==================\n";
cout<<" 你 \n";
cout<<" 终\n";
cout<<" 伏地魔 点\n";
cout<<"============================================";
Sleep(1000);
system("cls");
cout<<" ~~~~~~~~~我是白云~~~~~~~~~~\n";
cout<<" ==\n";
cout<<" ========\n";
cout<<" 魂器\n";
cout<<" 你 ===============\n";
cout<<" ==================\n";
cout<<" \n";
cout<<" 终\n";
cout<<" 伏地魔 点\n";
cout<<"============================================";
Sleep(1000);
system("cls");
cout<<" ~~~~~~~~~我是白云~~~~~~~~~~\n";
cout<<" ==\n";
cout<<" ========\n";
cout<<" 你 魂器\n";
cout<<" ==============\n";
cout<<" ==================\n";
cout<<" \n";
cout<<" 终\n";
cout<<" 伏地魔 点\n";
cout<<"============================================";
Sleep(1000);
system("cls");
cout<<" ~~~~~~~~~我是白云~~~~~~~~~~\n";
cout<<" ==\n";
cout<<" ========\n";
cout<<" 你\n";
cout<<" ==============\n";
cout<<" ==================\n";
cout<<" \n";
cout<<" 终\n";
cout<<" 伏地魔 点\n";
cout<<"============================================";
Sleep(1000);
system("cls");
cout<<" ~~~~~~~~~我是白云~~~~~~~~~~\n";
cout<<" ==\n";
cout<<" ========\n";
cout<<" 你 \n";
cout<<" ==============\n";
cout<<" ==================\n";
cout<<" \n";
cout<<" 终\n";
cout<<" 伏地魔 点\n";
cout<<"============================================";
Sleep(1000);
system("cls");
cout<<" ~~~~~~~~~我是白云~~~~~~~~~~\n";
cout<<" ==\n";
cout<<" ========\n";
cout<<" \n";
cout<<" 你 ==============\n";
cout<<" ==================\n";
cout<<" \n";
cout<<" 终\n";
cout<<" 伏地魔 点\n";
cout<<"============================================";
Sleep(1000);
system("cls");
cout<<" ~~~~~~~~~我是白云~~~~~~~~~~\n";
cout<<" ==\n";
cout<<" ========\n";
cout<<" \n";
cout<<" ==============\n";
cout<<" 你 ==================\n";
cout<<" \n";
cout<<" 终\n";
cout<<" 伏地魔 点\n";
cout<<"============================================";
Sleep(1000);
system("cls");
cout<<" ~~~~~~~~~我是白云~~~~~~~~~~\n";
cout<<" ==\n";
cout<<" ========\n";
cout<<" \n";
cout<<" ==============\n";
cout<<" ==================\n";
cout<<" 你 \n";
cout<<" 终\n";
cout<<" 伏地魔 点\n";
cout<<"============================================";
Sleep(1000);
system("cls");
cout<<" ~~~~~~~~~我是白云~~~~~~~~~~\n";
cout<<" ==\n";
cout<<" ========\n";
cout<<" \n";
cout<<" ==============\n";
cout<<" ==================\n";
cout<<" \n";
cout<<" 你 终\n";
cout<<" 伏地魔 点\n";
cout<<"============================================";
Sleep(1000);
system("cls");
cout<<" ~~~~~~~~~我是白云~~~~~~~~~~\n";
cout<<" ==\n";
cout<<" ========\n";
cout<<" \n";
cout<<" ==============\n";
cout<<" ==================\n";
cout<<" \n";
cout<<" 终\n";
cout<<" 你 伏地魔 点\n";
cout<<"============================================";
Sleep(1000);
cout<<"\n你:除你武器!\n";
Sleep(1000);
cout<<"旁白:同时...\n";
Sleep(1000);
cout<<"伏地魔:阿瓦达索命!!!\n";
Sleep(1000);
cout<<"你的咒语把阿瓦达索命反弹了,你...\n";
Sleep(1999);
cout<<"获胜了!!!";
Sleep(1000);
system("cls");
break;
}
if(x==4){
system("cls");
cout<<" ~~~~~~~~~我是白云~~~~~~~~~~\n";
cout<<" ==\n";
cout<<" ========\n";
cout<<" 魂器\n";
cout<<" ===============\n";
cout<<" ==================\n";
cout<<" \n";
cout<<" 终\n";
cout<<" 你 伏地魔 点\n";
cout<<"============================================\n";
Sleep(1000);
system("cls");
cout<<" ~~~~~~~~~我是白云~~~~~~~~~~\n";
cout<<" ==\n";
cout<<" ========\n";
cout<<" 魂器\n";
cout<<" ===============\n";
cout<<" ==================\n";
cout<<" . \n";
cout<<" ... 终\n";
cout<<" 你..... 伏地魔 点\n";
cout<<"============================================\n";
Sleep(1000);
system("cls");
cout<<" ~~~~~~~~~我是白云~~~~~~~~~~\n";
cout<<" ==\n";
cout<<" ========\n";
cout<<" 魂器\n";
cout<<" ===============\n";
cout<<" ==================\n";
cout<<" \n";
cout<<" 终\n";
cout<<" 你 伏地魔 点\n";
cout<<"============================================\n";
Sleep(1000);
cout<<"你是一个狠人,连奥利给都吃......";
Sleep(1000);
system("cls");
}
}
cout<<"你来到了第二关";
while(1){
cout<<"~~ ~~~~ ~~:我是乌云~~~~~~~\n";
cout<<" 神 绞刑台 \n";
cout<<" _____ 魂 \n";
cout<<" ▼▼ 器 \n";
cout<<" ▲▲ ## \n";
cout<<" 你 ▓▓ ----- ## \n";
cout<<"==============IIIIIIIIIII====\n";
cout<<"▓是火";
cout<<"目标:拿到魂器,到达传送门\n 你:1.高跳 2.把火** 3.拿起神之剑,批掉绞刑台走过去 4.挖隧道";
int m;
cin>>m;
if(m==1){
system("cls");
cout<<"~~ ~~~~ ~~:我是乌云~~~~~~~\n";
cout<<" 神 绞刑台 \n";
cout<<" _____ 魂 \n";
cout<<" ▼▼ 器 \n";
cout<<" ▲▲ ## \n";
cout<<" 你 ▓▓ ----- ## \n";
cout<<"==============IIIIIIIIIII====\n";
Sleep(1000);
system("cls");
cout<<"~~ ~~~~ ~~:我是乌云~~~~~~~\n";
cout<<" 神 绞刑台 \n";
cout<<" _____ 魂 \n";
cout<<" ▼▼ 器 \n";
cout<<" 你 ▲▲ ## \n";
cout<<" ▓▓ ----- ## \n";
cout<<"==============IIIIIIIIIII====\n";
Sleep(1000);
system("cls");
cout<<"~~ ~~~~ ~~:我是乌云~~~~~~~\n";
cout<<" 神 绞刑台 \n";
cout<<" _____ 魂 \n";
cout<<" 你 ▼▼ 器 \n";
cout<<" ▲▲ ## \n";
cout<<" ▓▓ ----- ## \n";
cout<<"==============IIIIIIIIIII====\n";
Sleep(1000);
system("cls");
cout<<"~~ ~~~~ ~~:我是乌云~~~~~~~\n";
cout<<" 神 绞刑台 \n";
cout<<" 你_____ 魂 \n";
cout<<" ▼▼ 器 \n";
cout<<" ▲▲ ## \n";
cout<<" ▓▓ ----- ## \n";
cout<<"==============IIIIIIIIIII====\n";
Sleep(1000);
system("cls");
cout<<"~~ ~~~~ ~~:我是乌云~~~~~~~\n";
cout<<" 神 你 \n";
cout<<" _____ 魂 \n";
cout<<" ▼▼ 器 \n";
cout<<" ▲▲ ## \n";
cout<<" ▓▓ ----- ## \n";
cout<<"==============IIIIIIIIIII====\n";
Sleep(1000);
system("cls");
cout<<"~~ ~~~~ ~~:我是乌云~~~~~~~\n";
cout<<" 神 轰你轰 \n";
cout<<" _____ 魂 \n";
cout<<" ▼▼ 器 \n";
cout<<" ▲▲ ## \n";
cout<<" ▓▓ ----- ## \n";
cout<<"==============IIIIIIIIIII====\n";
Sleep(1000);
system("cls");
cout<<"~~ ~~~~ ~~:我是乌云~~~~~~~\n";
cout<<" 神 轰 轰 \n";
cout<<" __▋___ 魂 \n";
cout<<" ▼▼ 器 \n";
cout<<" ▲▲ ## \n";
cout<<" ▓▓ ----- ## \n";
cout<<"==============IIIIIIIIIII====\n";
cout<<"小朋友,你是不是有很多问号?";
Sleep(1911);
system("cls");
}
if(m==2){
system("cls");
cout<<"~~ ~~~~ ~~:我是乌云~~~~~~~\n";
cout<<" 神 绞刑台 \n";
cout<<" _____ 魂 \n";
cout<<" ▼▼ 器 \n";
cout<<" ▲▲ ## \n";
cout<<" 你▓▓ ----- ## \n";
cout<<"==============IIIIIIIIIII====\n";
Sleep(1000);
system("cls");
cout<<"~~ ~~~~ ~~:我是乌云~~~~~~~\n";
cout<<" 神 绞刑台 \n";
cout<<" _____ 魂 \n";
cout<<" ▼▼ 器 \n";
cout<<" ▲▲ ## \n";
cout<<" 你▅▓ ----- ## \n";
cout<<"==============IIIIIIIIIII====\n";
cout<<"这时......";
Sleep(1000);
system("cls");
cout<<"~~ ~~~~ ~~:我是乌云~~~~~~~\n";
cout<<" 神 绞刑台 \n";
cout<<" _____ 魂 \n";
cout<<" ▼▼ 器 \n";
cout<<" ▲▲ ## \n";
cout<<"▓▓ 你▓▓ ----- ## \n";
cout<<"==============IIIIIIIIIII====\n";
cout<<"你被烧**了";
Sleep(1000);
system("cls");
}
if(m==3){
system("cls");
cout<<"~~ ~~~~ ~~:我是乌云~~~~~~~\n";
cout<<" 神 绞刑台 \n";
cout<<" _____ 魂 \n";
cout<<" ▼▼ 器 \n";
cout<<" ↑ ▲▲ ## \n";
cout<<" 你↑▓ ----- ## \n";
cout<<"==============IIIIIIIIIII====\n";
Sleep(1000);
system("cls");
cout<<"~~ ~~~~ ~~:我是乌云~~~~~~~\n";
cout<<" 神 绞刑台 \n";
cout<<" _____ 魂 \n";
cout<<" ↑ ▼▼ 器 \n";
cout<<" 你↑ ▲▲ ## \n";
cout<<" ▓ ----- ## \n";
cout<<"==============IIIIIIIIIII====\n";
Sleep(1000);
system("cls");
cout<<"~~ ~~~~ ~~:我是乌云~~~~~~~\n";
cout<<" 神 \n";
cout<<" ↑_____ 魂 \n";
cout<<" 你↑ ▼▼ 器 \n";
cout<<" ▲▲ ## \n";
cout<<" ▓ ----- ## \n";
cout<<"==============IIIIIIIIIII====\n";
Sleep(1000);
system("cls");
}
}
return 0;
}