自从找到了b_game,YUTU越来越飘了(^v^),YUTU在这里用b_game和YUTU的游戏库

浓缩了一个沙盒5.0,1.0、2.0、3.0、4.0都过时了,奉上新版本:

适用编辑器:DEV CPP或c++5.11的编辑器,下载链接:

devcpp_360软件

代码如下:

#include<bits/stdc++.h>//dev专属  VC不用
#include <windows.h>
#include <iostream>
#include <stdio.h>
#include <Windows.h>
#include <conio.h>
#include <string.h>
#include <ctime>
#include <stdlib.h>
#include <vector>
#include <unistd.h>
#include <tchar.h>
#include <fstream>
#include <sys/time.h>
#include<iostream>
#include<bits/stdc++.h>
#include<iomanip>
#include<string>
#include<cstdlib>
#include<ctime>
#include<windows.h>
#include<conio.h>
#include<fstream>
#include <mmsystem.h>
#define qdo 262
#define qre 294
#define qmi 330     //q前缀为低音,1后缀为高音,s前缀为半音阶
#define qfa 349
#define qso 392
#define qla 440
#define qsi 494
#define do 523
#define re 578
#define mi 659
#define fa 698
#define so 784
#define la 880
#define si 988
#define do1 1046
#define re1 1175
#define mi1 1318
#define fa1 1480
#define so1 1568
#define la1 1760
#define si1 1976
#define sqdo 277
#define sqre 311
#define sqfa 370
#define sqso 415
#define sqla 466
#define sdo 554
#define sre 622
#define sfa 740
#define sso 831
#define sla 932
#define sdo1 1046
#define sre1 1245
#define sfa1 1480
#define sso1 1661
#define sla1 1865
#define KEY_DOWN(VK_NONAME) ((GetAsyncKeyState(VK_NONAME) & 0x8000) ? 1:0)
using namespace std;//结构体与类提前声明struct hl//行列{long long h, l;};//函数提前声明bool axj(long long key);hl sbwz(bool x, bool n);void ydgb(long long h, long long l);void yanse(int n);//常量const long long ESC = 27,Enter = 13,Tab = 9,Shang = 38,Xia = 40,Zuo = 37,You = 39,Kong = ' ',z_sb = VK_LBUTTON,y_sb = VK_RBUTTON,Shift = VK_SHIFT,z_Shift = VK_LSHIFT,y_Shift = VK_RSHIFT,Ctrl = VK_CONTROL,z_Ctrl = VK_LCONTROL,y_Ctrl = VK_RCONTROL,Alt = VK_MENU,z_Alt = VK_LMENU,y_Alt = VK_RMENU,A = 'A',B = 'B',C = 'C',D = 'D',E = 'E',F = 'F',G = 'G',H = 'H',I = 'I',J = 'J',K = 'K',L = 'L',M = 'M',N = 'N',O = 'O',P = 'P',Q = 'Q',R = 'R',S = 'S',T = 'T',U = 'U',V = 'V',W = 'W',X = 'X',Y = 'Y',Z = 'Z';//结构体与类class anniu{private:short h_1, l_1, h_2, l_2, ys1, ys2;string nr;public:void csh(short hh_1, short ll_1, short hh_2, short ll_2, string _nr, short _yanse1, short _yanse2);bool gx_ax(bool f);};struct cdhs//存档结构体{void out(int n, string name);void out(long long n, string name);void out(bool n, string name);void out(char n, string name);void out(string n, string name);void in(int& n, string name);void in(long long& n, string name);void in(bool& n, string name);void in(char& n, string name);void in(string& n, string name);};//成员函数void anniu::csh(short hh_1 = 1, short ll_1 = 1, short hh_2 = 1, short ll_2 = 1, string _nr = " ", short _yanse1 = 240, short _yanse2 = 7){h_1 = hh_1;l_1 = ll_1;h_2 = hh_2;l_2 = ll_2;ys1 = _yanse1;ys2 = _yanse2;nr = _nr;return;}bool anniu::gx_ax(bool f = 1){short h = sbwz(1, 1).h, l = sbwz(1, 1).l, t = -1;if (h >= h_1 && h <= h_2 && l >= l_1 && l <= l_2){yanse(ys2);for (short i = h_1; i <= h_2; i++){ydgb(i, l_1);for (short j = l_1; j <= l_2; j++){t++;cout << nr[t];}}if ((axj(z_sb) && (f == 1)) || (axj(y_sb) && (f == 0))){return 1;}}else{yanse(ys1);for (short i = h_1; i <= h_2; i++){ydgb(i, l_1);for (short j = l_1; j <= l_2; j++){t++;cout << nr[t];}}return 0;}}void cdhs::out(int n, string name){ofstream cd(&name[0]);cd << n;cd.close();return;}void cdhs::out(long long n, string name){ofstream cd(&name[0]);cd << n;cd.close();return;}void cdhs::out(bool n, string name){ofstream cd(&name[0]);cd << n;cd.close();return;}void cdhs::out(char n, string name){ofstream cd(&name[0]);cd << n;cd.close();return;}void cdhs::out(string n, string name){ofstream cd(&name[0]);cd << n;cd.close();return;}void cdhs::in(int& n, string name){ifstream cd(&name[0]);cd >> n;cd.close();return;}void cdhs::in(long long& n, string name){ifstream cd(&name[0]);cd >> n;cd.close();return;}void cdhs::in(bool& n, string name){ifstream cd(&name[0]);cd >> n;cd.close();return;}void cdhs::in(char& n, string name){ifstream cd(&name[0]);cd >> n;cd.close();return;}void cdhs::in(string& n, string name){ifstream cd(&name[0]);cd >> n;cd.close();return;}//函数bool axj(long long key){return (GetKeyState(key) < 0);}void bout(string n, long long s = 50, bool f = 0, char key = 13)//输出{for (long long i = 0; i < n.size(); i++){if (f && GetKeyState(key) < 0){cout << n.substr(i, n.size());return;}cout << n[i];Sleep(s);}return;}void gs(long long h, long long l, string z)//格式{for (long long i = 1; i <= h; i++)cout << "\n";for (long long i = 1; i <= l; i++)cout << " ";cout << z;return;}void gckdx(short h, short l){string n = "mode con cols=", t = "";while (l > 0){t = t + char(l % 10 + '0');l /= 10;}for (short i = t.size() - 1; i >= 0; i--){n = n + t[i];}n = n + " lines=", t = "";while (h > 0){t = t + char(h % 10 + '0');h /= 10;}for (short i = t.size() - 1; i >= 0; i--){n = n + t[i];}system(&n[0]);return;}void gckm(string n){string t = "title ";t += n;system(&t[0]);return;}hl sbwz(bool x = 1, bool n = 1)//鼠标位置{HANDLE hOutput = GetStdHandle(STD_OUTPUT_HANDLE);HWND h = GetForegroundWindow();CONSOLE_FONT_INFO consoleCurrentFont;hl hl;POINT p;if (x){GetCursorPos(&p);ScreenToClient(h, &p);}else{GetCursorPos(&p);}if (n){GetCurrentConsoleFont(hOutput, FALSE, &consoleCurrentFont);p.x /= consoleCurrentFont.dwFontSize.X;p.y /= consoleCurrentFont.dwFontSize.Y;}hl.h = p.y + 1;hl.l = p.x + 1;return hl;}void yanse(int n)//颜色{SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), n);return;}void ycbj()//移除快速编辑模式{HANDLE hStdin = GetStdHandle(STD_INPUT_HANDLE);DWORD mode;GetConsoleMode(hStdin, &mode);mode &= ~ENABLE_QUICK_EDIT_MODE;SetConsoleMode(hStdin, mode);return;}void ycgb()//隐藏光标{CONSOLE_CURSOR_INFO cursor;cursor.bVisible = FALSE;cursor.dwSize = sizeof(cursor);HANDLE handle = GetStdHandle(STD_OUTPUT_HANDLE);SetConsoleCursorInfo(handle, &cursor);return;}void ydgb(long long h, long long l)//移动光标{COORD pos = { l - 1,h - 1 };HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE);SetConsoleCursorPosition(hOut, pos);return;}
string name;char dt[15][30],yutu,fx,sj=60,sl[15][30];     //                      0 1 2 3int sdf1=8,sdf2=8,g=1,die,gw1=9,gw2=9,hp=10,gwhp=1;int pai = 400,ban = 200,ting = 128;int szt=0,gzt=0;int slsh=0;bool f=1;//合成int xz=5;bool tc=1;string q="      空",w="      空",e="      空";//[][][]string a="      空",s="      空",d="      空";//[][][]string z="      空",x="      空",c="      空";//[][][]void gotoxy(int x=0,int y=0)
{COORD c;c.X=x;c.Y=y;SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE),c);
}void _Clearscreen(int x,int y,int p){//清空坐标后p-1个字符(包括坐标上的字符)gotoxy(x-1,y);for(int i=1;i<=p;i++)cout<<' ';
}
void _Clearscreen(int p){//清空光标后p-1个字符(包括光标上的字符)printf("\b");for(int i=1;i<=p;i++)cout<<' ';
}
void _Clearscreen(bool flag=1){//清空屏幕if(flag==1){//双缓冲HANDLE hStdOut; CONSOLE_SCREEN_BUFFER_INFO csbi; DWORD count; DWORD cellCount; COORD homeCoords = { 0, 0 };hStdOut = GetStdHandle(STD_OUTPUT_HANDLE);if (hStdOut == INVALID_HANDLE_VALUE) return;if (!GetConsoleScreenBufferInfo(hStdOut, &csbi)) return;cellCount = csbi.dwSize.X *csbi.dwSize.Y;if (!FillConsoleOutputCharacter(hStdOut, (TCHAR) ' ', cellCount, homeCoords, &count )) return;if (!FillConsoleOutputAttribute(hStdOut, csbi.wAttributes, cellCount, homeCoords, &count )) return;SetConsoleCursorPosition(hStdOut, homeCoords);}else if(flag==0){//单缓冲HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE);COORD coordScreen = {0, 0};SetConsoleCursorPosition( hConsole, coordScreen );}}void color(int a)
{SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),a);
/*  1   深蓝色2    深绿色3    深青色4    深红色5    深粉色i    黄色7 深白色8    灰色9 浅蓝色10   浅绿色11   浅青色12   浅红色13   浅粉色14   浅黄色15   浅白色背景1~15       黑色16~31     深蓝色32~47        深绿色48~63        深青色64~79        深红色'S'~95     深粉色96~111       深黄色112~127  深白色128~143  灰色144~159   浅蓝色160~1'A'   浅绿色176~191  浅青色192~207  浅红色208~223  浅粉色224~239  浅黄色240~255  浅白色
*/
}
void printf_red(const char *s)
{printf("\033[0m\033[1;31m%s\033[0m", s);
}void printf_green(const char *s)
{printf("\033[0m\033[1;32m%s\033[0m", s);
}void printf_yellow(const char *s)
{printf("\033[0m\033[1;33m%s\033[0m", s);
}void printf_blue(const char *s)
{printf("\033[0m\033[1;34m%s\033[0m", s);
}void printf_pink(const char *s)
{printf("\033[0m\033[1;35m%s\033[0m", s);
}void printf_cyan(const char *s)
{printf("\033[0m\033[1;36m%s\033[0m", s);
}
void photo(char n){if(n=='r'){color(12);cout<<"■";}else if(n=='b'){color(1);cout<<"■";}else if(n=='y'){color(14);cout<<"■";}else if(n=='g'){color(10);cout<<"■";}else if(n=='w'){color(15);cout<<"■";}else if(n=='p'){color(13);cout<<"■";}else if(n=='k'){cout<<"  ";}
}
void photo_man(){if(name=="Dream"){//      1          2          3          4          5          6          7          8          9          10photo('k');photo('k');photo('g');photo('g');photo('g');photo('g');photo('g');photo('g');cout<<endl;photo('k');photo('k');photo('g');photo('g');photo('g');photo('g');photo('g');photo('g');cout<<endl;photo('k');photo('k');photo('g');photo('g');photo('g');photo('g');photo('g');photo('g');cout<<endl;photo('k');photo('k');photo('g');photo('g');photo('g');photo('g');photo('g');photo('g');cout<<endl;photo('k');photo('k');photo('g');photo('g');photo('g');photo('g');photo('g');photo('g');cout<<endl;photo('k');photo('k');photo('g');photo('g');photo('g');photo('g');photo('g');photo('g');cout<<endl;//headphoto('g');photo('g');photo('g');photo('w');photo('w');photo('w');photo('w');photo('g');photo('g');photo('g');cout<<endl;photo('g');photo('g');photo('w');photo('w');photo('w');photo('w');photo('w');photo('w');photo('g');photo('g');cout<<endl;photo('g');photo('g');photo('w');photo('k');photo('w');photo('k');photo('w');photo('w');photo('g');photo('g');cout<<endl;photo('g');photo('g');photo('w');photo('w');photo('w');photo('w');photo('w');photo('w');photo('g');photo('g');cout<<endl;photo('g');photo('g');photo('w');photo('w');photo('w');photo('w');photo('w');photo('w');photo('g');photo('g');cout<<endl;photo('g');photo('g');photo('g');photo('w');photo('w');photo('w');photo('w');photo('g');photo('g');photo('g');cout<<endl;//bodyphoto('k');photo('k');photo('g');photo('g');photo('k');photo('k');photo('g');photo('g');photo('k');photo('k');cout<<endl;photo('k');photo('k');photo('g');photo('g');photo('k');photo('k');photo('g');photo('g');photo('k');photo('k');cout<<endl;photo('k');photo('k');photo('g');photo('g');photo('k');photo('k');photo('g');photo('g');photo('k');photo('k');cout<<endl;photo('k');photo('k');photo('g');photo('g');photo('k');photo('k');photo('g');photo('g');photo('k');photo('k');cout<<endl;photo('k');photo('k');photo('g');photo('g');photo('k');photo('k');photo('g');photo('g');photo('k');photo('k');cout<<endl;photo('k');photo('k');photo('g');photo('g');photo('k');photo('k');photo('g');photo('g');photo('k');photo('k');cout<<endl;//feet}
}
void muzic_die(){_Clearscreen(f);cout<<"   你死了\n";cout<<"   "<<name<<"死于:";if(die==1){cout<<"发现地板是岩浆做的\n";}else if(die==2){cout<<name<<"掉出了这个世界\n";}else if(die==3){cout<<"被野怪吃掉了\n";}else if(die==4){cout<<"被摔死了\n";}else {cout<<"死了\n";}anniu jntm;//定义anniu类的变量jntm.csh(10,11,10,20,"< 重 生 >",240,7);//初始化按钮while(1){if(jntm.gx_ax()){break;}}hp=10;sdf1=8;sdf2=8;dt[8][8]=' ';_Clearscreen(f);
}struct BLOCK{string u1,u2,d1,d2;int ph,u1c,u2c,d1c,d2c;
};
BLOCK block[11]={{"  ","  ","  ","  ",0,0,0,0,0},//空气0{"■","■","■","■",1,8,8,8,8},//石头1{"","","","",0,9,9,9,9},//水2{"■","■","■","■",1,15,15,15,15},//圆石3{"■","■","■","■",1,10,10,14,14},//草4{"■","■","■","■",1,14,14,14,14},//土5{"","","","",0,4,4,4,4},//岩浆6{"|#","#|","|#","#|",1,14,14,14,14},//木头7{"▓","▓","▓","▓",1,3,3,3,3},//树叶8{"■","■","■","■",1,7,8,8,7},//深板岩9{"▓","▓","▓","▓",1,15,15,15,15},//雪10
};
void sc(){for(int i=0;i<15;i++){
for(int j=0;j<30;j++){
if(i==sdf1&&j==sdf2){color(15);if(fx=='w'){cout<<"上玩";}else if(fx=='s'){cout<<"下玩";}else if(fx=='a'){cout<<"左玩";}else if(fx=='d'){cout<<"右玩";}if(dt[i][j]=='~'){hp--;die=1;}if(hp==0){sdf1=8;sdf2=8;}
}else if(i==gw1&&j==gw2){color(14);cout<<"(@@)";
if(dt[gw1][gw2]=='~'){gwhp=0;gw1=100;
}
}else{if(1){if(dt[i+1][j]==' '||dt[i][j+1]==' '||dt[i][j-1]==' '||dt[i-1][j]==' '){if(dt[i][j]=='#'){color(8);cout<<"■■";}else if(dt[i][j]=='@'){color(7);cout<<"■■";}else if(dt[i][j]=='~'){color(4);cout<<"■■";}else if(dt[i][j]=='w'){printf_blue("");}else if(dt[i][j]=='c'){printf_green("^^^^");}else{color(8);cout<<dt[i][j]<<dt[i][j]<<dt[i][j]<<dt[i][j];}}else{cout<<"    ";}}else{if(dt[i+1][j]==' '||dt[i][j+1]==' '||dt[i][j-1]==' '||dt[i-1][j]==' '){if(dt[i][j]=='~'){printf_red("■■");}else if(dt[i][j]=='w'){printf_blue("");}else{color(8);cout<<dt[i][j]<<dt[i][j]<<dt[i][j]<<dt[i][j];}}else{cout<<"    ";}}
}
}
cout<<endl;
for(int j=0;j<30;j++){
if(i==sdf1&&j==sdf2){color(15);if(fx=='w'){cout<<"↑家";}else if(fx=='s'){cout<<"↓家";}else if(fx=='a'){cout<<"←家";}else if(fx=='d'){cout<<"→家";}}else if(i==gw1&&j==gw2){color(14);cout<<"u怪u";}else{if(1){if(dt[i+1][j]==' '||dt[i][j+1]==' '||dt[i][j-1]==' '||dt[i-1][j]==' '){if(dt[i][j]=='#'){color(8);cout<<"■■";}else if(dt[i][j]=='@'){color(7);cout<<"■■";}else if(dt[i][j]=='~'){color(4);cout<<"■■";}else if(dt[i][j]=='w'){printf_blue("");}else if(dt[i][j]=='c'){printf_yellow("■■");}else{cout<<dt[i][j]<<dt[i][j]<<dt[i][j]<<dt[i][j];}}else{cout<<"    ";}}else{if(dt[i+1][j]==' '||dt[i][j+1]==' '||dt[i][j-1]==' '||dt[i-1][j]==' '){if(dt[i][j]=='~'){printf_red("■■");}else if(dt[i][j]=='w'){printf_blue("");}else{cout<<dt[i][j]<<dt[i][j]<<dt[i][j]<<dt[i][j];}}else{cout<<"    ";}}
}
}
cout<<endl;
}
if(1){cout<<"早上\n";cout<<"按空格挖掘,按wasd上下左右行走,按x、f放方块,\n按k清空地图,按c创造,按j时间+12,按TAB设置,按g小游戏副本(打敌人)\n有时候野怪懒得游泳,它只有1滴血\n玩家名称:"<<name<<"\n";cout<<"X:"<<sdf1<<"Y:"<<sdf2<<"\n";
}else{cout<<"晚上\n";cout<<name<<":“黑,真他妈黑啊”\n";
}
if(gwhp==0){cout<<"野怪意外死亡,已经跑走了\n";
}
if(sdf1<0||sdf1>=15||sdf2<0||sdf2>=30){hp=0;die=2;
}
for(int i=1;i<=hp;i++){if(i%2==1){cout<<"(";}else{cout<<")";}
}
if(hp==0){muzic_die();
}
cout<<endl;if(hp==0){muzic_die();
}
}
void dz(){if(axj(W)){if(dt[sdf1+1][sdf2]!=' '||dt[sdf1+2][sdf2]!=' '&&szt!=2){if(dt[sdf1+1!=' '][sdf2]) {if(dt[sdf1-1][sdf2]==' '||dt[sdf1-1][sdf2]=='~'||dt[sdf1-1][sdf2]=='w'){sdf1--;}}_Clearscreen(f);sc();szt++;szt%=3;}fx='w';}else if(axj(S)){if(sl[sdf1+1!=' '][sdf2]) {if(dt[sdf1+1][sdf2]==' '||dt[sdf1+1][sdf2]=='~'||dt[sdf1+1][sdf2]=='w'){sdf1++;slsh++;}}fx='s';die=4;_Clearscreen(f);sc();}else if(axj(A)){if(dt[sdf1][sdf2-1]==' '||dt[sdf1][sdf2-1]=='~'||dt[sdf1][sdf2-1]=='w'){sdf2--;}fx='a';_Clearscreen(f);sc();}else if(axj(D)){if(dt[sdf1][sdf2+1]==' '||dt[sdf1][sdf2+1]=='~'||dt[sdf1][sdf2+1]=='w'){sdf2++;}fx='d';_Clearscreen(f);sc();}else if(axj(z_sb)){if(fx=='w'&&dt[sdf1-1][sdf2]!='~'&&dt[sdf1-1][sdf2]!='w'){dt[sdf1-1][sdf2]=' ';Sleep(250) ;}else if(fx=='s'&&dt[sdf1+1][sdf2]!='~'&&dt[sdf1+1][sdf2]!='w'){dt[sdf1+1][sdf2]=' ';Sleep(250) ;}else if(fx=='a'&&dt[sdf1][sdf2-1]!='~'&&dt[sdf1][sdf2-1]!='w'){dt[sdf1][sdf2-1]=' ';Sleep(250) ;}else if(fx=='d'&&dt[sdf1][sdf2+1]!='~'&&dt[sdf1][sdf2+1]!='w'){dt[sdf1][sdf2+1]=' ';Sleep(250) ;}sdf1%=15;sdf2%=30;_Clearscreen(f);sc();}else if(axj(y_sb)){if(fx=='w'){dt[sdf1-1][sdf2]='@';}else if(fx=='s'){dt[sdf1+1][sdf2]='@';}else if(fx=='a'){dt[sdf1][sdf2-1]='@';}else if(fx=='d'){dt[sdf1][sdf2+1]='@';}_Clearscreen(f);sc();}
}
void csh(){printf_red(" ");system("mode con cols=120 lines=46");system("title YUTU和深莫的森林制作——沙盒游戏");_Clearscreen(f);for(int i=0;i<15;i++){for(int j=0;j<30;j++){if(i==0){dt[i][j]='c';}else{dt[i][j]='#';}if(i<5){sl[i][j]=' ';}else if(i>5){sl[i][j]='#';}else{sl[i][j]='c';}}}dt[9][9]='~';dt[30][30]='~';dt[30][29]='~';dt[30][28]='~';dt[30][27]='~';dt[29][27]='~';dt[3][30]='~';dt[3][29]='~';dt[3][28]='~';dt[3][27]='~';dt[4][27]='~';dt[7][7]='w';dt[5][5]='w';dt[6][6]='w';dt[10][10]='w';dt[21][21]='w';dt[22][30]='w';dt[3][29]='w';dt[3][28]='w';dt[3][27]='w';dt[4][27]='w';dt[8][8]=' ';dt[10][9]=' ';dt[10][10]=' ';dt[10][11]=' ';dt[9][9]=' ';dt[9][10]='~';dt[9][11]='~';
}
void m(){// wdnwnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn7csh();anniu n;//定义anniu类的变量n.csh(10,11,10,20,"开始 游戏",240,7);//初始化按钮while (1){if (n.gx_ax())//更新并检查是否按下按钮{printf_red(" ");system("cls");break;}}cout<<"你的名字叫什么?\n";cin>>name;system("cls");sc();while(1){
if(gwhp==1){if(gzt==125000-1){if(gw1<sdf1&&dt[gw1+1][gw2]==' '||gw1<sdf1&&dt[gw1+1][gw2]=='~'||gw1<sdf1&&dt[gw1+1][gw2]=='w'){gw1++;}else if(gw1>sdf1&&dt[gw1-1][gw2]==' '||gw1<sdf1&&dt[gw1-1][gw2]=='~'||gw1<sdf1&&dt[gw1-1][gw2]=='w'){gw1--;}else if(gw2<sdf2&&dt[gw1][gw2+1]==' '||gw1<sdf1&&dt[gw1][gw2+1]=='~'||gw1<sdf1&&dt[gw1][gw2+1]=='w'){gw2++;}else if(gw2>sdf2&&dt[gw1][gw2-1]==' '||gw1<sdf1&&dt[gw1][gw2-1]=='~'||gw1<sdf1&&dt[gw1][gw2-1]=='w'){gw2--;}else if(sdf1==gw1&&sdf2==gw2){hp--;die=3;}system("cls");if(dt[sdf1+1][sdf2]==' '){sdf1++;slsh++;}else{if(slsh>2){hp-=slsh-2;slsh=0;die=4;}}sc();}}else{gw1=4;gw2=2;gwhp=1;}dz();sj++;sj%=240;gzt++;gzt%=125000;
}}int main(){
ycgb();//隐藏光标ycbj();//移除编辑模式m();
}

YUTUc++沙盒小游戏5.0(亲测可运行)相关推荐

  1. c++沙盒小游戏3.0

    YUTU更新了一些地方: 重力控制.怪物自主移动.道具栏.跳跃极限.色调控制. (创造和打敌人副本维护中,暂不开放) void photo_man()是后期做背包.合成需要的,现在暂时没有用处. vo ...

  2. c++沙盒小游戏1.0

    YUTU做了3个文件:沙盒.cpp.game.h.sh.h. Switch.case.getch控制键盘热键,相信各位大神也知道. system("cls"):清屏. 最底端的 s ...

  3. 一个2D沙盒小游戏1.2

    更新了一些小东西,但要用到1.0上的nick.h库. 主要更新了一些键位,通过ASCII码值做成的. #include<iostream> #include<windows.h> ...

  4. rust沙河游戏_十款特别好玩的沙盒建造游戏,喜欢生存建造的朋友千万不要错过...

    原标题:十款特别好玩的沙盒建造游戏,喜欢生存建造的朋友千万不要错过 各位上期在文章里我把鬼泣(ACT)弄到RPG游戏里,非常的抱歉,希望大家给我多多提建议,我会做的更好,喜欢的朋友可以关注我一下,毕竟 ...

  5. 游戏开发论坛_沙盒建造游戏——Minetest for Mac

    Minetes mac版是一款界面元素采用像素游戏设计的沙盒类游戏,在Minetes mac版游戏中用户可以建设各种建造玩法哦,其中操作体验还是很相当简单的,Minetes mac版和我的世界极为类似 ...

  6. 王者荣耀小游戏1.0震撼上线!C++版

    王者荣耀小游戏1.0版本!可以关机哦! #include<bits/stdc++.h> //编个游戏,不顾一切的用万能 #include<windows.h> using na ...

  7. 吊死人小游戏 2.0版本

    游戏名称: 吊死人小游戏2.0版本(4位数字版) 游戏玩法: 选择被吊的人物 每次输入4个数字 如果猜对其中至少一个数字,看做猜对了 如果一个也没猜中,看做猜错,被吊人物画一笔 全部猜中,并且被吊人物 ...

  8. C语言实现贪吃蛇小游戏1.0

    C语言实现贪吃蛇小游戏1.0 贪吃蛇游戏要有三个东西:边框.蛇.食物 还有两个灵魂的东西:光标的移动与按键监控 一.光标的移动 在我看来在控制台上移动光标画图是实现这个小游戏的灵魂了,在这之前我一直以 ...

  9. 吊死人小游戏 1.0版本

    游戏名称: 吊死人小游戏1.0版本(4位数字版本) 游戏玩法: 每次输入一个4位数,表示你所猜4个数字. 如果你猜对了其中的几个数字,那么下方的4个问号中与你所猜对数字对应的数字将显现出来. 如果你猜 ...

最新文章

  1. html解析的简单方式,HTML解析看我就够了,不依赖任何第三方,两个方法搞定
  2. 第十二节: EF的三种模式(二) 之 ModelFirst模式(SQLServer为例)
  3. 演讲(1)--演讲小故事
  4. git学习4--公钥的配置
  5. 2 多贝西小波_【原创】土超:安卡拉高古VS贝西克塔斯
  6. 【Eigen中基本和常用函数】
  7. 编程计算三角形的面积和周长。要求如下: (1)、设计一个接口InterfaceShape,其中有计算三角形的面积和周长的抽象方法; (2)、设计一个点类Point,其中有必要的构造方法和一般的访问器方
  8. 找出java重复字符串,java 找出字符串出现重复的字符和次数
  9. ModSecurity的规则
  10. Windows2016 主从CA(一、企业根CA与独立从CA)
  11. 清华一日游-恰逢清华大学99周年校庆
  12. CSS基础学习-背景、边框的学习
  13. 英语翻译作业(二十)
  14. 《Linux那些事儿之我是USB》我是U盘(7)狂欢是一群人的孤单--总结
  15. 勾股定理(计算)C++
  16. Page size must not be less than onePage 1 of 1 containing UNKNOWN instances
  17. 当时若爱韩公子,埋骨成灰恨未休
  18. myCMS蚂蚁系统手机模板https,样式,JS加载无效
  19. vue3-video-play 一个更好的适合vue3的视频插件
  20. python 进行图片的文字识别

热门文章

  1. Mvvm模式: Databinding 与 ViewModel+LiveData+Repository
  2. 安装好office套件以后,右键新建中没有Word、Excel、PPT等怎么办
  3. matlab armax和arima区别,ARMA和ARIMA的区别是什么?
  4. wordcount程序中,输出文件夹中为空
  5. Maven私库使用常见问题:本地安装三方Jar文件
  6. 徐辉 北大计算机,徐辉的痛苦回忆_徐辉经历的那一段痛苦回忆
  7. [javascript] 实现展开全文和收起全文效果
  8. Yii:zii.widgets.CMenu使用方法
  9. 欧几里得距离、曼哈顿距离和切比雪夫距离
  10. elasticsearch 生产级别深度优化