c++小游戏走出迷宫3.0

本次更新了新地图和传送阵紫色会让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},
		{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,2,0,2,0,2,0,2,7},
		{7,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,7},
		{7,0,0,0,2,0,0,0,2,0,0,0,2,0,0,0,2,0,0,7},
		{7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7}
	},
	{
		{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,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,7},
		{7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7},
		{7,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,7},
		{7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7},
		{7,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,7},
		{7,0,0,0,2,2,0,0,0,0,2,2,0,0,0,0,2,2,0,7},
		{7,2,2,0,0,0,0,2,2,0,0,0,0,2,2,0,0,0,0,7},
		{7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7}						
	},
	{
		{7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7},
		{7,0,0,0,1,1,1,0,0,0,1,1,1,0,0,0,1,1,1,7},
		{7,0,0,0,1,1,1,0,0,0,1,1,1,0,0,0,1,1,1,7},
		{7,0,0,0,1,1,1,0,0,0,1,1,1,0,0,0,1,1,1,7},
		{7,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,7},
		{7,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,7},
		{7,0,0,0,1,1,1,0,0,0,1,1,1,0,0,0,1,1,1,7},
		{7,0,0,0,1,1,1,0,0,0,1,1,1,0,0,0,1,1,1,7},
		{7,0,0,0,1,1,1,0,0,0,1,1,1,0,0,0,1,1,1,7},
		{7,7
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值