1
已解决
高子骞
高级守护
高级守护
上一版本:
火箭模拟器1.5.2大功告成,巨型改变 - 酷町问答 | 酷町堂旗下少儿编程社区 (codingtang.com)
话不多说,先上代码
#include<bits/stdc++.h>
#include <iostream>
#include <fstream>
#include <cstdlib>
#include <iomanip>
#include <time.h>
#include <windows.h>
#include <pthread.h>
#include<stdio.h>
#include <conio.h>
#include<synchapi.h>
#include <vector>
#include<cstring>
#include <map>
#include <cwchar>
using namespace std;
string s="现在是2123年2月14日,你乘坐着旅行者23号火箭去麦兹星执行任务,但飞行过程中,火箭被一个陨石击中,你幸运的活了下来,不过火箭失控,撞上了一个未知星球,你现在的任务就是:收集燃料,发射火箭,重返地球。";
string s1=" 1-进入引入片 ",s2=" 2-开始游戏 ",zjxs=" 3-作者 ",czsm="4-操作说明";
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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8},//4
};
void rl(){//燃料显示
dt[25][23]=90;
dt[25][17]=90;
dt[25][14]=90;
dt[25][25]=90;
dt[25][24]=90;
dt[25][2]=90;
dt[25][1]=90;
dt[25][3]=90;
dt[25][15]=90;
dt[25][24]=90;
}
void color(int corcorcor){
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),corcorcor);
}
long long b,jb,z1=24,z2=15,cj=1,bj=100,hj=1,dd,cjb,ss=1,cs,q;
int ty,xh=1;
char c;
void rdxt(){
if(dt[z1+1][z2]==0){
Sleep(70);
dt[z1][z2]=0;
dt[z1+1][z2]=6;
ty=0;
}
if(c=='a'&&z2!=0){
dt[z1][z2]=0;
z2--;
dt[z1][z2]=6;
ty=2;
}
if(c=='d'&&z2!=25){
dt[z1][z2]=0;
z2++;
dt[z1][z2]=6;
ty=1;
}
}
HANDLE hOut;
int main(){
hOut = GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleTitle("火箭模拟器 1 . 5 . 3");
system("color 0F");
while(1){
for(int i=0;i<=29;i++){
for(int j=0;j<=45;j++){
if(dt2[i][j]==0){
color(0);
printf (" ");
}
if(dt2[i][j]==1){
color(119);
printf (" ");
}
if(dt2[i][j]==2){
color(0);
printf (" ");
color(119);
printf (" ");
}
if(dt2[i][j]==3){
color(119);
printf (" ");
color(0);
printf (" ");
}
if(dt2[i][j]==9){
color(1);
cout<<"江"<<" ";
color(2);
cout<<"湖"<<" ";
color(3);
cout<<"工"<<" ";
color(4);
cout<<"作"<<" ";
color(5);
cout<<"室";
}
if(dt2[i][j]==8){
color(112);
cout<<s1;
}
if(dt2[i][j]==7){
color(112);
cout<<s2;
}
if(dt2[i][j]==6){
color(112);
cout<<zjxs;
}
if(dt2[i][j]==5){
color(112);
cout<<czsm;
}
}
cout<<endl;
}
c=getch();
if(c=='1'){
system("cls");
color(15);
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 if(c=='3'){
system("cls");
color(15);
cout<<"江湖工作室出品 "<<endl;
cout<<"感谢以下几位同学: "<<endl;
cout<<" 沙宸安 路子轩(不在酷丁编程) 王海成 陆骏泽"<<endl;
cout<<"按任意数字返回";
c=getch();
}else if(c=='4'){
system("cls");
color(15);
cout<<"a向左走,d向右走"<<endl;
cout<<"走到燃料上方,按x获得燃料"<<endl;
cout<<"按f可将背包燃料放入火箭"<<endl;
cout<<"按s可飞行(火箭有燃料的时候)"<<endl;
cout<<"按m可买火箭"<<endl;
cout<<"按c可买镐子"<<endl;
cout<<"买东西的时候按1下一页,按0上一页"<<endl;
cout<<"发射火箭可以赚钱,燃料越多钱越多,火箭等级越高钱更多"<<endl;
cout<<"飞行途中可能会遇到未知星球"<<endl;
cout<<"星球上会有福利"<<endl;
cout<<"最后的任务是回到地球(更多内容请点击引入片)"<<endl;
cout<<"按任意数字返回";
c=getch();
}else if(c=='2'){
system("cls");
break;
}
system("cls");
}
while(1){
system("cls");
for(int i=0;i<=29;i++){
for(int j=0;j<=26;j++){
if(dt[i][j]==0){
color(0);
printf (" ");
}
if(dt[i][j]==2||dt[i][j]==19){
color(136);//石头
printf(" ");
}
if(dt[i][j]==1){
color(128);
printf ("##");
}
if(dt[i][j]<=100&&dt[i][j]>=20){
color(129);
printf("::");
}
if(dt[i][j]==8){
color(7);
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){
color(119);
printf (" ");
}
if(dt[i][j]==5){
SetConsoleTextAttribute(hOut,
FOREGROUND_RED);
printf ("◢◣");
}
if(dt[i][j]==4){
color(119);
printf (" ");
}
if(dt[i][j]==10){
color(134);
printf ("HH");
}
if(dt[i][j]==11){
color(134);
printf ("==");
}
if(dt[i][j]==12){
color(133);
printf ("EE");
}
}
cout<<endl;
}
c=getch();
rdxt();
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;
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 (" ◢◣ ");
cout<<endl;
SetConsoleTextAttribute(hOut,
FOREGROUND_RED |
FOREGROUND_GREEN |
FOREGROUND_BLUE |
FOREGROUND_INTENSITY);
printf (" ▇▇ ");
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 (" ◢◣ ");
cout<<endl;
SetConsoleTextAttribute(hOut,
FOREGROUND_RED);
printf (" ◢◣");
SetConsoleTextAttribute(hOut,
FOREGROUND_RED |
FOREGROUND_GREEN |
FOREGROUND_BLUE |
FOREGROUND_INTENSITY);
printf ("▇▇");
SetConsoleTextAttribute(hOut,
FOREGROUND_RED);
printf ("◢◣ ");
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 (" ◢◣ ");
cout<<endl;
SetConsoleTextAttribute(hOut,
FOREGROUND_RED |
FOREGROUND_GREEN |
FOREGROUND_BLUE |
FOREGROUND_INTENSITY);
printf (" ▇▇▇▇ ");
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 (" ◢◣ ");
cout<<endl;
SetConsoleTextAttribute(hOut,
FOREGROUND_RED |
FOREGROUND_GREEN |
FOREGROUND_BLUE |
FOREGROUND_INTENSITY);
printf (" ▇▇ ");
cout<<endl;
SetConsoleTextAttribute(hOut,
FOREGROUND_RED);
printf (" ◢◣");
SetConsoleTextAttribute(hOut,
FOREGROUND_RED |
FOREGROUND_GREEN |
FOREGROUND_BLUE |
FOREGROUND_INTENSITY);
printf ("▇▇");
SetConsoleTextAttribute(hOut,
FOREGROUND_RED);
printf ("◢◣");
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 (" ◢◣ ");
cout<<endl;
printf (" ◢◣ ");
cout<<endl;
printf (" ◢◣");
SetConsoleTextAttribute(hOut,
FOREGROUND_RED |
FOREGROUND_GREEN |
FOREGROUND_BLUE |
FOREGROUND_INTENSITY);
printf ("▇▇");
SetConsoleTextAttribute(hOut,
FOREGROUND_RED);
printf ("◢◣");
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 (" ◢◣ ");
cout<<endl;
printf (" ◢◣ ");
cout<<endl;
SetConsoleTextAttribute(hOut,
FOREGROUND_RED |
FOREGROUND_GREEN |
FOREGROUND_BLUE |
FOREGROUND_INTENSITY);
printf (" ▇▇▇▇▇▇ ");
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 (" ◢◣ ");
cout<<endl;
printf (" ◢◣◢◣◢◣ ");
cout<<endl;
SetConsoleTextAttribute(hOut,
FOREGROUND_RED |
FOREGROUND_GREEN |
FOREGROUND_BLUE |
FOREGROUND_INTENSITY);
printf (" ▇▇▇▇▇▇ ");
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 (" ◢◣ ");
cout<<endl;
SetConsoleTextAttribute(hOut,
FOREGROUND_RED |
FOREGROUND_GREEN |
FOREGROUND_BLUE |
FOREGROUND_INTENSITY);
printf (" ▇▇ ");
cout<<endl;
SetConsoleTextAttribute(hOut,
FOREGROUND_RED);
printf (" ◢◣");
SetConsoleTextAttribute(hOut,
FOREGROUND_RED |
FOREGROUND_GREEN |
FOREGROUND_BLUE |
FOREGROUND_INTENSITY);
printf ("▇▇");
SetConsoleTextAttribute(hOut,
FOREGROUND_RED);
printf ("◢◣");
SetConsoleTextAttribute(hOut,
FOREGROUND_RED |
FOREGROUND_GREEN |
FOREGROUND_BLUE |
FOREGROUND_INTENSITY);
cout<<endl;
printf (" ▇▇▇▇▇▇ ");
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 (" ◢◣ ");
cout<<endl;
SetConsoleTextAttribute(hOut,
FOREGROUND_RED |
FOREGROUND_GREEN |
FOREGROUND_BLUE |
FOREGROUND_INTENSITY);
printf (" ▇▇ ");
cout<<endl;
SetConsoleTextAttribute(hOut,
FOREGROUND_RED);
printf (" ◢◣◢◣◢◣ ");
cout<<endl;
SetConsoleTextAttribute(hOut,
FOREGROUND_RED |
FOREGROUND_GREEN |
FOREGROUND_BLUE |
FOREGROUND_INTENSITY);
printf (" ▇▇▇▇▇▇ ");
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 (" ◢◣ ");
cout<<endl;
SetConsoleTextAttribute(hOut,
FOREGROUND_RED |
FOREGROUND_GREEN |
FOREGROUND_BLUE |
FOREGROUND_INTENSITY);
printf (" ▇▇ ");
cout<<endl;
printf (" ▇▇ ");
SetConsoleTextAttribute(hOut,
FOREGROUND_RED);
cout<<endl;
printf (" ◢◣◢◣◢◣ ");
SetConsoleTextAttribute(hOut,
FOREGROUND_RED |
FOREGROUND_GREEN |
FOREGROUND_BLUE |
FOREGROUND_INTENSITY);
cout<<endl;
printf (" ▇▇▇▇▇▇ ");
cout<<endl;
printf (" ▇▇▇▇▇▇ ");
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;
}
}
}
}
}
不要问我为什么更新的这么慢,因为我更新的就是这么慢
哈哈哈哈哈
下面是介绍
a向左走,d向右走
走到燃料上方,按x获得燃料
按f可将背包燃料放入火箭
按s可飞行(火箭有燃料的时候)
按m可买火箭
按c可买镐子
买东西的时候按1下一页,按0上一页
发射火箭可以赚钱,燃料越多钱越多,火箭等级越高钱更多
途中可能会遇到星球
星球上会有一些福利
本版本提高了画质
加了首页
玩完了记得点赞收藏加关注
玩完了记得点赞收藏加关注
玩完了记得点赞收藏加关注
玩完了记得点赞收藏加关注
玩完了记得点赞收藏加关注
高子骞在2024-08-27 09:47:51追加了内容
玩完了记得评论
玩完了记得评论
玩完了记得评论