问题标题: 新游戏Flowers grow on paper(纸上生花)1.0测试版本正式发布

2
3
蒋宇韩
蒋宇韩
中级守护
中级守护

禁水

此游戏实行开源政策,但是仿冒必究!

这是一个简单的(划掉)跑酷游戏,WASD操控,现进行最后调试,测试版即将发布,共有三关。

征名:总感觉这名字怪怪的...在此问题下方以此格式回答,征名有效,由我筛选。

格式:征名:名字(例:征名:Flowers grow on paper

名字被采纳者可得 100 豆

声明:此游戏和BW差不多,但其中几乎所有成分都是本人原创(自定义函数),添加了多种元素(至少作者自己是这样想的),敬请期待。

 

蒋宇韩在2023-10-21 13:19:18追加了内容

洛谷:这里

ME表示自己

WA表示墙壁

FS表示终点

其他的自己探索

蒋宇韩在2023-10-21 13:20:02追加了内容

往下滑 展开源码

蒋宇韩在2023-10-21 13:21:05追加了内容

@熊潇然 

蒋宇韩在2023-10-21 15:03:04追加了内容
#include<iostream>
#include<windows.h>
#include<cstdlib>
#include<cstdio>
#include<ctime>
#include<conio.h>
#define KEY_DOWN(VK_NONAME) ((GetAsyncKeyState(VK_NONAME) & 0x8000) ? 1:0)
#define MAXANS 3
using namespace std;
int x=17,y=2,jumpcnt;
int ans=1;
bool WIN,F=1;
const int dir[5][2]={{0},{0,1},{1,0},{-1,0},{0,-1}};
int shix[105]={0,17,19,19},shiy[105]={0,2,2,2};
int map_x[15]={0,20,20,20},map_y[15]={0,40,40,40};
string mapName[25]={"","WASD","不要手抖!","假方块~"};
int mapf[25][5]={{0},{2,39},{2,13},{17,39}};
char Getchar;
int jump,down;
/**/
int map1[25][105][105]={
	{
		{0},
	},
	{
		{0},
		{0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
		{0,1,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,1},
		{0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1},
		{0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1},
		{0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1},
		{0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1},
		{0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1},
		{0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1},
		{0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,1},
		{0,1,0,0,7,0,0,7,0,0,7,0,0,7,0,0,7,0,0,7,0,0,7,0,0,7,0,0,7,0,0,7,0,0,7,0,0,7,1,1,1},
		{0,1,2,1,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,1,1,1},
		{0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}
	}
};
int map[25][105][105];
void **();
void print();
void Jump(int,int);
void cls();
void Down();
void up(int);
void chushihua();
bool pd_move(int,int);
bool DIR2(int,int);
bool DIR(int,int);
void color(int);
bool YANJIANG(int,int);
void HideCursor();
void console(){
    HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE);
    CONSOLE_SCREEN_BUFFER_INFO bInfo;
    GetConsoleScreenBufferInfo(hOut, &bInfo );
    SetConsoleTitle("Flowers grow on paper J 1.0"); // 设置窗口的标题
}
void cls(){
    HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
    COORD coordScreen = { 0, 0 };    // home for the cursor
    SetConsoleCursorPosition( hConsole, coordScreen );
}
void HideCursor(){
	HANDLE handle = GetStdHandle(STD_OUTPUT_HANDLE);
	CONSOLE_CURSOR_INFO CursorInfo;
	GetConsoleCursorInfo(handle, &CursorInfo);//获取控制台光标信息
	CursorInfo.bVisible = false; //隐藏控制台光标
	SetConsoleCursorInfo(handle, &CursorInfo);//设置控制台光标状态
}
void color(int corcorcor){
    SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),corcorcor);
}
void chushihua(){
	x=shix[ans];
	y=shiy[ans];
	jump=0;down=0;jumpcnt=0;
	for(int i=1;i<=map_x[ans];i++){
		for(int j=1;j<=map_y[ans];j++){
			map[ans][i][j]=map1[ans][i][j];
		}
	}
}
void up(int D){
	while(1){
		if(D==1){
			if(YANJIANG(x-1,y)){
				F=0;
				return ;
			}
			if(pd_move(x-1,y)){
				print();
				map[ans][x][y]=0;
				map[ans][x-1][y]=2;
				x--;
				Sleep(0);
				print();
			}else if(map[ans][x-1][y]==5){
				Sleep(0);
				up(4);
				return ;
			}else if(!pd_move(x-1,y)){
				return ;
			}
		}else if(D==2){
			if(YANJIANG(x,y-1)){
				F=0;
				return ;
			}
			if(pd_move(x,y-1)){
				print();
				map[ans][x][y]=0;
				map[ans][x][y-1]=2;
				y--;
				Sleep(0);
				print();
			}else if(map[ans][x][y-1]==5){
				up(3);
				Sleep(0);
				return ;
			}else if(!pd_move(x,y-1)){
				return ;
			}
		}else if(D==3){
			if(YANJIANG(x,y+1)){
				F=0;
				return ;
			}
			if(pd_move(x,y+1)){
				print();
				map[ans][x][y]=0;
				map[ans][x][y+1]=2;
				y++;
				Sleep(0);
				print();
			}else if(map[ans][x][y+1]==5){
				Sleep(0);
				up(2);
				return ;
			}else if(!pd_move(x,y+1)){
				return ;
			}
		}else if(D==4){
			if(YANJIANG(x+1,y)){
				F=0;
				return ;
			}
			if(pd_move(x+1,y)){
				print();
				map[ans][x][y]=0;
				map[ans][x+1][y]=2;
				x++;
				Sleep(0);
				print();
			}else if(map[ans][x+1][y]==5){
				Sleep(0);
				up(1);
				return ;
			}else if(!pd_move(x+1,y)){
				return ;
			}
		}
	}

}
void print(){
	cls();
	cout<<"                                       ";
	cls();
	cout<<"第"<<ans<<"关:"<<mapName[ans]<<endl;
	for(int i=1;i<=map_x[ans];i++){
		for(int j=1;j<=map_y[ans];j++){
			if(map[ans][i][j]==0){
				color(11);
				cout<<"  ";
			}else if(map[ans][i][j]==1){
				color(11);
				cout<<"WA";
			}else if(map[ans][i][j]==2){
				color(14);
				cout<<"ME";
			}else if(map[ans][i][j]==3){
				color(10);
				cout<<"FS";
			}else if(map[ans][i][j]==4){
				color(12);
				cout<<"MG";
			}else if(map[ans][i][j]==5){
				color(13);
				cout<<"IC";
			}else if(map[ans][i][j]==6){
				color(11);
				cout<<"TI";
			}else if(map[ans][i][j]==7){
				color(14);
				cout<<"WA";
			}
		}cout<<endl;
	}return ;
}
bool DIR(int x,int y){
	if(x<1||y<1||x>map_x[ans]||y>map_y[ans])
		return false;
	return true;
}
bool pd_move(int x,int y){
	if(x<1||y<1||x>map_x[ans]||y>map_y[ans])return false;
	if(map[ans][x][y]==1)return false;
	if(map[ans][x][y]==5)return false;
	if(map[ans][x][y]==6)return false;
	return true;
}
void Jump(int X,int Y){
	if(pd_move(X,Y)==false)return ;
	if(YANJIANG(X,Y))F=0;
	map[ans][x][y]=0;
	map[ans][X][Y]=2;
	x--;
	return ;
}
bool YANJIANG(int x,int y){
	if(map[ans][x][y]==4)
		return true;
	return false;
}
void Down(){
	if(YANJIANG(x+1,y))F=0;
	map[ans][x][y]=0;
	map[ans][x+1][y]=2;
	x++;
}
void **(){
	while(1){
		cls();
		print();
		cout<<x<<' '<<y<<endl<<mapf[ans][0]<<' '<<mapf[ans][1];
		cout<<endl;
//			D=0;A=0;
		if(KEY_DOWN('W')&&pd_move(x-1,y)&&map[ans][x+1][y]!=0||(map[ans][x+1][y]==0&&(map[ans][x][y+1]==1&&Getchar=='d'||map[ans][x][y-1]==1&&Getchar=='a')||(map[ans][x][y-1]==6||map[ans][x][y+1]==6))&&!down){
//			Getchar='w';
			jump++;
			while(kbhit())_getch();
			if(map[ans][x+1][y]==0&&map[ans][x][y+1]==1&&jump>1){
				jumpcnt=0;
				jump=1;
			}
		}
		if(KEY_DOWN('A')&&pd_move(x,y-1)){
			Getchar='a';
			while(kbhit())_getch();
			if(jump!=1)
				if(YANJIANG(x,y-1))F=0;
			map[ans][x][y]=0;
			map[ans][x][y-1]=2;
			y--;
		}else if(KEY_DOWN('A')&&map[ans][x][y-1]==5)
			up(3);
		if(KEY_DOWN('D')&&pd_move(x,y+1)){
			Getchar='d';
			while(kbhit())_getch();
			if(jump!=1)
				if(YANJIANG(x,y+1))F=0;
			map[ans][x][y]=0;
			map[ans][x][y+1]=2;
			y++;
		}else if(KEY_DOWN('D')&&map[ans][x][y+1]==5)
			up(2);
		if(jump){
			jumpcnt++;
			Jump(x-1,y);
			if(jumpcnt==4){
				jumpcnt=0;
				jump=0;
			}
		}
		if(x==mapf[ans][0]&&y==mapf[ans][1]){
			if(ans==MAXANS){
				WIN=1;
				return ;
			}
			ans++;
			chushihua();
			jumpcnt=0;
			jump=0;
			down=0;
			x=shix[ans];
			y=shiy[ans];
			cls();

		}
		if((map[ans][x+1][y]==0||map[ans][x+1][y]==3||map[ans][x+1][y]==4||map[ans][x+1][y]==7)&&jump==0&&map[ans][x][y-1]!=6&&map[ans][x][y+1]!=6){
			Down();down=1;
		}else{
			down=0;
		}
		if(YANJIANG(x+1,y))F=0;
		if(map[ans][x+1][y]==5){
			up(1);
		}
		if(F==0){
			F=1;
			print();
			chushihua();
			Sleep(1000);
		}
		Sleep(1);
	}
}
int main(){
	srand(time(NULL));
	system("mode con cols=100 lines=25");
    HideCursor();
    console();
    chushihua();
	**();
	cls();
	print();
	system("cls");
    if(WIN==true)cout<<"WIN!";
    else cout<<"** OVER!";
    Sleep(2000);
    _getch();
	return 0;
}

 

蒋宇韩在2023-10-21 15:04:24追加了内容

**= G A M E

蒋宇韩在2023-10-21 17:56:24追加了内容

家人们谁懂啊?一点流量没有

蒋宇韩在2023-10-21 18:45:37追加了内容
#include<iostream>
#include<windows.h>
#include<cstdlib>
#include<cstdio>
#include<ctime>
#include<conio.h>
#define KEY_DOWN(VK_NONAME) ((GetAsyncKeyState(VK_NONAME) & 0x8000) ? 1:0)
#define MAXANS 4
using namespace std;
int x=17,y=2,jumpcnt;
int ans=1;
bool WIN,F=1;
const int dir[5][2]={{0},{0,1},{1,0},{-1,0},{0,-1}};
int shix[105]={0,17,19,19,19},shiy[105]={0,2,2,2,2};
int map_x[15]={0,20,20,20,20},map_y[15]={0,40,40,40,40};
string mapName[25]={"","WASD","不要手抖!","假方块~","绕来绕去","连跳会吗"};
int mapf[25][5]={{0},{2,39},{2,13},{17,39},{2,39}};
char Getchar;
int jump,down;
/**/
int map1[25][105][105]={
	{
		{0},
	},
	{
		{0},
		{0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
		{0,1,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,1},
		{0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,1,1},
		{0,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1},
		{0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1},
		{0,1,0,0,1,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,1,0,4,0,4,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1},
		{0,1,2,0,0,4,4,4,4,4,1,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,1},
		{0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
	}
};
int map[25][105][105];
void G();
void print();
void Jump(int,int);
void cls();
void Down();
void up(int);
void chushihua();
bool pd_move(int,int);
bool DIR2(int,int);
bool DIR(int,int);
void color(int);
bool YANJIANG(int,int);
void HideCursor();
void console(){
    HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE);
    CONSOLE_SCREEN_BUFFER_INFO bInfo;
    GetConsoleScreenBufferInfo(hOut, &bInfo );
    SetConsoleTitle("Flowers grow on paper J 1.0"); // 设置窗口的标题
}
void cls(){
    HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
    COORD coordScreen = { 0, 0 };    // home for the cursor
    SetConsoleCursorPosition( hConsole, coordScreen );
}
void HideCursor(){
	HANDLE handle = GetStdHandle(STD_OUTPUT_HANDLE);
	CONSOLE_CURSOR_INFO CursorInfo;
	GetConsoleCursorInfo(handle, &CursorInfo);//获取控制台光标信息
	CursorInfo.bVisible = false; //隐藏控制台光标
	SetConsoleCursorInfo(handle, &CursorInfo);//设置控制台光标状态
}
void color(int corcorcor){
    SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),corcorcor);
}
void chushihua(){
	x=shix[ans];
	y=shiy[ans];
	jump=0;down=0;jumpcnt=0;
	for(int i=1;i<=map_x[ans];i++){
		for(int j=1;j<=map_y[ans];j++){
			map[ans][i][j]=map1[ans][i][j];
		}
	}
}
void up(int D){
	while(1){
		if(D==1){
			if(YANJIANG(x-1,y)){
				F=0;
				return ;
			}
			if(pd_move(x-1,y)){
				print();
				map[ans][x][y]=0;
				map[ans][x-1][y]=2;
				x--;
				Sleep(0);
				print();
			}else if(map[ans][x-1][y]==5){
				Sleep(0);
				up(4);
				return ;
			}else if(!pd_move(x-1,y)){
				return ;
			}
		}else if(D==2){
			if(YANJIANG(x,y-1)){
				F=0;
				return ;
			}
			if(pd_move(x,y-1)){
				print();
				map[ans][x][y]=0;
				map[ans][x][y-1]=2;
				y--;
				Sleep(0);
				print();
			}else if(map[ans][x][y-1]==5){
				up(3);
				Sleep(0);
				return ;
			}else if(!pd_move(x,y-1)){
				return ;
			}
		}else if(D==3){
			if(YANJIANG(x,y+1)){
				F=0;
				return ;
			}
			if(pd_move(x,y+1)){
				print();
				map[ans][x][y]=0;
				map[ans][x][y+1]=2;
				y++;
				Sleep(0);
				print();
			}else if(map[ans][x][y+1]==5){
				Sleep(0);
				up(2);
				return ;
			}else if(!pd_move(x,y+1)){
				return ;
			}
		}else if(D==4){
			if(YANJIANG(x+1,y)){
				F=0;
				return ;
			}
			if(pd_move(x+1,y)){
				print();
				map[ans][x][y]=0;
				map[ans][x+1][y]=2;
				x++;
				Sleep(0);
				print();
			}else if(map[ans][x+1][y]==5){
				Sleep(0);
				up(1);
				return ;
			}else if(!pd_move(x+1,y)){
				return ;
			}
		}
	}

}
void print(){
	cls();
	cout<<"                                       ";
	cls();
	cout<<"第"<<ans<<"关:"<<mapName[ans]<<endl;
	for(int i=1;i<=map_x[ans];i++){
		for(int j=1;j<=map_y[ans];j++){
			if(map[ans][i][j]==0){
				color(11);
				cout<<"  ";
			}else if(map[ans][i][j]==1){
				color(11);
				cout<<"WA";
			}else if(map[ans][i][j]==2){
				color(14);
				cout<<"ME";
			}else if(map[ans][i][j]==3){
				color(10);
				cout<<"FS";
			}else if(map[ans][i][j]==4){
				color(12);
				cout<<"MG";
			}else if(map[ans][i][j]==5){
				color(13);
				cout<<"IC";
			}else if(map[ans][i][j]==6){
				color(11);
				cout<<"TI";
			}else if(map[ans][i][j]==7){
				color(14);
				cout<<"WA";
			}
		}cout<<endl;
	}return ;
}
bool DIR(int x,int y){
	if(x<1||y<1||x>map_x[ans]||y>map_y[ans])
		return false;
	return true;
}
bool pd_move(int x,int y){
	if(x<1||y<1||x>map_x[ans]||y>map_y[ans])return false;
	if(map[ans][x][y]==1)return false;
	if(map[ans][x][y]==5)return false;
	if(map[ans][x][y]==6)return false;
	return true;
}
void Jump(int X,int Y){
	if(pd_move(X,Y)==false)return ;
	if(YANJIANG(X,Y))F=0;
	map[ans][x][y]=0;
	map[ans][X][Y]=2;
	x--;
	return ;
}
bool YANJIANG(int x,int y){
	if(map[ans][x][y]==4)
		return true;
	return false;
}
void Down(){
	if(YANJIANG(x+1,y))F=0;
	map[ans][x][y]=0;
	map[ans][x+1][y]=2;
	x++;
}
void G(){
	while(1){
		cls();
		print();
		cout<<x<<' '<<y<<endl<<mapf[ans][0]<<' '<<mapf[ans][1];
		cout<<endl;
//			D=0;A=0;
		if(KEY_DOWN('W')&&pd_move(x-1,y)&&map[ans][x+1][y]!=0||(map[ans][x+1][y]==0&&(map[ans][x][y+1]==1&&Getchar=='d'||map[ans][x][y-1]==1&&Getchar=='a')||(map[ans][x][y-1]==6||map[ans][x][y+1]==6))&&!down){
//			Getchar='w';
			jump++;
			while(kbhit())_getch();
			if(map[ans][x+1][y]==0&&map[ans][x][y+1]==1&&jump>1){
				jumpcnt=0;
				jump=1;
			}
		}
		if(KEY_DOWN('A')&&pd_move(x,y-1)){
			Getchar='a';
			while(kbhit())_getch();
			if(jump!=1)
				if(YANJIANG(x,y-1))F=0;
			map[ans][x][y]=0;
			map[ans][x][y-1]=2;
			y--;
		}else if(KEY_DOWN('A')&&map[ans][x][y-1]==5)
			up(3);
		if(KEY_DOWN('D')&&pd_move(x,y+1)){
			Getchar='d';
			while(kbhit())_getch();
			if(jump!=1)
				if(YANJIANG(x,y+1))F=0;
			map[ans][x][y]=0;
			map[ans][x][y+1]=2;
			y++;
		}else if(KEY_DOWN('D')&&map[ans][x][y+1]==5)
			up(2);
		if(jump){
			jumpcnt++;
			Jump(x-1,y);
			if(jumpcnt==4){
				jumpcnt=0;
				jump=0;
			}
		}
		if(x==mapf[ans][0]&&y==mapf[ans][1]){
			if(ans==MAXANS){
				WIN=1;
				return ;
			}
			ans++;
			chushihua();
			jumpcnt=0;
			jump=0;
			down=0;
			x=shix[ans];
			y=shiy[ans];
			cls();

		}
		if((map[ans][x+1][y]==0||map[ans][x+1][y]==3||map[ans][x+1][y]==4||map[ans][x+1][y]==7)&&jump==0&&map[ans][x][y-1]!=6&&map[ans][x][y+1]!=6){
			Down();down=1;
		}else{
			down=0;
		}
		if(YANJIANG(x+1,y))F=0;
		if(map[ans][x+1][y]==5){
			up(1);
		}
		if(F==0){
			F=1;
			print();
			chushihua();
			Sleep(1000);
		}
		Sleep(1);
	}
}
int main(){
	srand(time(NULL));
	system("mode con cols=100 lines=25");
    HideCursor();
    console();
    chushihua();
	G();
	cls();
	print();
	system("cls");
    if(WIN==true)cout<<"WIN!";
    else cout<<"** OVER!";
    Sleep(2000);
    _getch();
	return 0;
}

应该能编译了


0
0
0
0
0
宋谦玉
宋谦玉
中级守护
中级守护

{0},
        {0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
        {0,4,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,4,1},
        {0,4,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1},
        {0,4,0,0,4,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1},
        {0,4,0,0,6,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1},
        {0,4,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3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,5,1},
        {0,4,1,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,1,1,1,1,1,4,1,1,4,4,4,4,4,4,4,4,4,4,4,1},
        {0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}

随便搞的

0
0
0
0
0
陈则霖
陈则霖
资深光能
资深光能

说实话,不建议用二维数组做地图

我要回答