问题标题: 火箭模拟器1.5.2大功告成,巨型改变

4
6
已解决
高子骞
高子骞
高级守护
高级守护

上一版本:火箭模拟器1.0大功告成&望沙宸安评论 - 酷町问答 | 酷町堂旗下少儿编程社区 (codingtang.com)

记得点赞收藏加关注

首先话不多说上代码:

#include<bits/stdc++.h>
#include <iostream>
#include <fstream>
#include <cstdlib>
#include <iomanip>
#include <time.h>
#include <windows.h>
#include <pthread.h>
#include <conio.h>
#include <vector>
#include <map>
#define CgDu 5000
#define KEY_DOWN(VK_NONAME) ((GetAsyncKeyState(VK_NONAME)&0x8000)?1:6)
#include <cwchar>
using namespace std;
string s="现在是2123年2月14日,你乘坐着旅行者23号火箭去麦兹星执行任务,但飞行过程中,火箭被一个陨石击中,你幸运的活了下来,不过火箭失控,撞上了一个未知星球,你现在的任务就是:收集燃料,发射火箭,重返地球。";
int dt[30][27] = {//0=空气    1=石头    3=地面    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, 8},//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, 8},//2
    {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, 8},//3
    {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, 8},//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, 8},//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, 8},//6
    {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, 8},//7
    {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, 8},//8
    {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, 8},//9
    {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, 8},//10
    {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, 8},//11
    {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, 8},//12
    {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, 8},//13
    {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, 8},//14
    {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, 8},//15
    {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, 8},//16
    {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, 8},//17
    {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, 8},//18
    {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, 8},//19
    {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, 8},//20
    {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, 8},//21
    {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, 8},//22
    {0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8},//23
    {0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8},//24
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8},//25
    {50, 70, 100, 2, 2, 100, 2, 2, 2, 25, 2, 2, 100, 2, 2, 2, 2, 2, 2, 100, 2, 100, 2, 100, 2, 90, 8},//26
    {2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 8},//27
    {2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 8},//28
    {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, 8},//29
    {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, 8} //30
//   1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
};
long long b,jb,z1=24,z2=15,cj=1,bj=100,hj=1,dd,cjb,ss=1,cs,q,xh=1;
char c;
HANDLE hOut;
int main(){
srand(time(0));
int x = rand() % 6 + 1;
hOut = GetStdHandle(STD_OUTPUT_HANDLE);
	SetConsoleTitle("火箭模拟器 1.5.2");
	system("color 0F");
	cout<<"按1打开引入片,按2开始游戏";
	c=getch();
	if(c=='1'){
        system("cls");
        for (int i=0;i<s.size() ;i++ ){
            if(s[i-1]==','){
                cout<<endl;
                Sleep(200);
            }
            cout<<s[i];
            Sleep(70);
        }
        Sleep(3000);
        cout<<"按任意数字开始游戏";
        c=getch();
    }else{
        system("cls");
    }
	system("cls");
	while(1){
        system("cls");
		for(int i=0;i<=29;i++){
			for(int j=0;j<=26;j++){
                if(xh==1){
                    if(dt[i][j]==0){
                        printf ("  ");
                    }
                    if(dt[i][j]==2||dt[i][j]==19){
                        SetConsoleTextAttribute(hOut,
                                FOREGROUND_RED |
                                FOREGROUND_GREEN |
                                FOREGROUND_BLUE);
                        printf ("nn");
                    }
                    if(dt[i][j]==1){
                        SetConsoleTextAttribute(hOut,
                                FOREGROUND_RED |
                                FOREGROUND_GREEN |
                                FOREGROUND_BLUE);
                        printf ("__");
                    }
                    if(dt[i][j]<=100&&dt[i][j]>=20){
                        SetConsoleTextAttribute(hOut,
                                FOREGROUND_BLUE |
                                FOREGROUND_INTENSITY);
                        printf ("==");
                    }
                    if(dt[i][j]==8){
                        SetConsoleTextAttribute(hOut,
                                FOREGROUND_RED |
                                FOREGROUND_GREEN |
                                FOREGROUND_BLUE |
                                FOREGROUND_INTENSITY);
                        printf ("|");
                        if(i==2){
                        SetConsoleTextAttribute(hOut,
                                FOREGROUND_RED |
                                FOREGROUND_GREEN |
                                FOREGROUND_BLUE |
                                FOREGROUND_INTENSITY);
                            cout<<"		"<<"背包燃料数"<<b;
                        }
                        if(i==3){
                            SetConsoleTextAttribute(hOut,
                                FOREGROUND_RED |
                                FOREGROUND_GREEN |
                                FOREGROUND_BLUE |
                                FOREGROUND_INTENSITY);
                            cout<<"		"<<"火箭燃料数"<<jb;
                        }
                        if(i==4){
                            SetConsoleTextAttribute(hOut,
                                FOREGROUND_RED |
                                FOREGROUND_GREEN |
                                FOREGROUND_BLUE |
                                FOREGROUND_INTENSITY);
                            cout<<"		"<<"钱数"<<q;
                        }
                        if(i==5&&jb>=1){
                            SetConsoleTextAttribute(hOut,
                                FOREGROUND_RED |
                                FOREGROUND_GREEN |
                                FOREGROUND_BLUE |
                                FOREGROUND_INTENSITY);
                            cout<<"		"<<"按s可飞行";
                        }
                        if(i==5&&b>=1){
                            SetConsoleTextAttribute(hOut,
                                FOREGROUND_RED |
                                FOREGROUND_GREEN |
                                FOREGROUND_BLUE |
                                FOREGROUND_INTENSITY);
                            cout<<"		"<<"按f可将背包燃料放入火箭";
                        }
                        if(i==7){
                            SetConsoleTextAttribute(hOut,
                                FOREGROUND_RED |
                                FOREGROUND_GREEN |
                                FOREGROUND_BLUE |
                                FOREGROUND_INTENSITY);
                            cout<<"		"<<"按m可买火箭";
                        }
                        if(i==8){
                            SetConsoleTextAttribute(hOut,
                                FOREGROUND_RED |
                                FOREGROUND_GREEN |
                                FOREGROUND_BLUE |
                                FOREGROUND_INTENSITY);
                            cout<<"		"<<"按c可买镐子";
                        }
                    }
                    if(dt[i][j]==6){
                        SetConsoleTextAttribute(hOut,
                                FOREGROUND_RED |
                                FOREGROUND_GREEN);
                        printf ("♀ ");
                    }
                    if(dt[i][j]==4){
                    SetConsoleTextAttribute(hOut,
                                FOREGROUND_RED |
                                FOREGROUND_GREEN |
                                FOREGROUND_BLUE |
                                FOREGROUND_INTENSITY);
                        printf ("H ");
                    }
                    if(dt[i][j]==5){
                        SetConsoleTextAttribute(hOut,
                                FOREGROUND_RED);
                        printf ("A ");
                    }
                }else if(xh==2||xh==3){
                    if(dt[i][j]==0){
                        printf ("  ");
                    }
                    if(dt[i][j]==2||dt[i][j]==19){
                        SetConsoleTextAttribute(hOut,
                                FOREGROUND_RED |
                                FOREGROUND_GREEN |
                                FOREGROUND_BLUE);
                        printf ("nn");
                    }
                    if(dt[i][j]==1){
                        SetConsoleTextAttribute(hOut,
                                FOREGROUND_RED |
                                FOREGROUND_GREEN |
                                FOREGROUND_BLUE);
                        printf ("__");
                    }
                    if(dt[i][j]<=100&&dt[i][j]>=20){
                        SetConsoleTextAttribute(hOut,
                                FOREGROUND_BLUE |
                                FOREGROUND_INTENSITY);
                        printf ("==");
                    }
                    if(dt[i][j]==8){
                        SetConsoleTextAttribute(hOut,
                                FOREGROUND_RED |
                                FOREGROUND_GREEN |
                                FOREGROUND_BLUE |
                                FOREGROUND_INTENSITY);
                        printf ("|");
                        if(i==2){
                        SetConsoleTextAttribute(hOut,
                                FOREGROUND_RED |
                                FOREGROUND_GREEN |
                                FOREGROUND_BLUE |
                                FOREGROUND_INTENSITY);
                            cout<<"		"<<"背包燃料数"<<b;
                        }
                        if(i==3){
                            SetConsoleTextAttribute(hOut,
                                FOREGROUND_RED |
                                FOREGROUND_GREEN |
                                FOREGROUND_BLUE |
                                FOREGROUND_INTENSITY);
                            cout<<"		"<<"火箭燃料数"<<jb;
                        }
                        if(i==4){
                            SetConsoleTextAttribute(hOut,
                                FOREGROUND_RED |
                                FOREGROUND_GREEN |
                                FOREGROUND_BLUE |
                                FOREGROUND_INTENSITY);
                            cout<<"		"<<"钱数"<<q;
                        }
                        if(i==5&&jb>=1){
                            SetConsoleTextAttribute(hOut,
                                FOREGROUND_RED |
                                FOREGROUND_GREEN |
                                FOREGROUND_BLUE |
                                FOREGROUND_INTENSITY);
                            cout<<"		"<<"按s可飞行";
                        }
                        if(i==5&&b>=1){
                            SetConsoleTextAttribute(hOut,
                                FOREGROUND_RED |
                                FOREGROUND_GREEN |
                                FOREGROUND_BLUE |
                                FOREGROUND_INTENSITY);
                            cout<<"		"<<"按f可将背包燃料放入火箭";
                        }
                        if(i==7){
                            SetConsoleTextAttribute(hOut,
                                FOREGROUND_RED |
                                FOREGROUND_GREEN |
                                FOREGROUND_BLUE |
                                FOREGROUND_INTENSITY);
                            cout<<"		"<<"按m可买火箭";
                        }
                        if(i==8){
                            SetConsoleTextAttribute(hOut,
                                FOREGROUND_RED |
                                FOREGROUND_GREEN |
                                FOREGROUND_BLUE |
                                FOREGROUND_INTENSITY);
                            cout<<"		"<<"按c可买镐子";
                        }
                    }
                    if(dt[i][j]==6){
                        SetConsoleTextAttribute(hOut,
                                FOREGROUND_RED |
                                FOREGROUND_GREEN);
                        printf ("♀ ");
                    }
                    if(dt[i][j]==4){
                    SetConsoleTextAttribute(hOut,
                                FOREGROUND_RED |
                                FOREGROUND_GREEN |
                                FOREGROUND_BLUE |
                                FOREGROUND_INTENSITY);
                        printf ("H ");
                    }
                    if(dt[i][j]==5){
                        SetConsoleTextAttribute(hOut,
                                FOREGROUND_RED);
                        printf ("A ");
                    }
                    if(dt[i][j]==10){
                        SetConsoleTextAttribute(hOut,
                                FOREGROUND_RED |
                                FOREGROUND_GREEN);
                        printf ("**");
                    }
                }else if(xh==4||xh==5){
                    if(dt[i][j]==0){
                        printf ("  ");
                    }
                    if(dt[i][j]==2||dt[i][j]==19){
                        SetConsoleTextAttribute(hOut,
                                FOREGROUND_RED |
                                FOREGROUND_GREEN |
                                FOREGROUND_BLUE);
                        printf ("nn");
                    }
                    if(dt[i][j]==1){
                        SetConsoleTextAttribute(hOut,
                                FOREGROUND_RED |
                                FOREGROUND_GREEN |
                                FOREGROUND_BLUE);
                        printf ("__");
                    }
                    if(dt[i][j]<=100&&dt[i][j]>=20){
                        SetConsoleTextAttribute(hOut,
                                FOREGROUND_BLUE |
                                FOREGROUND_INTENSITY);
                        printf ("==");
                    }
                    if(dt[i][j]==8){
                        SetConsoleTextAttribute(hOut,
                                FOREGROUND_RED |
                                FOREGROUND_GREEN |
                                FOREGROUND_BLUE |
                                FOREGROUND_INTENSITY);
                        printf ("|");
                        if(i==2){
                        SetConsoleTextAttribute(hOut,
                                FOREGROUND_RED |
                                FOREGROUND_GREEN |
                                FOREGROUND_BLUE |
                                FOREGROUND_INTENSITY);
                            cout<<"		"<<"背包燃料数"<<b;
                        }
                        if(i==3){
                            SetConsoleTextAttribute(hOut,
                                FOREGROUND_RED |
                                FOREGROUND_GREEN |
                                FOREGROUND_BLUE |
                                FOREGROUND_INTENSITY);
                            cout<<"		"<<"火箭燃料数"<<jb;
                        }
                        if(i==4){
                            SetConsoleTextAttribute(hOut,
                                FOREGROUND_RED |
                                FOREGROUND_GREEN |
                                FOREGROUND_BLUE |
                                FOREGROUND_INTENSITY);
                            cout<<"		"<<"钱数"<<q;
                        }
                        if(i==5&&jb>=1){
                            SetConsoleTextAttribute(hOut,
                                FOREGROUND_RED |
                                FOREGROUND_GREEN |
                                FOREGROUND_BLUE |
                                FOREGROUND_INTENSITY);
                            cout<<"		"<<"按s可飞行";
                        }
                        if(i==5&&b>=1){
                            SetConsoleTextAttribute(hOut,
                                FOREGROUND_RED |
                                FOREGROUND_GREEN |
                                FOREGROUND_BLUE |
                                FOREGROUND_INTENSITY);
                            cout<<"		"<<"按f可将背包燃料放入火箭";
                        }
                        if(i==7){
                            SetConsoleTextAttribute(hOut,
                                FOREGROUND_RED |
                                FOREGROUND_GREEN |
                                FOREGROUND_BLUE |
                                FOREGROUND_INTENSITY);
                            cout<<"		"<<"按m可买火箭";
                        }
                        if(i==8){
                            SetConsoleTextAttribute(hOut,
                                FOREGROUND_RED |
                                FOREGROUND_GREEN |
                                FOREGROUND_BLUE |
                                FOREGROUND_INTENSITY);
                            cout<<"		"<<"按c可买镐子";
                        }
                    }
                    if(dt[i][j]==6){
                        SetConsoleTextAttribute(hOut,
                                FOREGROUND_RED |
                                FOREGROUND_GREEN);
                        printf ("♀ ");
                    }
                    if(dt[i][j]==4){
                    SetConsoleTextAttribute(hOut,
                                FOREGROUND_RED |
                                FOREGROUND_GREEN |
                                FOREGROUND_BLUE |
                                FOREGROUND_INTENSITY);
                        printf ("H ");
                    }
                    if(dt[i][j]==5){
                        SetConsoleTextAttribute(hOut,
                                FOREGROUND_RED);
                        printf ("A ");
                    }
                    if(dt[i][j]==10){
                        SetConsoleTextAttribute(hOut,
                                FOREGROUND_RED |
                                FOREGROUND_GREEN);
                        printf ("**");
                    }
                    if(dt[i][j]==11){
                        SetConsoleTextAttribute(hOut,
                                FOREGROUND_RED |
                                FOREGROUND_GREEN);
                        printf ("##");
                    }
                }else if(xh==6||xh==7){
                    if(dt[i][j]==0){
                        printf ("  ");
                    }
                    if(dt[i][j]==2||dt[i][j]==19){
                        SetConsoleTextAttribute(hOut,
                                FOREGROUND_RED |
                                FOREGROUND_GREEN |
                                FOREGROUND_BLUE);
                        printf ("nn");
                    }
                    if(dt[i][j]==1){
                        SetConsoleTextAttribute(hOut,
                                FOREGROUND_RED |
                                FOREGROUND_GREEN |
                                FOREGROUND_BLUE);
                        printf ("__");
                    }
                    if(dt[i][j]<=100&&dt[i][j]>=20){
                        SetConsoleTextAttribute(hOut,
                                FOREGROUND_BLUE |
                                FOREGROUND_INTENSITY);
                        printf ("==");
                    }
                    if(dt[i][j]==8){
                        SetConsoleTextAttribute(hOut,
                                FOREGROUND_RED |
                                FOREGROUND_GREEN |
                                FOREGROUND_BLUE |
                                FOREGROUND_INTENSITY);
                        printf ("|");
                        if(i==2){
                        SetConsoleTextAttribute(hOut,
                                FOREGROUND_RED |
                                FOREGROUND_GREEN |
                                FOREGROUND_BLUE |
                                FOREGROUND_INTENSITY);
                            cout<<"		"<<"背包燃料数"<<b;
                        }
                        if(i==3){
                            SetConsoleTextAttribute(hOut,
                                FOREGROUND_RED |
                                FOREGROUND_GREEN |
                                FOREGROUND_BLUE |
                                FOREGROUND_INTENSITY);
                            cout<<"		"<<"火箭燃料数"<<jb;
                        }
                        if(i==4){
                            SetConsoleTextAttribute(hOut,
                                FOREGROUND_RED |
                                FOREGROUND_GREEN |
                                FOREGROUND_BLUE |
                                FOREGROUND_INTENSITY);
                            cout<<"		"<<"钱数"<<q;
                        }
                        if(i==5&&jb>=1){
                            SetConsoleTextAttribute(hOut,
                                FOREGROUND_RED |
                                FOREGROUND_GREEN |
                                FOREGROUND_BLUE |
                                FOREGROUND_INTENSITY);
                            cout<<"		"<<"按s可飞行";
                        }
                        if(i==5&&b>=1){
                            SetConsoleTextAttribute(hOut,
                                FOREGROUND_RED |
                                FOREGROUND_GREEN |
                                FOREGROUND_BLUE |
                                FOREGROUND_INTENSITY);
                            cout<<"		"<<"按f可将背包燃料放入火箭";
                        }
                        if(i==7){
                            SetConsoleTextAttribute(hOut,
                                FOREGROUND_RED |
                                FOREGROUND_GREEN |
                                FOREGROUND_BLUE |
                                FOREGROUND_INTENSITY);
                            cout<<"		"<<"按m可买火箭";
                        }
                        if(i==8){
                            SetConsoleTextAttribute(hOut,
                                FOREGROUND_RED |
                                FOREGROUND_GREEN |
                                FOREGROUND_BLUE |
                                FOREGROUND_INTENSITY);
                            cout<<"		"<<"按c可买镐子";
                        }
                    }
                    if(dt[i][j]==6){
                        SetConsoleTextAttribute(hOut,
                                FOREGROUND_RED |
                                FOREGROUND_GREEN);
                        printf ("♀ ");
                    }
                    if(dt[i][j]==4){
                    SetConsoleTextAttribute(hOut,
                                FOREGROUND_RED |
                                FOREGROUND_GREEN |
                                FOREGROUND_BLUE |
                                FOREGROUND_INTENSITY);
                        printf ("H ");
                    }
                    if(dt[i][j]==5){
                        SetConsoleTextAttribute(hOut,
                                FOREGROUND_RED);
                        printf ("A ");
                    }
                    if(dt[i][j]==10){
                        SetConsoleTextAttribute(hOut,
                                FOREGROUND_RED |
                                FOREGROUND_GREEN);
                        printf ("**");
                    }
                    if(dt[i][j]==11){
                        SetConsoleTextAttribute(hOut,
                                FOREGROUND_RED |
                                FOREGROUND_GREEN);
                        printf ("##");
                    }
                    if(dt[i][j]==12){
                        SetConsoleTextAttribute(hOut,
                                FOREGROUND_RED |
                                FOREGROUND_GREEN);
                        printf ("EE");
                    }
                }
			}
			cout<<endl;
		}
		c=getch();
		if(c=='a'&&z2!=0){
			dt[z1][z2]=0;
			z2--;
			dt[z1][z2]=6;
		}
		if(c=='d'&&z2!=25){
			dt[z1][z2]=0;
			z2++;
			dt[z1][z2]=6;
		}
		if(c=='x'){
            if(dt[z1+1][z2]<=100&&dt[z1+1][z2]>=20){
                b+=cj;
                Sleep(150);
                dt[z1+1][z2]--;
            }else if(dt[z1+1][z2]==10){
                q+=35;
                Sleep(500);
                dt[z1+1][z2]=2;
            }else if(dt[z1+1][z2]==11){
                q+=100;
                Sleep(800);
                dt[z1+1][z2]=2;
            }else if(dt[z1+1][z2]==12){
                b+=cj*20;
                Sleep(900);
                dt[z1+1][z2]=2;
            }
		}
		if(c=='f'&&b!=0){
			jb+=b;
			b=0;
		}
		if(c=='s'&&jb!=0){
		    system("cls");
			if(hj==1){
				SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED |
                            FOREGROUND_GREEN |
                            FOREGROUND_BLUE |
                            FOREGROUND_INTENSITY);
				cjb=jb;
				for(int i=1;i<=cjb;i++){
					system("cls");
					if(dd==200){
                        cout<<"到达一个未知 星球(1)";
                        cout<<endl<<"按1进入,按2不进入";
                        c=getch();
                        if(c=='1'){
                            xh=2;
                            dt[25][18]=10;
                            dt[25][10]=10;
                            break;
                        }else{

                        }
					}else if(dd==1000){
						cout<<"到达一个未知 星球(2)";
                        cout<<endl<<"按1进入,按2不进入";
                        c=getch();
                        if(c=='1'){
                            xh=3;
                            dt[25][18]=10;
                            dt[25][10]=10;
                            dt[25][13]=10;
                            dt[25][20]=10;
                            dt[25][1]=10;
                            break;
                        }else{

                        }
					}else if(dd==10000){
						cout<<"到达一个未知 星球(3)";
                        cout<<endl<<"按1进入,按2不进入";
                        c=getch();
                        if(c=='1'){
                            xh=4;
                            dt[25][18]=11;
                            dt[25][10]=10;
                            dt[25][13]=10;
                            dt[25][20]=11;
                            dt[25][1]=10;
                            dt[25][2]=11;
                            break;
                        }else{

                        }
					}else if(dd==19000){
						cout<<"到达一个未知 星球(4)";
                        cout<<endl<<"按1进入,按2不进入";
                        c=getch();
                        if(c=='1'){
                            xh=5;
                            dt[25][18]=11;
                            dt[25][10]=10;
                            dt[25][13]=11;
                            dt[25][20]=11;
                            dt[25][2]=11;
                            break;
                        }else{

                        }
					}else if(dd==24000){
						cout<<"到达一个未知 星球(5)";
                        cout<<endl<<"按1进入,按2不进入";
                        c=getch();
                        if(c=='1'){
                            xh=6;
                            dt[25][18]=11;
                            dt[25][10]=10;
                            dt[25][13]=11;
                            dt[25][20]=12;
                            dt[25][2]=11;
                            dt[25][19]=11;
                            dt[25][11]=10;
                            dt[25][12]=12;
                            dt[25][21]=11;
                            dt[25][23]=12;
                            break;
                        }else{

                        }
					}else if(dd==30000){
						cout<<"到达一个未知 星球(6)";
                        cout<<endl<<"按1进入,按2不进入";
                        c=getch();
                        if(c=='1'){
                            xh=7;
                            dt[25][18]=11;
                            dt[25][10]=12;
                            dt[25][13]=11;
                            dt[25][20]=12;
                            dt[25][2]=11;
                            dt[25][19]=11;
                            dt[25][11]=11;
                            dt[25][12]=12;
                            dt[25][21]=11;
                            dt[25][23]=12;
                            break;
                        }else{

                        }
					}else if(dd>=60000){
						cout<<"到达地球!!!";
						return 0;
					}
					cout<<"飞行中..."<<endl;
					cout<<"火箭燃料数"<<jb;
					cout<<"  "<<"钱数"<<q;
					jb--;
					q+=2;
					dd++;
					Sleep(80);
				}
				cjb=0;
				dd=0;
				dt[23][6]=0;
				dt[22][6]=0;
				hj=0;
			}
			if(hj==2){
				cjb=jb;
				for(int i=1;i<=cjb;i++){
					system("cls");
					SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED |
                            FOREGROUND_GREEN |
                            FOREGROUND_BLUE |
                            FOREGROUND_INTENSITY);
                    if(dd==200){
                        cout<<"到达一个未知 星球(1)";
                        cout<<endl<<"按1进入,按2不进入";
                        c=getch();
                        if(c=='1'){
                            xh=2;
                            dt[25][18]=10;
                            dt[25][10]=10;
                            break;
                        }else{

                        }
					}else if(dd==1000){
						cout<<"到达一个未知 星球(2)";
                        cout<<endl<<"按1进入,按2不进入";
                        c=getch();
                        if(c=='1'){
                            xh=3;
                            dt[25][18]=10;
                            dt[25][10]=10;
                            dt[25][13]=10;
                            dt[25][20]=10;
                            dt[25][1]=10;
                            break;
                        }else{

                        }
					}else if(dd==10000){
						cout<<"到达一个未知 星球(3)";
                        cout<<endl<<"按1进入,按2不进入";
                        c=getch();
                        if(c=='1'){
                            xh=4;
                            dt[25][18]=11;
                            dt[25][10]=10;
                            dt[25][13]=10;
                            dt[25][20]=11;
                            dt[25][1]=10;
                            dt[25][2]=11;
                            break;
                        }else{

                        }
					}else if(dd==19000){
						cout<<"到达一个未知 星球(4)";
                        cout<<endl<<"按1进入,按2不进入";
                        c=getch();
                        if(c=='1'){
                            xh=5;
                            dt[25][18]=11;
                            dt[25][10]=10;
                            dt[25][13]=11;
                            dt[25][20]=11;
                            dt[25][2]=11;
                            break;
                        }else{

                        }
					}else if(dd==24000){
						cout<<"到达一个未知 星球(5)";
                        cout<<endl<<"按1进入,按2不进入";
                        c=getch();
                        if(c=='1'){
                            xh=6;
                            dt[25][18]=11;
                            dt[25][10]=10;
                            dt[25][13]=11;
                            dt[25][20]=12;
                            dt[25][2]=11;
                            dt[25][19]=11;
                            dt[25][11]=10;
                            dt[25][12]=12;
                            dt[25][21]=11;
                            dt[25][23]=12;
                            break;
                        }else{

                        }
					}else if(dd==30000){
						cout<<"到达一个未知 星球(6)";
                        cout<<endl<<"按1进入,按2不进入";
                        c=getch();
                        if(c=='1'){
                            xh=7;
                            dt[25][18]=11;
                            dt[25][10]=12;
                            dt[25][13]=11;
                            dt[25][20]=12;
                            dt[25][2]=11;
                            dt[25][19]=11;
                            dt[25][11]=11;
                            dt[25][12]=12;
                            dt[25][21]=11;
                            dt[25][23]=12;
                            break;
                        }else{

                        }
					}else if(dd>=60000){
						cout<<"到达地球!!!";
						return 0;
					}
					cout<<"飞行中..."<<endl;
					cout<<"火箭燃料数"<<jb;
					cout<<"  "<<"钱数"<<q;
					jb--;
					q+=3;
					dd+=2;
					Sleep(80);
				}
				cjb=0;
				dd=0;
				dt[23][6]=0;
				dt[22][6]=0;
				dt[23][5]=0;
				dt[23][7]=0;
				hj=0;
			}
			if(hj==3){
				cjb=jb;
				for(int i=1;i<=cjb;i++){
					system("cls");
					SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED |
                            FOREGROUND_GREEN |
                            FOREGROUND_BLUE |
                            FOREGROUND_INTENSITY);
					if(dd==200){
                        cout<<"到达一个未知 星球(1)";
                        cout<<endl<<"按1进入,按2不进入";
                        c=getch();
                        if(c=='1'){
                            xh=2;
                            dt[25][18]=10;
                            dt[25][10]=10;
                            break;
                        }else{

                        }
					}else if(dd==1000){
						cout<<"到达一个未知 星球(2)";
                        cout<<endl<<"按1进入,按2不进入";
                        c=getch();
                        if(c=='1'){
                            xh=3;
                            dt[25][18]=10;
                            dt[25][10]=10;
                            dt[25][13]=10;
                            dt[25][20]=10;
                            dt[25][1]=10;
                            break;
                        }else{

                        }
					}else if(dd==10000){
						cout<<"到达一个未知 星球(3)";
                        cout<<endl<<"按1进入,按2不进入";
                        c=getch();
                        if(c=='1'){
                            xh=4;
                            dt[25][18]=11;
                            dt[25][10]=10;
                            dt[25][13]=10;
                            dt[25][20]=11;
                            dt[25][1]=10;
                            dt[25][2]=11;
                            break;
                        }else{

                        }
					}else if(dd==19000){
						cout<<"到达一个未知 星球(4)";
                        cout<<endl<<"按1进入,按2不进入";
                        c=getch();
                        if(c=='1'){
                            xh=5;
                            dt[25][18]=11;
                            dt[25][10]=10;
                            dt[25][13]=11;
                            dt[25][20]=11;
                            dt[25][2]=11;
                            break;
                        }else{

                        }
					}else if(dd==24000){
						cout<<"到达一个未知 星球(5)";
                        cout<<endl<<"按1进入,按2不进入";
                        c=getch();
                        if(c=='1'){
                            xh=6;
                            dt[25][18]=11;
                            dt[25][10]=10;
                            dt[25][13]=11;
                            dt[25][20]=12;
                            dt[25][2]=11;
                            dt[25][19]=11;
                            dt[25][11]=10;
                            dt[25][12]=12;
                            dt[25][21]=11;
                            dt[25][23]=12;
                            break;
                        }else{

                        }
					}else if(dd==30000){
						cout<<"到达一个未知 星球(6)";
                        cout<<endl<<"按1进入,按2不进入";
                        c=getch();
                        if(c=='1'){
                            xh=7;
                            dt[25][18]=11;
                            dt[25][10]=12;
                            dt[25][13]=11;
                            dt[25][20]=12;
                            dt[25][2]=11;
                            dt[25][19]=11;
                            dt[25][11]=11;
                            dt[25][12]=12;
                            dt[25][21]=11;
                            dt[25][23]=12;
                            break;
                        }else{

                        }
					}else if(dd>=60000){
						cout<<"到达地球!!!";
						return 0;
					}
					cout<<"飞行中..."<<endl;
					cout<<"火箭燃料数"<<jb;
					cout<<"  "<<"钱数"<<q;
					jb--;
					q+=4;
					dd+=4;
					Sleep(80);
				}
				cjb=0;
				dd=0;
				dt[23][6]=0;
				dt[22][6]=0;
				dt[23][5]=0;
				dt[23][7]=0;
				hj=0;
			}
			if(hj==4){
				cjb=jb;
				for(int i=1;i<=cjb;i++){
					system("cls");
					SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED |
                            FOREGROUND_GREEN |
                            FOREGROUND_BLUE |
                            FOREGROUND_INTENSITY);
					if(dd+8>=200){
                        cout<<"到达一个未知 星球(1)";
                        cout<<endl<<"按1进入,按2不进入";
                        c=getch();
                        if(c=='1'){
                            xh=2;
                            dt[25][18]=10;
                            dt[25][10]=10;
                            break;
                        }else{

                        }
					}else if(dd==1000){
						cout<<"到达一个未知 星球(2)";
                        cout<<endl<<"按1进入,按2不进入";
                        c=getch();
                        if(c=='1'){
                            xh=3;
                            dt[25][18]=10;
                            dt[25][10]=10;
                            dt[25][13]=10;
                            dt[25][20]=10;
                            dt[25][1]=10;
                            break;
                        }else{

                        }
					}else if(dd==10000){
						cout<<"到达一个未知 星球(3)";
                        cout<<endl<<"按1进入,按2不进入";
                        c=getch();
                        if(c=='1'){
                            xh=4;
                            dt[25][18]=11;
                            dt[25][10]=10;
                            dt[25][13]=10;
                            dt[25][20]=11;
                            dt[25][1]=10;
                            dt[25][2]=11;
                            break;
                        }else{

                        }
					}else if(dd+8>=19000){
						cout<<"到达一个未知 星球(4)";
                        cout<<endl<<"按1进入,按2不进入";
                        c=getch();
                        if(c=='1'){
                            xh=5;
                            dt[25][18]=11;
                            dt[25][10]=10;
                            dt[25][13]=11;
                            dt[25][20]=11;
                            dt[25][2]=11;
                            break;
                        }else{

                        }
					}else if(dd==24000){
						cout<<"到达一个未知 星球(5)";
                        cout<<endl<<"按1进入,按2不进入";
                        c=getch();
                        if(c=='1'){
                            xh=6;
                            dt[25][18]=11;
                            dt[25][10]=10;
                            dt[25][13]=11;
                            dt[25][20]=12;
                            dt[25][2]=11;
                            dt[25][19]=11;
                            dt[25][11]=10;
                            dt[25][12]=12;
                            dt[25][21]=11;
                            dt[25][23]=12;
                            break;
                        }else{

                        }
					}else if(dd==30000){
						cout<<"到达一个未知 星球(6)";
                        cout<<endl<<"按1进入,按2不进入";
                        c=getch();
                        if(c=='1'){
                            xh=7;
                            dt[25][18]=11;
                            dt[25][10]=12;
                            dt[25][13]=11;
                            dt[25][20]=12;
                            dt[25][2]=11;
                            dt[25][19]=11;
                            dt[25][11]=11;
                            dt[25][12]=12;
                            dt[25][21]=11;
                            dt[25][23]=12;
                            break;
                        }else{

                        }
					}else if(dd>=60000){
						cout<<"到达地球!!!";
						return 0;
					}
					cout<<"飞行中..."<<endl;
					cout<<"火箭燃料数"<<jb;
					cout<<"  "<<"钱数"<<q;
					jb--;
					q+=6;
					dd+=8;
					Sleep(80);
				}
				cjb=0;
				dd=0;
				dt[21][6]=0;
				dt[23][6]=0;
				dt[22][6]=0;
				dt[23][5]=0;
				dt[23][7]=0;
				hj=0;
			}
			if(hj==5){
				cjb=jb;
				for(int i=1;i<=cjb;i++){
					system("cls");
					SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED |
                            FOREGROUND_GREEN |
                            FOREGROUND_BLUE |
                            FOREGROUND_INTENSITY);
					if(dd+16>=200){
                        cout<<"到达一个未知 星球(1)";
                        cout<<endl<<"按1进入,按2不进入";
                        c=getch();
                        if(c=='1'){
                            xh=2;
                            dt[25][18]=10;
                            dt[25][10]=10;
                            break;
                        }else{

                        }
					}else if(dd+16>=1000){
						cout<<"到达一个未知 星球(2)";
                        cout<<endl<<"按1进入,按2不进入";
                        c=getch();
                        if(c=='1'){
                            xh=3;
                            dt[25][18]=10;
                            dt[25][10]=10;
                            dt[25][13]=10;
                            dt[25][20]=10;
                            dt[25][1]=10;
                            break;
                        }else{

                        }
					}else if(dd+16>=10000){
						cout<<"到达一个未知 星球(3)";
                        cout<<endl<<"按1进入,按2不进入";
                        c=getch();
                        if(c=='1'){
                            xh=4;
                            dt[25][18]=11;
                            dt[25][10]=10;
                            dt[25][13]=10;
                            dt[25][20]=11;
                            dt[25][1]=10;
                            dt[25][2]=11;
                            break;
                        }else{

                        }
					}else if(dd+16>=19000){
						cout<<"到达一个未知 星球(4)";
                        cout<<endl<<"按1进入,按2不进入";
                        c=getch();
                        if(c=='1'){
                            xh=5;
                            dt[25][18]=11;
                            dt[25][10]=10;
                            dt[25][13]=11;
                            dt[25][20]=11;
                            dt[25][2]=11;
                            break;
                        }else{

                        }
					}else if(dd+16>=24000){
						cout<<"到达一个未知 星球(5)";
                        cout<<endl<<"按1进入,按2不进入";
                        c=getch();
                        if(c=='1'){
                            xh=6;
                            dt[25][18]=11;
                            dt[25][10]=10;
                            dt[25][13]=11;
                            dt[25][20]=12;
                            dt[25][2]=11;
                            dt[25][19]=11;
                            dt[25][11]=10;
                            dt[25][12]=12;
                            dt[25][21]=11;
                            dt[25][23]=12;
                            break;
                        }else{

                        }
					}else if(dd+16>=30000){
						cout<<"到达一个未知 星球(6)";
                        cout<<endl<<"按1进入,按2不进入";
                        c=getch();
                        if(c=='1'){
                            xh=7;
                            dt[25][18]=11;
                            dt[25][10]=12;
                            dt[25][13]=11;
                            dt[25][20]=12;
                            dt[25][2]=11;
                            dt[25][19]=11;
                            dt[25][11]=11;
                            dt[25][12]=12;
                            dt[25][21]=11;
                            dt[25][23]=12;
                            break;
                        }else{

                        }
					}else if(dd>=60000){
						cout<<"到达地球!!!";
						return 0;
					}
					cout<<"飞行中..."<<endl;
					cout<<"火箭燃料数"<<jb;
					cout<<"  "<<"钱数"<<q;
					jb--;
					q+=7;
					dd+=16;
					Sleep(80);
				}
				cjb=0;
				dd=0;
				dt[21][6]=0;
				dt[23][6]=0;
				dt[22][6]=0;
				dt[23][5]=0;
				dt[23][7]=0;
				hj=0;
			}
			if(hj==6){
				cjb=jb;
				for(int i=1;i<=cjb;i++){
					system("cls");
					SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED |
                            FOREGROUND_GREEN |
                            FOREGROUND_BLUE |
                            FOREGROUND_INTENSITY);
					if(dd==200){
                        cout<<"到达一个未知 星球(1)";
                        cout<<endl<<"按1进入,按2不进入";
                        c=getch();
                        if(c=='1'){
                            xh=2;
                            dt[25][18]=10;
                            dt[25][10]=10;
                            break;
                        }else{

                        }
					}else if(dd==1000){
						cout<<"到达一个未知 星球(2)";
                        cout<<endl<<"按1进入,按2不进入";
                        c=getch();
                        if(c=='1'){
                            xh=3;
                            dt[25][18]=10;
                            dt[25][10]=10;
                            dt[25][13]=10;
                            dt[25][20]=10;
                            dt[25][1]=10;
                            break;
                        }else{

                        }
					}else if(dd==10000){
						cout<<"到达一个未知 星球(3)";
                        cout<<endl<<"按1进入,按2不进入";
                        c=getch();
                        if(c=='1'){
                            xh=4;
                            dt[25][18]=11;
                            dt[25][10]=10;
                            dt[25][13]=10;
                            dt[25][20]=11;
                            dt[25][1]=10;
                            dt[25][2]=11;
                            break;
                        }else{

                        }
					}else if(dd+25>=19000){
						cout<<"到达一个未知 星球(4)";
                        cout<<endl<<"按1进入,按2不进入";
                        c=getch();
                        if(c=='1'){
                            xh=5;
                            dt[25][18]=11;
                            dt[25][10]=10;
                            dt[25][13]=11;
                            dt[25][20]=11;
                            dt[25][2]=11;
                            break;
                        }else{

                        }
					}else if(dd+25>=24000){
						cout<<"到达一个未知 星球(5)";
                        cout<<endl<<"按1进入,按2不进入";
                        c=getch();
                        if(c=='1'){
                            xh=6;
                            dt[25][18]=11;
                            dt[25][10]=10;
                            dt[25][13]=11;
                            dt[25][20]=12;
                            dt[25][2]=11;
                            dt[25][19]=11;
                            dt[25][11]=10;
                            dt[25][12]=12;
                            dt[25][21]=11;
                            dt[25][23]=12;
                            break;
                        }else{

                        }
					}else if(dd==30000){
						cout<<"到达一个未知 星球(6)";
                        cout<<endl<<"按1进入,按2不进入";
                        c=getch();
                        if(c=='1'){
                            xh=7;
                            dt[25][18]=11;
                            dt[25][10]=12;
                            dt[25][13]=11;
                            dt[25][20]=12;
                            dt[25][2]=11;
                            dt[25][19]=11;
                            dt[25][11]=11;
                            dt[25][12]=12;
                            dt[25][21]=11;
                            dt[25][23]=12;
                            break;
                        }else{

                        }
					}else if(dd>=60000){
						cout<<"到达地球!!!";
						return 0;
					}
					cout<<"飞行中..."<<endl;
					cout<<"火箭燃料数"<<jb;
					cout<<"  "<<"钱数"<<q;
					jb--;
					q+=8;
					dd+=25;
					Sleep(80);
				}
				cjb=0;
				dd=0;
				dt[21][6]=0;
				dt[23][6]=0;
				dt[22][6]=0;
				dt[23][5]=0;
				dt[23][7]=0;
				hj=0;
			}
			if(hj==7){
				cjb=jb;
				for(int i=1;i<=cjb;i++){
					system("cls");
					SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED |
                            FOREGROUND_GREEN |
                            FOREGROUND_BLUE |
                            FOREGROUND_INTENSITY);
					if(dd+42>=200){
                        cout<<"到达一个未知 星球(1)";
                        cout<<endl<<"按1进入,按2不进入";
                        c=getch();
                        if(c=='1'){
                            xh=2;
                            dt[25][18]=10;
                            dt[25][10]=10;
                            break;
                        }else{

                        }
					}else if(dd+42>=1000){
						cout<<"到达一个未知 星球(2)";
                        cout<<endl<<"按1进入,按2不进入";
                        c=getch();
                        if(c=='1'){
                            xh=3;
                            dt[25][18]=10;
                            dt[25][10]=10;
                            dt[25][13]=10;
                            dt[25][20]=10;
                            dt[25][1]=10;
                            break;
                        }else{

                        }
					}else if(dd+42>=10000){
						cout<<"到达一个未知 星球(3)";
                        cout<<endl<<"按1进入,按2不进入";
                        c=getch();
                        if(c=='1'){
                            xh=4;
                            dt[25][18]=11;
                            dt[25][10]=10;
                            dt[25][13]=10;
                            dt[25][20]=11;
                            dt[25][1]=10;
                            dt[25][2]=11;
                            break;
                        }else{

                        }
					}else if(dd+42>=19000){
						cout<<"到达一个未知 星球(4)";
                        cout<<endl<<"按1进入,按2不进入";
                        c=getch();
                        if(c=='1'){
                            xh=5;
                            dt[25][18]=11;
                            dt[25][10]=10;
                            dt[25][13]=11;
                            dt[25][20]=11;
                            dt[25][2]=11;
                            break;
                        }else{

                        }
					}else if(dd+42>=24000){
						cout<<"到达一个未知 星球(5)";
                        cout<<endl<<"按1进入,按2不进入";
                        c=getch();
                        if(c=='1'){
                            xh=6;
                            dt[25][18]=11;
                            dt[25][10]=10;
                            dt[25][13]=11;
                            dt[25][20]=12;
                            dt[25][2]=11;
                            dt[25][19]=11;
                            dt[25][11]=10;
                            dt[25][12]=12;
                            dt[25][21]=11;
                            dt[25][23]=12;
                            break;
                        }else{

                        }
					}else if(dd+42>=30000){
						cout<<"到达一个未知 星球(6)";
                        cout<<endl<<"按1进入,按2不进入";
                        c=getch();
                        if(c=='1'){
                            xh=7;
                            dt[25][18]=11;
                            dt[25][10]=12;
                            dt[25][13]=11;
                            dt[25][20]=12;
                            dt[25][2]=11;
                            dt[25][19]=11;
                            dt[25][11]=11;
                            dt[25][12]=12;
                            dt[25][21]=11;
                            dt[25][23]=12;
                            break;
                        }else{

                        }
					}else if(dd>=60000){
						cout<<"到达地球!!!";
						return 0;
					}
					cout<<"飞行中..."<<endl;
					cout<<"火箭燃料数"<<jb;
					cout<<"  "<<"钱数"<<q;
					jb--;
					q+=10;
					dd+=42;
					Sleep(80);
				}
				cjb=0;
				dd=0;
				dt[21][6]=0;
				dt[23][6]=0;
				dt[22][6]=0;
				dt[22][5]=0;
				dt[22][7]=0;
				dt[23][5]=0;
				dt[23][7]=0;
				hj=0;
			}
			if(hj==8){
				cjb=jb;
				for(int i=1;i<=cjb;i++){
					system("cls");
					SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED |
                            FOREGROUND_GREEN |
                            FOREGROUND_BLUE |
                            FOREGROUND_INTENSITY);
					if(dd+70>=200){
                        cout<<"到达一个未知 星球(1)";
                        cout<<endl<<"按1进入,按2不进入";
                        c=getch();
                        if(c=='1'){
                            xh=2;
                            dt[25][18]=10;
                            dt[25][10]=10;
                            break;
                        }else{

                        }
					}else if(dd+70>=1000){
						cout<<"到达一个未知 星球(2)";
                        cout<<endl<<"按1进入,按2不进入";
                        c=getch();
                        if(c=='1'){
                            xh=3;
                            dt[25][18]=10;
                            dt[25][10]=10;
                            dt[25][13]=10;
                            dt[25][20]=10;
                            dt[25][1]=10;
                            break;
                        }else{

                        }
					}else if(dd+70>=10000){
						cout<<"到达一个未知 星球(3)";
                        cout<<endl<<"按1进入,按2不进入";
                        c=getch();
                        if(c=='1'){
                            xh=4;
                            dt[25][18]=11;
                            dt[25][10]=10;
                            dt[25][13]=10;
                            dt[25][20]=11;
                            dt[25][1]=10;
                            dt[25][2]=11;
                            break;
                        }else{

                        }
					}else if(dd+70>=19000){
						cout<<"到达一个未知 星球(4)";
                        cout<<endl<<"按1进入,按2不进入";
                        c=getch();
                        if(c=='1'){
                            xh=5;
                            dt[25][18]=11;
                            dt[25][10]=10;
                            dt[25][13]=11;
                            dt[25][20]=11;
                            dt[25][2]=11;
                            break;
                        }else{

                        }
					}else if(dd+70>=24000){
						cout<<"到达一个未知 星球(5)";
                        cout<<endl<<"按1进入,按2不进入";
                        c=getch();
                        if(c=='1'){
                            xh=6;
                            dt[25][18]=11;
                            dt[25][10]=10;
                            dt[25][13]=11;
                            dt[25][20]=12;
                            dt[25][2]=11;
                            dt[25][19]=11;
                            dt[25][11]=10;
                            dt[25][12]=12;
                            dt[25][21]=11;
                            dt[25][23]=12;
                            break;
                        }else{

                        }
					}else if(dd+70>=30000){
						cout<<"到达一个未知 星球(6)";
                        cout<<endl<<"按1进入,按2不进入";
                        c=getch();
                        if(c=='1'){
                            xh=7;
                            dt[25][18]=11;
                            dt[25][10]=12;
                            dt[25][13]=11;
                            dt[25][20]=12;
                            dt[25][2]=11;
                            dt[25][19]=11;
                            dt[25][11]=11;
                            dt[25][12]=12;
                            dt[25][21]=11;
                            dt[25][23]=12;
                            break;
                        }else{

                        }
					}else if(dd>=60000){
						cout<<"到达地球!!!";
						return 0;
					}
					cout<<"飞行中..."<<endl;
					cout<<"火箭燃料数"<<jb;
					cout<<"  "<<"钱数"<<q;
					jb--;
					q+=12;
					dd+=70;
					Sleep(80);
				}
				cjb=0;
				dd=0;
				dt[20][6]=0;
				dt[21][6]=0;
				dt[23][6]=0;
				dt[22][6]=0;
				dt[22][5]=0;
				dt[22][7]=0;
				dt[23][5]=0;
				dt[23][7]=0;
				hj=0;
			}
			if(hj==9){
				cjb=jb;
				for(int i=1;i<=cjb;i++){
					system("cls");
					SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED |
                            FOREGROUND_GREEN |
                            FOREGROUND_BLUE |
                            FOREGROUND_INTENSITY);
					if(dd+80>=200){
                        cout<<"到达一个未知 星球(1)";
                        cout<<endl<<"按1进入,按2不进入";
                        c=getch();
                        if(c=='1'){
                            xh=2;
                            dt[25][18]=10;
                            dt[25][10]=10;
                            break;
                        }else{

                        }
					}else if(dd+80>=1000){
						cout<<"到达一个未知 星球(2)";
                        cout<<endl<<"按1进入,按2不进入";
                        c=getch();
                        if(c=='1'){
                            xh=3;
                            dt[25][18]=10;
                            dt[25][10]=10;
                            dt[25][13]=10;
                            dt[25][20]=10;
                            dt[25][1]=10;
                            break;
                        }else{

                        }
					}else if(dd+80>=10000){
						cout<<"到达一个未知 星球(3)";
                        cout<<endl<<"按1进入,按2不进入";
                        c=getch();
                        if(c=='1'){
                            xh=4;
                            dt[25][18]=11;
                            dt[25][10]=10;
                            dt[25][13]=10;
                            dt[25][20]=11;
                            dt[25][1]=10;
                            dt[25][2]=11;
                            break;
                        }else{

                        }
					}else if(dd+80>=19000){
						cout<<"到达一个未知 星球(4)";
                        cout<<endl<<"按1进入,按2不进入";
                        c=getch();
                        if(c=='1'){
                            xh=5;
                            dt[25][18]=11;
                            dt[25][10]=10;
                            dt[25][13]=11;
                            dt[25][20]=11;
                            dt[25][2]=11;
                            break;
                        }else{

                        }
					}else if(dd+80>=24000){
						cout<<"到达一个未知 星球(5)";
                        cout<<endl<<"按1进入,按2不进入";
                        c=getch();
                        if(c=='1'){
                            xh=6;
                            dt[25][18]=11;
                            dt[25][10]=10;
                            dt[25][13]=11;
                            dt[25][20]=12;
                            dt[25][2]=11;
                            dt[25][19]=11;
                            dt[25][11]=10;
                            dt[25][12]=12;
                            dt[25][21]=11;
                            dt[25][23]=12;
                            break;
                        }else{

                        }
					}else if(dd+80>=30000){
						cout<<"到达一个未知 星球(6)";
                        cout<<endl<<"按1进入,按2不进入";
                        c=getch();
                        if(c=='1'){
                            xh=7;
                            dt[25][18]=11;
                            dt[25][10]=12;
                            dt[25][13]=11;
                            dt[25][20]=12;
                            dt[25][2]=11;
                            dt[25][19]=11;
                            dt[25][11]=11;
                            dt[25][12]=12;
                            dt[25][21]=11;
                            dt[25][23]=12;
                            break;
                        }else{

                        }
					}else if(dd>=60000){
						cout<<"到达地球!!!";
						return 0;
					}
					cout<<"飞行中..."<<endl;
					cout<<"火箭燃料数"<<jb;
					cout<<"  "<<"钱数"<<q;
					jb--;
					q+=14;
					dd+=80;
					Sleep(80);
				}
				cjb=0;
				dd=0;
				dt[20][6]=0;
				dt[21][6]=0;
				dt[23][6]=0;
				dt[22][6]=0;
				dt[22][5]=0;
				dt[22][7]=0;
				dt[23][5]=0;
				dt[23][7]=0;
				hj=0;
			}
			if(hj==10){
				cjb=jb;
				for(int i=1;i<=cjb;i++){
					system("cls");
					SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED |
                            FOREGROUND_GREEN |
                            FOREGROUND_BLUE |
                            FOREGROUND_INTENSITY);
					if(dd+90>=200){
                        cout<<"到达一个未知 星球(1)";
                        cout<<endl<<"按1进入,按2不进入";
                        c=getch();
                        if(c=='1'){
                            xh=2;
                            dt[25][18]=10;
                            dt[25][10]=10;
                            break;
                        }else{

                        }
					}else if(dd+90>=1000){
						cout<<"到达一个未知 星球(2)";
                        cout<<endl<<"按1进入,按2不进入";
                        c=getch();
                        if(c=='1'){
                            xh=3;
                            dt[25][18]=10;
                            dt[25][10]=10;
                            dt[25][13]=10;
                            dt[25][20]=10;
                            dt[25][1]=10;
                            break;
                        }else{

                        }
					}else if(dd+90>=10000){
						cout<<"到达一个未知 星球(3)";
                        cout<<endl<<"按1进入,按2不进入";
                        c=getch();
                        if(c=='1'){
                            xh=4;
                            dt[25][18]=11;
                            dt[25][10]=10;
                            dt[25][13]=10;
                            dt[25][20]=11;
                            dt[25][1]=10;
                            dt[25][2]=11;
                            break;
                        }else{

                        }
					}else if(dd+90>=19000){
						cout<<"到达一个未知 星球(4)";
                        cout<<endl<<"按1进入,按2不进入";
                        c=getch();
                        if(c=='1'){
                            xh=5;
                            dt[25][18]=11;
                            dt[25][10]=10;
                            dt[25][13]=11;
                            dt[25][20]=11;
                            dt[25][2]=11;
                            break;
                        }else{

                        }
					}else if(dd+90>=24000){
						cout<<"到达一个未知 星球(5)";
                        cout<<endl<<"按1进入,按2不进入";
                        c=getch();
                        if(c=='1'){
                            xh=6;
                            dt[25][18]=11;
                            dt[25][10]=10;
                            dt[25][13]=11;
                            dt[25][20]=12;
                            dt[25][2]=11;
                            dt[25][19]=11;
                            dt[25][11]=10;
                            dt[25][12]=12;
                            dt[25][21]=11;
                            dt[25][23]=12;
                            break;
                        }else{

                        }
					}else if(dd+90>=30000){
						cout<<"到达一个未知 星球(6)";
                        cout<<endl<<"按1进入,按2不进入";
                        c=getch();
                        if(c=='1'){
                            xh=7;
                            dt[25][18]=11;
                            dt[25][10]=12;
                            dt[25][13]=11;
                            dt[25][20]=12;
                            dt[25][2]=11;
                            dt[25][19]=11;
                            dt[25][11]=11;
                            dt[25][12]=12;
                            dt[25][21]=11;
                            dt[25][23]=12;
                            break;
                        }else{

                        }
					}else if(dd>=60000){
						cout<<"到达地球!!!";
						return 0;
					}
					cout<<"飞行中..."<<endl;
					cout<<"火箭燃料数"<<jb;
					cout<<"  "<<"钱数"<<q;
					jb--;
					q+=19;
					dd+=90;
					Sleep(80);
				}
				cjb=0;
				dd=0;
				dt[18][6]=0;
				dt[19][6]=0;
				dt[20][6]=0;
				dt[21][6]=0;
				dt[21][5]=0;
				dt[21][7]=0;
				dt[23][6]=0;
				dt[22][5]=0;
				dt[22][6]=0;
				dt[22][7]=0;
				dt[23][5]=0;
				dt[23][7]=0;
				hj=0;
			}
		}
		if(c=='c'){
            system("cls");
			while(1){
				if(ss==1){
					system("cls");
					SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED |
                            FOREGROUND_GREEN |
                            FOREGROUND_BLUE |
                            FOREGROUND_INTENSITY);
					printf ("      新手稿子 ★   ");
					cout<<"钱数"<<q;
					cout<<endl;
					printf ("_____");
					cout<<endl;
					printf ("      L   ");
					cout<<endl;
					printf ("        ----|====|");
					cout<<endl;
					printf ("1下一个 0上一个");
					cout<<endl;
					printf ("      0$     6=买   1个/次");
					cout<<endl;
					printf ("3=退出");
				}
				if(ss==2){
					system("cls");
					SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED |
                            FOREGROUND_GREEN |
                            FOREGROUND_BLUE |
                            FOREGROUND_INTENSITY);
					printf ("      普通稿子 ★   ");
					cout<<"钱数"<<q;
					cout<<endl;
					printf ("____+");
					cout<<endl;
					printf ("      L   ");
					cout<<endl;
					printf ("        +===|====|");
					cout<<endl;
					printf ("1下一个 0上一个");
					cout<<endl;
					printf ("      120$     6=买   2个/次 ");
					cout<<endl;
					printf ("3=退出");
				}
				if(ss==3){
					system("cls");
					SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED |
                            FOREGROUND_GREEN |
                            FOREGROUND_BLUE |
                            FOREGROUND_INTENSITY);
					printf ("      中级稿子 ★★   ");
					cout<<"钱数"<<q;
					cout<<endl;
					printf ("=-__+");
					cout<<endl;
					printf ("      R   ");
					cout<<endl;
					printf ("        +===|====|");
					cout<<endl;
					printf ("1下一个 0上一个");
					cout<<endl;
					printf ("      660$     6=买   3个/次");
					cout<<endl;
					printf ("3=退出");
				}
				if(ss==4){
					system("cls");
					SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED |
                            FOREGROUND_GREEN |
                            FOREGROUND_BLUE |
                            FOREGROUND_INTENSITY);
					printf ("      高级稿子 ★★★   ");
					cout<<"钱数"<<q;
					cout<<endl;
					printf ("=----+");
					cout<<endl;
					printf ("      	R   ");
					cout<<endl;
					printf ("        +===|EEEE|");
					cout<<endl;
					printf ("1下一个 0上一个");
					cout<<endl;
					printf ("      990$     6=买   4个/次   次页为最后一面");
					cout<<endl;
					printf ("3=退出");
				}
				c=getch();
				if(c=='1'){
					ss++;
				}
				if(c=='0'){
					ss--;
				}
				if(ss==5){
                    ss=1;
				}
				if(ss==0){
                    ss=4;
				}
				if(c=='3'){
					ss=1;
					break;
				}
				if(ss==1&&c=='6'){
					cj=1;
					break;
				}
				if(ss==2&&c=='6'&&q>=20){
					cj=2;
					q-=120;
					break;
				}
				if(ss==3&&c=='6'&&q>=30){
					cj=3;
					q-=660;
					break;
				}
				if(ss==4&&c=='6'&&q>=40){
					cj=4;
					q-=990;
					break;
				}
			}
		}
		if(c=='m'){
		    system("cls");
			while(1){
				if(ss==1){
					system("cls");
					SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED |
                            FOREGROUND_GREEN |
                            FOREGROUND_BLUE |
                            FOREGROUND_INTENSITY);
					printf ("      新手火箭 ★   ");
					cout<<"钱数"<<q;
					cout<<endl;
					SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED);
					printf ("           A       ");
					cout<<endl;
					SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED |
                            FOREGROUND_GREEN |
                            FOREGROUND_BLUE |
                            FOREGROUND_INTENSITY);
					printf ("           H       ");
					cout<<endl;
					SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED |
                            FOREGROUND_GREEN |
                            FOREGROUND_BLUE |
                            FOREGROUND_INTENSITY);
					printf ("      0$     6=买   ");
					cout<<endl;
					printf ("1下一个 0上一个");
					cout<<endl;
					printf ("警告:请在上一个火箭发射完之后再买此火箭");
					cout<<endl;
					printf ("3=退出");
				}
				if(ss==2){
					system("cls");
					SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED |
                            FOREGROUND_GREEN |
                            FOREGROUND_BLUE |
                            FOREGROUND_INTENSITY);
					printf ("      简易火箭 ★   ");
					cout<<"钱数"<<q;
					cout<<endl;
					SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED);
					printf ("            A       ");
					cout<<endl;
					SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED);
					printf ("           A");
					SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED |
                            FOREGROUND_GREEN |
                            FOREGROUND_BLUE |
                            FOREGROUND_INTENSITY);
					printf ("H");
					SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED);
					printf ("A    ");
					cout<<endl;
					SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED |
                            FOREGROUND_GREEN |
                            FOREGROUND_BLUE |
                            FOREGROUND_INTENSITY);
					printf ("      50$     6=买  ");
					cout<<endl;
					printf ("1下一个 0上一个");
					cout<<endl;
					printf ("警告:请在上一个火箭发射完之后再买此火箭");
					cout<<endl;
					printf ("3=退出");
				}
				if(ss==3){
					system("cls");
					SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED |
                            FOREGROUND_GREEN |
                            FOREGROUND_BLUE |
                            FOREGROUND_INTENSITY);
					printf ("      普通火箭 ★★ ");
					cout<<"钱数"<<q;
					cout<<endl;
					SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED);
					printf ("           A       ");
					cout<<endl;
					SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED |
                            FOREGROUND_GREEN |
                            FOREGROUND_BLUE |
                            FOREGROUND_INTENSITY);
					printf ("          HHH     ");
					cout<<endl;
					printf ("1下一个 0上一个");
					cout<<endl;
					printf ("      150$     6=买 ");
					cout<<endl;
					printf ("警告:请在上一个火箭发射完之后再买此火箭");
					cout<<endl;
					printf ("3=退出");
				}
				if(ss==4){
					system("cls");
					SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED |
                            FOREGROUND_GREEN |
                            FOREGROUND_BLUE |
                            FOREGROUND_INTENSITY);
					printf ("       开天号  ★★ ");
					cout<<"钱数"<<q;
					cout<<endl;
					SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED);
					printf ("           A       ");
					cout<<endl;
					SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED |
                            FOREGROUND_GREEN |
                            FOREGROUND_BLUE |
                            FOREGROUND_INTENSITY);
					printf ("           H       ");
					cout<<endl;
					SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED);
					printf ("          A");
					SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED |
                            FOREGROUND_GREEN |
                            FOREGROUND_BLUE |
                            FOREGROUND_INTENSITY);
					printf ("H");
					SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED);
					printf ("A");
					SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED |
                            FOREGROUND_GREEN |
                            FOREGROUND_BLUE |
                            FOREGROUND_INTENSITY);
					printf ("      250$     6=买 ");
					cout<<endl;
					printf ("1下一个 0上一个");
					cout<<endl;
					printf ("警告:请在上一个火箭发射完之后再买此火箭");
					cout<<endl;
					printf ("3=退出");
				}
				if(ss==5){
					system("cls");
					SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED |
                            FOREGROUND_GREEN |
                            FOREGROUND_BLUE |
                            FOREGROUND_INTENSITY);
					printf ("       开天号(升级版)★★★");
					cout<<"钱数"<<q;
					cout<<endl;
					SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED);
					printf ("           A       ");
					cout<<endl;
					printf ("           A       ");
					cout<<endl;
					printf ("          A");
					SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED |
                            FOREGROUND_GREEN |
                            FOREGROUND_BLUE |
                            FOREGROUND_INTENSITY);
                    printf ("H");
                    SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED);
                	printf ("A");

						SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED |
                            FOREGROUND_GREEN |
                            FOREGROUND_BLUE |
                            FOREGROUND_INTENSITY);
					cout<<endl;
					printf ("      300$     6=买 ");
					cout<<endl;
					printf ("1下一个 0上一个");
					cout<<endl;
					printf ("警告:请在上一个火箭发射完之后再买此火箭");
					cout<<endl;
					printf ("3=退出");
				}
				if(ss==6){
					system("cls");
					SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED |
                            FOREGROUND_GREEN |
                            FOREGROUND_BLUE |
                            FOREGROUND_INTENSITY);
					printf ("       银河号★★★");
					cout<<"钱数"<<q;
					SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED);
					cout<<endl;
					printf ("            A       ");
					cout<<endl;
					printf ("            A       ");
					cout<<endl;
					SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED |
                            FOREGROUND_GREEN |
                            FOREGROUND_BLUE |
                            FOREGROUND_INTENSITY);
					printf ("           HHH    ");
					cout<<endl;
					printf ("      400$     6=买 ");
					cout<<endl;
					printf ("1下一个 0上一个");
					cout<<endl;
					printf ("警告:请在上一个火箭发射完之后再买此火箭");
					cout<<endl;
					printf ("3=退出");
				}
				if(ss==7){
					system("cls");
					SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED |
                            FOREGROUND_GREEN |
                            FOREGROUND_BLUE |
                            FOREGROUND_INTENSITY);
					printf ("    银河号(升级版)★★★★");
					cout<<"钱数"<<q;
					cout<<endl;
					SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED);
					printf ("            A       ");
					cout<<endl;
					printf ("           AAA      ");
					cout<<endl;
					SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED |
                            FOREGROUND_GREEN |
                            FOREGROUND_BLUE |
                            FOREGROUND_INTENSITY);
					printf ("           HHH   ");
					cout<<endl;
					printf ("      550$     6=买 ");
					cout<<endl;
					printf ("1下一个 0上一个");
					cout<<endl;
					printf ("警告:请在上一个火箭发射完之后再买此火箭");
					cout<<endl;
					printf ("3=退出");
				}
				if(ss==8){
					system("cls");
					SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED |
                            FOREGROUND_GREEN |
                            FOREGROUND_BLUE |
                            FOREGROUND_INTENSITY);
					printf ("         宙斯号 ★★★★");
					cout<<"钱数"<<q;
					SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED);
					cout<<endl;
					printf ("            A       ");
					cout<<endl;
					SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED |
                            FOREGROUND_GREEN |
                            FOREGROUND_BLUE |
                            FOREGROUND_INTENSITY);
					printf ("            H      ");
					cout<<endl;
					SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED);
					printf ("           A");
					SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED |
                            FOREGROUND_GREEN |
                            FOREGROUND_BLUE |
                            FOREGROUND_INTENSITY);
					printf ("H");
					SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED);
					printf ("A");
					SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED |
                            FOREGROUND_GREEN |
                            FOREGROUND_BLUE |
                            FOREGROUND_INTENSITY);
                    cout<<endl;
					printf ("           HHH    ");
					cout<<endl;
					printf ("      550$     6=买 ");
					cout<<endl;
					printf ("1下一个 0上一个");
					cout<<endl;
					printf ("警告:请在上一个火箭发射完之后再买此火箭");
					cout<<endl;
					printf ("3=退出");
				}
				if(ss==9){
					system("cls");
					SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED |
                            FOREGROUND_GREEN |
                            FOREGROUND_BLUE |
                            FOREGROUND_INTENSITY);
					printf ("         宙斯号(升级版) ★★★★");
					cout<<"钱数"<<q;
					cout<<endl;
					SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED);
					printf ("            A       ");
					cout<<endl;
					SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED |
                            FOREGROUND_GREEN |
                            FOREGROUND_BLUE |
                            FOREGROUND_INTENSITY);
					printf ("            H     ");
					cout<<endl;
					SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED);
					printf ("           AAA    ");
					cout<<endl;
					SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED |
                            FOREGROUND_GREEN |
                            FOREGROUND_BLUE |
                            FOREGROUND_INTENSITY);
					printf ("           HHH    ");
					cout<<endl;
					printf ("      600$     6=买 ");
					cout<<endl;
					printf ("1下一个 0上一个");
					cout<<endl;
					printf ("警告:请在上一个火箭发射完之后再买此火箭");
					cout<<endl;
					printf ("3=退出");
				}
				if(ss==10){
					system("cls");
					SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED |
                            FOREGROUND_GREEN |
                            FOREGROUND_BLUE |
                            FOREGROUND_INTENSITY);
					printf ("         创世神号 ★★★★★");
					cout<<"钱数"<<q;
					cout<<endl;
					SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED);
					printf ("            A       ");
					cout<<endl;
					SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED |
                            FOREGROUND_GREEN |
                            FOREGROUND_BLUE |
                            FOREGROUND_INTENSITY);
					printf ("            H      ");
					cout<<endl;
					printf ("            H      ");
					SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED);
					cout<<endl;
					printf ("           AAA    ");
					SetConsoleTextAttribute(hOut,
                            FOREGROUND_RED |
                            FOREGROUND_GREEN |
                            FOREGROUND_BLUE |
                            FOREGROUND_INTENSITY);
					cout<<endl;
					printf ("           HHH   ");
					cout<<endl;
					printf ("           HHH    ");
					cout<<endl;
					printf ("      900$     6=买    次页为最后一面");
					cout<<endl;
					printf ("1下一个 0上一个");
					cout<<endl;
					printf ("警告:请在上一个火箭发射完之后再买此火箭");
					cout<<endl;
					printf ("3=退出");
				}
				c=getch();
				if(c=='1'&&ss!=10){
					ss++;
				}else if(c=='1'&&ss==10){
					ss=1;
				}else if(c=='0'&&ss==1){
					ss=10;
				}else if(c=='0'&&ss!=1){
					ss--;
				}else if(c=='0'){
					ss--;
				}else if(c=='3'){
					ss=1;
					break;
				}
				if(c=='6'&&ss==1){
					dt[23][6]=4;
					dt[22][6]=5;
					hj=1;
					break;
				}
				if(c=='6'&&ss==2&&q>=50){
					dt[23][6]=4;
					dt[22][6]=5;
					dt[23][5]=5;
					dt[23][7]=5;
					q-=50;
					hj=2;
					break;
				}
				if(c=='6'&&ss==3&&q>=150){
					dt[23][6]=4;
					dt[22][6]=5;
					dt[23][5]=4;
					dt[23][7]=4;
					q-=150;
					hj=3;
					break;
				}
				if(c=='6'&&ss==4&&q>=250){
					dt[21][6]=5;
					dt[23][6]=4;
					dt[22][6]=4;
					dt[23][5]=5;
					dt[23][7]=5;
					q-=250;
					hj=4;
					break;
				}
				if(c=='6'&&ss==5&&q>=300){
					dt[21][6]=5;
					dt[23][6]=4;
					dt[22][6]=5;
					dt[23][5]=5;
					dt[23][7]=5;
					q-=300;
					hj=5;
					break;
				}
				if(c=='6'&&ss==6&&q>=400){
					dt[21][6]=5;
					dt[23][6]=4;
					dt[22][6]=5;
					dt[23][5]=4;
					dt[23][7]=4;
					q-=400;
					hj=6;
					break;
				}
				if(c=='6'&&ss==7&&q>=550){
					dt[21][6]=5;
					dt[23][6]=4;
					dt[22][6]=5;
					dt[22][5]=5;
					dt[22][7]=5;
					dt[23][5]=4;
					dt[23][7]=4;
					q-=550;
					hj=7;
					break;
				}
				if(c=='6'&&ss==8&&q>=600){
					dt[20][6]=5;
					dt[21][6]=4;
					dt[23][6]=4;
					dt[22][6]=4;
					dt[22][5]=5;
					dt[22][7]=5;
					dt[23][5]=4;
					dt[23][7]=4;
					q-=600;
					hj=8;
					break;
				}
				if(c=='6'&&ss==9&&q>=700){
					dt[20][6]=5;
					dt[21][6]=4;
					dt[23][6]=4;
					dt[22][6]=5;
					dt[22][5]=5;
					dt[22][7]=5;
					dt[23][5]=4;
					dt[23][7]=4;
					q-=700;
					hj=9;
					break;
				}
				if(c=='6'&&ss==10&&q>=900){
					dt[18][6]=5;
					dt[19][6]=4;
					dt[20][6]=4;
					dt[21][6]=4;
					dt[21][5]=5;
					dt[21][7]=5;
					dt[23][6]=4;
					dt[22][6]=4;
					dt[22][5]=4;
					dt[22][7]=4;
					dt[23][5]=4;
					dt[23][7]=4;
					q-=900;
					hj=10;
					break;
				}
			}
		}
	}
	return 0;
}

 

 

下面是介绍

a向左走,d向右走

挖燃料的时候就在有这个: 〓   的地方跑一跑

按f可将背包燃料放入火箭

按s可飞行(火箭有燃料的时候)

按m可买火箭

按c可买镐子

买东西的时候按1下一页,按0上一页

发射火箭可以赚钱,燃料越多钱越多,火箭等级越高钱更多

跟行了颜色,发现中途可能会遇到星球

星球上会有一些福利

后续我会发一些讲解视频

今天晚

就不发了

望沙宸安评论(望沙宸,我是你的忠粉)

高子骞在2024-03-07 18:07:16追加了内容

走到燃料上方,按x获得燃料

高子骞在2024-03-07 19:20:11追加了内容

file:///C:/Users/%E9%AB%98%E5%AD%90%E9%AA%9E/Desktop/%E7%81%AB%E7%AE%AD%E6%A8%A1%E6%8B%9F%E5%99%A8%20%201.5.2.zip

高子骞在2024-03-08 18:07:44追加了内容

好不容易写的代码就这几个评论?大家看过的写个评论吧!

高子骞在2024-03-08 18:12:58追加了内容

记得点赞收藏加关注


0
已采纳
陆骏泽
陆骏泽
新手光能
新手光能

帮你@了

@沙宸安 

楼主是你的忠粉

希望你能评论

1
王海成
王海成
初级天翼
初级天翼

???你代码全写在主函数里,维护不难吗?

0
0
0
我要回答