代码如下
#include <bits/stdc++.h>
#include <windows.h>
//#pragma comment(lib,"winmm.lib")
using namespace std;
void slowly(const char* p,int speed)
{
cout << endl;
cout << " ";
while (1)
{
if (*p != 0)
{
printf("%c", *p++);
}
else
{
break;
}
Sleep(speed);
}
Sleep(500);
}
void welcome(){
system("cls");
cout << "□□□□□■■■□□□□□□□□□□□□■■■□□□□□" << endl;
cout << "□□□□■■■■■□□□□□□□□□□■■■■■□□□□" << endl;
cout << "□□□□■□□□■□□□□□□□□□□■□□□■□□□□" << endl;
cout << "□□□■□■■■□□□□□□□□□□□□■■■□□□□□" << endl;
cout << "□□□■□□■□□□□□□□□□□□□■□■□□□□□□" << endl;
cout << "□□□■■■■■■□□□□□□□□□□■■■■■□□□□" << endl;
cout << "□□□■□□■□□□□□□□□□□□□■□■□□□□□□" << endl;
cout << "□□□□□□■□□□□□□□□□□□□□□■□□□□□□" << endl;
cout << "□□□□□□■□□□□□□□□□□□□□□■□□□□□□" << endl;
cout << "□□□□□■□■□□□□□□□□□□□□■□■□□□□□" << endl;
cout << "□□□□■□□□■□□□□□□□□□□■□□□■□□□□" << endl;
slowly("很久很久以前,地球由两个种族统治着:人类和怪物。",100);
cout << endl << endl;
system("pause");
system("cls");
cout << "□□□□□■■■□□□□□□□□□□□□■■■□□□□□" << endl;
cout << "□□□□■■■■■□□□□□□□□鬼!■■■■■□□□□" << endl;
cout << "□□□□■` □` ■我tm劈你!□□□□□■` □` ■□□□□" << endl;
cout << "□□□□□■■■□■□□□□□□□□□□■■■□□□□□" << endl;
cout << "□□□□□□■□□■□□□□□□□□□■□■□□□□□□" << endl;
cout << "□□□□■■■■■■□□□□□□□□□■■■■■□□□□" << endl;
cout << "□□□□□□■□□■□□□□□□□□□■□■□□□□□□" << endl;
cout << "□□■□□□■□□□□□□□□□□□□□□■□□□■□□" << endl;
cout << "□■` ■□□■□□□□□□□□□□□□□□■□□■□■□" << endl;
cout << "□□■□□■□■□□□□□□□□□□□□■□■□□■□□" << endl;
cout << "□□■□■□□□■□□□□□□□□□□■□□□■□■□□" << endl;
slowly("有一天,两个种族之间爆发了战争。",100);
cout << endl << endl;
system("pause");
system("cls");
cout << "□□□□□■■■□□□□□□□□□□□□■■■□□□□□" << endl;
cout << "□□□□■■■■■□□□□□□□□□□■■■■■□□□□" << endl;
cout << "□□□□■X □X ■□□□□□垃圾啊!□■` □` ■□□□□" << endl;
cout << "□□□■□■■■□□□□□□□□□□□□■■■□□□□□" << endl;
cout << "□□□■□□■□□□□□□□□□□□□■□■□□□□□□" << endl;
cout << "□□□■■■■■■□□□□□□□□□□■■■■■□□□□" << endl;
cout << "□□□■□□■□□□□□□□□□□□□■□■□□□□□□" << endl;
cout << "□□■□□□■□□□□□□□□□□□□□□■□□□■□□" << endl;
cout << "□■X ■□□■□□□□□□□□□□□□□□■□□■□■□" << endl;
cout << "□□■□□■□■□□□□□□□□□□□□■□■□□■□□" << endl;
cout << "□□■□■□□□■□□□□□□□□□□■□□□■□■□□" << endl;
slowly("经历漫长的战争之后,人类赢得了胜利。",100);
cout << endl << endl;
system("pause");
system("cls");
cout << "□\\ □□□■■■□□□□//□□□□□□□■■■□□□□□" << endl;
cout << "□□\\ □■■■■■□□//□□□□□□□■■■■■□□□□" << endl;
cout << "□□\\ □■□□□■不要啦!■- □□□□■□□□■封!□□" << endl;
cout << "□□□\\ □■■■□//□□□□□□■- □□■■■□□□□□" << endl;
cout << "□□□■\\ □■□//□□■- □□□□□□■□■□□□□□□" << endl;
cout << "□□□■■\\ ■//■□□□■- □□□■- ■■■■■□□□□" << endl;
cout << "□□□■□□// □□□□□□□■-□□□■□■□□□□□□" << endl;
cout << "□□□□□//■\\ □□■- □□□□□□□□□■□□□□□□" << endl;
cout << "□□□□//□■□\\ □□□□□□□□□□□□■□□□□□□" << endl;
cout << "□□□//□■□■□\\ □□■- □□□□□□■□■□□□□□" << endl;
cout << "□□//□■□□□■□\\ □□□□□□□□■□□□■□□□□" << endl;
slowly("它们用一道魔法咒文将怪物封印在了地底。",100);
cout << endl << endl;
system("pause");
system("cls");
cout << "■■■■■■■■■■■■■■■■■■■■■■■■■■■■" << endl;
cout << "■■■■■■■■■■■■■■■■■■■■■■■■■■■■" << endl;
cout << "■■■■■■■■■■■■■■■■■■■■■■■■■■■■" << endl;
cout << "■■■■■■■■■■■■■■■■■■■■■■■■■■■■" << endl;
cout << "■■■■■■■■■■■■■■■■■■■■■■■■■■■■" << endl;
cout << "■■■■■■■■■■■■■■■■■■■■■■■■■■■■" << endl;
cout << "■■■■■■■■■■■■■■■■■■■■■■■■■■■■" << endl;
cout << "■■■■■■■■■■■■■■■■■■■■■■■■■■■■" << endl;
cout << "■■■■■■■■■■■■■■■■■■■■■■■■■■■■" << endl;
cout << "■■■■■■■■■■■■■■■■■■■■■■■■■■■■" << endl;
cout << "■■■■■■■■■■■■■■■■■■■■■■■■■■■■" << endl;
slowly("很多年过去了...",400);
cout << endl << endl;
system("pause");
system("cls");
cout << "□□□□□□□□□□□□■■■■□□□□□□□□□□□□" << endl;
cout << "□□□□□□□□□□□■■■■■■□□□□□□□□□□□" << endl;
cout << "□□□□□□□□□□■■■■■■■■□□□□□□□□□□" << endl;
cout << "□□□□□□□□□■■■■■■■■■■□□□□□□□□□" << endl;
cout << "□□□□□□□□□■■■■■■■■■■□□□□□□□□□" << endl;
cout << "□□□□□□□□■■■■■■■■■■■■□□□□□□□□" << endl;
cout << "□□□□□□□■■■■■■■■■■■■■■□□□□□□□" << endl;
cout << "□□□□□□■■■■■■■■■■■■■■■■□□□□□□" << endl;
cout << "□□□□□□■■■■■■■■■■■■■■■■□□□□□□" << endl;
cout << "□□□□□■■■■■■■■■■■■■■■■■■□□□□□" << endl;
cout << "□□□□■■■■■■■■■■■■■■■■■■■■□□□□" << endl;
slowly("伊 伯 特 山",150);
cout << endl << " ";
slowly(" 201X",200);
cout << endl << endl;
system("pause");
system("cls");
cout << "□□□□□□□□□□□□■■■■□□□□□□□□□□□□" << endl;
cout << "□□□□□□□□□□□■■■■■■□□□□□□□□□□□" << endl;
cout << "□□□□□□□□□□■■■■■■■■□□□□□□□□□□" << endl;
cout << "□□□□□□□□□■■■■■■■■■■□□□□□□□□□" << endl;
cout << "□□□□□□□□□■■■■■■■■■■□□□□□□□□□" << endl;
cout << "□□□□□□□□■■■■■■■■■■■■□□□□□□□□" << endl;
cout << "□□□□□□□■■■■■■■■■■■■■■□□□□□□□" << endl;
cout << "□□□□□□■■■■■■■■■■■■■■■■□□□□□□" << endl;
cout << "□□□□□□■■■■■■■■■■■■■■■■□□□□□□" << endl;
cout << "□□□□□■■■■■■■■■■■■■■■■■■□□□□□" << endl;
cout << "□□□□■■■■■■■■■■■■■■■■■■■■□□□□" << endl;
slowly("传说那些爬上山去的人们再也没有回来过。",100);
cout << endl << endl;
system("pause");
system("cls");
Sleep(5000);
cout << endl << endl << endl << endl << endl << endl << endl << endl << endl << endl << endl << endl << endl << endl;
cout << " UNDERTALE";
cout << endl << endl << endl << endl << endl << endl << endl << endl ;
system("pause");
}
int main(){
//PlaySound("c:\\mus_story.ogg",NULL,SND_FILENAME|SND_ASYNC);
welcome();
}