跳到正文

个人记录

生草的UNDERTALE开头

XSDB约 11 分钟
原文
文章信息与版本

文章信息

发布
2022年4月17日
收录
2025年12月12日
更新
2026年11月18日
篇幅
约 11 分钟

版本

  1. v2当前
  2. v1

代码如下

C++
#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();

}
原文
抓取于
  1. XSDB

    e

  2. 大沙丢

    sssssssb

  3. XSDB

    话说哪位大佬会加音乐啊 蒟蒻不会加