ZIP我的世界简易版(C++编写,源代码+程序)weixin_54899670799.85KB需要积分:1立即下载资源文件列表: MC.zip 大约有4个文件 libgcc_s_seh-1.dll 76.5KB MC.cpp 1.11KB MC.exe 1.27MB libstdc++-6.dll 1.35MB 资源介绍: 我的世界简易版(C++编写,源代码+程序) 注意,其中有两个dll文件,勿删,删了无法运行 解压,运行MC.exe 源代码用Dev-C++编译即可 /********************************************************************* 程序名:我的世界2D 版权:\ 作者:yyh 日期: 2023-07-22 17:48 说明:我的世界2D *********************************************************************/ #include #include #include #include #define KEY_DOWN(VK_NONAME) ((GetAsyncKeyState(VK_NONAME) & 0x8000) ? 1:0) using namespace std; void sqewn() { system("COLOR 3F"); srand((unsigned)time(0)); int b = 0; while (1) { if (KEY_DOWN('L')) { return; } if (KEY_DOWN('W')) { system("color 2"); for (int f = 1; f <= 25; f++) { int b = rand() % 4; cout << "█O█O█\n"; int a = rand() % 8; for (int b = 0; b <= a; b++) { cout << " "; } } } } } int main() { system("title Minecraft"); system("COLOR 3F"); MessageBox(NULL, "点击确定开始游戏……", "游戏主页", MB_OK); MessageBox(NULL,"注意事项:\n在任意界面(除游戏主页)中长按l键退出,短按l键暂停,按w键开始/继续游戏","游戏主页的消息",MB_OK); for (int a = 1; a <= 10; a++) { sqewn(); } return 0; }