本次更新了新地图和传送阵紫色会让x坐标+2灰色让y坐标+2
并且有两个版本
一个可以直接完全部的
一个要先玩前面的
代码1:
#include<bits/stdc++.h>
#include<windows.h>
#include<stdlib.h>
#include<cstdio>
#include<iostream>
#include<string>
#include<stdio.h>
#include<ctime>
#include<conio.h>
#include<time.h>
using namespace std;
void JZ()
{
system("cls");
for(int i=1;i<=100;i++)
{
if(i<100)
{
printf("数据加载中...\n");
}
else
{
printf("加载完毕");
}
printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n ");
for(int j=1;j<=50;j++)
{
printf("_");
}
printf("\n |");
for(int j=1;j<=i/2;j++)
{
printf("▇");
}
printf("\n 当前加载进度:%d%\n",i);
Sleep(5);
system("cls");
}
system("cls");
}
void COLOR_PRINT(const char* s, int color)
{
HANDLE handle = GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleTextAttribute(handle, FOREGROUND_INTENSITY | color);
printf(s);
SetConsoleTextAttribute(handle, FOREGROUND_INTENSITY | 7);
}
//puts("=============================================================================");
/*
0 = 黑色 8 = 灰色
1 = 蓝色 9 = 淡蓝色
2 = 绿色 10 = 淡绿色
3 = 浅绿色 11 = 淡浅绿色
4 = 红色 12 = 淡红色
5 = 紫色 13 = 淡紫色
6 = 黄色 14 = 淡黄色
7 = 白色 15 = 亮白色
*/
//COLOR_PRINT("", );
int x=1,y=1,jbx,jby,dt,g,xz,d,yq=5,js=4,win=0,tgcs=0,tp=0,ywcs=0;
int tg[10];
int nd[10] = {0,1,3,3,1,1,5,3,5};
char id;
//地图数组
int Map[20][10][20] =
{
{
{7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7},
{7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7},
{7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7},
{7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7},
{7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0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