一个小学生干了半年才干出的赚钱游戏(这是快完成的6.0版本)(纯手写)(求个点赞关注)

#include <iostream>
#include <string>
#include <windows.h>
#include <conio.h>
#include <fstream>
#include <ctime>
#include <time.h>
#include <stdio.h>
#include<cstring>
#include <conio.h>
#include<vector>
#include<windows.h>
using namespace std;
unsigned long long money=0,Speed=8,f=100,x=0;
//money=钱,Speed=赚钱速度,f=升级钱数,x=名声


string chsuju[41]={" "," "," "," "," ","青铜4","青铜3","青铜2","青铜1","白银4","白银3","白银2","白银1","铂金4","铂金3","铂金2","铂金1","黄金4","黄金3","黄金2","黄金1","钻石4","钻石3","钻石2","钻石1","超凡大师3","超凡大师2","超凡大师1","最强王者3","最强王者2","最强王者1","超神"};

//称号数据 

string checi[14]={" ","辆","辆","辆","辆","辆","辆","辆","辆","辆","辆","架","架","艘"}; 
int chemsheng[14]={-1,1,6,25,130,655,2630,3950,13160,65810,263270,1316350,6581700,30000000};
long long chemoney[14]={-1,1000,5000,20000,100000,500000,2000000,3000000,10000000,50000000,200000000,1000000000,5000000000,200000000000}; 
string cheming[14]={" ","自行车","小电驴","二手摩托车","小摩托车","电动摩托车","汽油摩托车","二手汽车","小汽车","新能源汽车","汽油汽车","私人飞机","大型私人飞机","火箭"};
int mc[31]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
//买车数据 



string ccj_ming[11]={" ","好多自行车","小电驴大亨","谁没二手摩托车?","骑上我心爱的小摩托","坐上我心爱的小汽车","","","","",""};
int ccj_yao[11]={-1,1000,1000,1000,1000,1000};
string ccj[21]={" ","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得"}; 
string zxcj_ming[11]={" ","第一桶金","第二桶金","第三桶金","第四桶金","名声大大嘀","名声多多嘀","车太多了","经验小达人","经验达人","经验大达人"};
int zxcj_yao[11]={-1,999,99999,9999999,999999999,999,99999,9999999,10,30,80};
string zxcj[21]={" ","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得"};
bool zx_hd[21]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
//成就数据 

int dj=1,g=0,o=0;
bool so=false;
//dj=等级,g=经验,o=难度



// 难度选择
int difficulty()
{
    system("cls");
    cout << "请选择难度:" << endl;
    cout << "简单:1  中等:2  困难:3" << endl;
    while (1)
    {
        if (-32767 == GetAsyncKeyState('1'))
        {
            o = 1;
            break;
        }
        if (-32767 == GetAsyncKeyState('2'))
        {
            o = 2;
            break;
        }
        if (-32767 == GetAsyncKeyState('3'))
        {
            o = 3;
            break;
        }
    }
    return 0;
}


void jiazai()
{
    srand((unsigned)time(NULL));
    int j = 0;
    string b[7] = {"            =", "●          =", "●●        =", "●●●      =", "●●●●    =", "●●●●●  =", "●●●●●●="};
    for (int i = 0; i < 29; i++)
    {
        system("cls");
        cout << "======================" << endl;
        cout << "=loading:" << b[j] << endl;
        cout << "======================";
        j++;
        if (i % 7 == 0)
        {
            j = 0;
        }
        if (i >= 12)
            int o = rand() % 650;
        else
            int o = rand() % 400;
        Sleep(o + 50);
    }
    system("cls");
    return;
}


 


//隐藏光标
void hide(){
	HANDLE h_GAME =GetStdHandle(STD_OUTPUT_HANDLE);
	CONSOLE_CURSOR_INFO cursor_info;
	GetConsoleCursorInfo(h_GAME,&cursor_info);
	cursor_info.bVisible=false;
	SetConsoleCursorInfo(h_GAME,&cursor_info);
}


 
void paiming(){//称号规则输出 
	if(dj<4){
		cout<<"等级不够,还差"<<4-dj<<"级"<<endl;
		Sleep(1000);
		return ;
	}
	if(dj>=4){
		cout<<"青铜4:  4级  "<<endl;
		cout<<"青铜3:  5级  "<<endl;
		cout<<"青铜2:  6级  "<<endl;
		cout<<"青铜1:  7级  "<<endl;
		cout<<"白银4:  8级  "<<endl;
		cout<<"白银3:  9级  "<<endl;
		cout<<"白银2:  10级 "<<endl;
		cout<<"白银1:  11级 "<<endl;
		cout<<"铂金4:  12级"<<endl;
		cout<<"铂金3:  13级"<<endl;
		cout<<"铂金2:  14级"<<endl;
		cout<<"铂金1:  15级"<<endl;
		cout<<"黄金4:  16级"<<endl;
		cout<<"黄金3:  17级"<<endl;
		cout<<"黄金2:  18级"<<endl;
		cout<<"黄金1:  19级"<<endl;
		cout<<"钻石4:  20级"<<endl;
		cout<<"钻石3:  21级"<<endl;
		cout<<"钻石2:  22级"<<endl;
		cout<<"钻石1:  23级"<<endl;
		cout<<"超凡大师3:  24级"<<endl;
		cout<<"超凡大师2:  25级"<<endl;
		cout<<"超凡大师1:  26级"<<endl;
		cout<<"最强王者3:  27级"<<endl; 
		cout<<"最强王者2:  28级"<<endl;
		cout<<"最强王者1:  29级"<<endl; 
		cout<<"超神:  30级"<<endl;
		cout<<endl<<endl; 
		//判断称号 
		if(dj<31){
			cout<<"            ======="<<endl;
			cout<<"您现在是:  ="<<chsuju[dj]<<"="<<endl;
			cout<<"            ======="<<endl;
		}
		if(dj==28){
			Sleep(500); 
			cout<<"下一级有彩蛋!!!"<<endl;
		}
		if(dj==29){
			Sleep(500);
			cout<<"彩蛋马上开始!!!" <<endl;
			Sleep(1000); 
			system("start https://www.bilibili.com/video/BV1gc411W7ei/?spm_id_from=trigger_reload&vd_source=22158b889b5360491372ab2771a35e80");
			Sleep(10000);
			cout<<"下一级还有彩蛋哦!!!"<<endl; 
		}
		if(dj==30){
			Sleep(500);
			cout<<"彩蛋马上开始!!!" <<endl;
			Sleep(1000);
			system("start https://www.bilibili.com/video/BV1Kv4y1p7n3/?spm_id_from=333.788.recommend_more_video.2&vd_source=22158b889b5360491372ab2771a35e80");
		}
		if(dj==30){
			cout<<"您已无敌"<<endl;
			cout<<"祝贺你"<<endl;
			cout<<"     ***     ***"<<endl;
			cout<<"    *****   *****"<<endl;
			cout<<"   ******* *******"<<endl;
			cout<<"  *****************"<<endl;
			cout<<"  *****************"<<endl;
			cout<<"   ***************"<<endl;
			cout<<"    *************"<<endl;
			cout<<"     ***********"<<endl;
			cout<<"      *********"<<endl;
			cout<<"       *******"<<endl;
			cout<<"        *****"<<endl;
			cout<<"         ***"<<endl;
			cout<<"你是我的yyds"<<endl;
			system("start https://www.bilibili.com/video/BV1hs4y197wU/?spm_id_from=autoNext&vd_source=22158b889b5360491372ab2771a35e80");
			cout<<"小提示:"<<endl;
			cout<<"31级(一级不多,一级不少)时打开排行榜"<<endl;
			cout<<"又可触发彩蛋!!!"<<endl;
			cout<<"快去试试吧!" <<endl;
		}
		if(dj==31){
				cout<<"你已触发彩蛋"<<endl;
				Sleep(500);
				cout<<"观看视频"<<endl; 
				Sleep(1000);
				system("start https://www.bilibili.com/video/BV1ST411h73B/?spm_id_from=333.337.search-card.all.click");
		}
	}
	cout<<"按n退出:";
	while(1){
		if (-32767 == GetAsyncKeyState('N')){
	        return ;
	    }
	}
}
 
 
 
 
 
 
 
void maiche(int k){
	int shuliang;
	if(chemoney[k]>money){
		cout<<"钱不够,还差"<<chemoney[k]-money<<"元"<<endl;
		Sleep(800);
		return ;
	} 
	cout<<"要1辆按1 要10辆按2 要100辆按3 要1000辆按4 要一万辆按5 要十万辆按6 要一百万辆按7"<<endl;
	while(1){
		if (-32767 == GetAsyncKeyState('1')){
			shuliang=1;
			break;
		}
		if (-32767 == GetAsyncKeyState('2')){
			shuliang=10;
			break;
		}
		if (-32767 == GetAsyncKeyState('3')){
			shuliang=100;
			break;
		}
		if (-32767 == GetAsyncKeyState('4')){
			shuliang=1000;
			break;
		}
		if (-32767 == GetAsyncKeyState('5')){
			shuliang=10000;
			break;
		}
		if (-32767 == GetAsyncKeyState('6')){
			shuliang=100000;
			break;
		}
		if (-32767 == GetAsyncKeyState('7')){
			shuliang=1000000;
			break;
		}
	}
	system("cls");
	money=money-chemoney[k]*shuliang;
	x=x+chemsheng[k]*shuliang;
	mc[k]+=shuliang;
	cout<<"恭喜获得"<<shuliang<<checi[k]<<cheming[k]<<"!!!"<<endl; 
	cout<<"按n退出 按m继续买";
	while(1){
		if (-32767 == GetAsyncKeyState('N')){
	        return ;
	    }
	    if (-32767 == GetAsyncKeyState('M')){
	        maiche(k); 
	        return ; 
	    }
	}
}
 
 //标题输出 
void biaoti(){
	for(int i=1;i<=21;i++){
		cout<<"=";
		Sleep(100);
	}
	cout<<endl;
	cout<<"=";
	Sleep(100);
	cout<<"  一千万亿很简单   ";
	Sleep(100);
	cout<<"="; 
	cout<<endl<<"=";
	for(int i=1;i<=6;i++){
		cout<<" ";
	}
	cout<<"(6.0)"; 
	cout<<"      =";
	cout<<endl;
	Sleep(100);
	for(int i=1;i<=21;i++){
		cout<<"=";
		Sleep(100);
	}
	cout<<endl;
	Sleep(100);
	cout<<"=";Sleep(200);
	cout<<"备";Sleep(200);
	cout<<"注";Sleep(200);
	cout<<":";Sleep(400);
	cout<<"(";Sleep(200);
	cout<<"可";Sleep(200);
	cout<<"能";Sleep(200);
	cout<<"吧";Sleep(200);
	cout<<"~";Sleep(200);
	cout<<"~";Sleep(200);
	cout<<"~";Sleep(200);
	cout<<")";Sleep(200);
	cout<<"="<<endl;
	Sleep(600);
	cout<<"=";Sleep(200);
	cout<<"  (";Sleep(200);
	cout<<"-";Sleep(200);
	cout<<"_";Sleep(200);
	cout<<"-";Sleep(200);
	cout<<"'";Sleep(200);
	cout<<")";Sleep(200);
	cout<<"           ="<<endl;
	Sleep(250);
	for(int i=1;i<=21;i++){
		cout<<"=";
		Sleep(100);
	}
	cout<<endl; 
	Sleep(800);
}
 
 
 
int main(){
	hide();
	jiazai();
	/*
    MessageBox(0, TEXT("如果你是刚玩这个游戏,请新建一个名为 data2 的文本文档"), TEXT("注意"), MB_OK);
	if (MessageBox(0, TEXT("为了游戏的体验感优良,请不要更改data2文本文档"), TEXT("特别重要提示"), MB_OKCANCEL | MB_ICONINFORMATION) != IDOK){
        MessageBox(0, TEXT("既然你不同意,那就别玩了"), TEXT("你个**"), MB_OK);
        SetFileAttributes("data2.txt",FILE_ATTRIBUTE_READONLY | FILE_ATTRIBUTE_HIDDEN); 
        return 0;
    }
    */
	hide();
	biaoti();
	hide();
	//登录或创建账号 
	//key_3();
	difficulty();
	hide();
	system("cls");
	Sleep(2000);
	//主代码
	for(int X=0;;X++){
		hide();
		system("cls");
		cout<<"赚钱:1(赚钱速度为"<<Speed<<")"<<endl;
		cout<<"升级:2(升级钱数为"<<f<<")"<<endl;
		cout<<"$:"<<money<<"    级别:"<<dj<<"    经验:"<<g<<endl;
		cout<<"=============="<<endl;
		cout<<"=称号:3      ="<<endl;
		cout<<"=买车,买房:4 ="<<endl;
		cout<<"=挂机:5      ="<<endl;
		cout<<"=攻略:6      ="<<endl;
		cout<<"=成就:7      ="<<endl;
		//cout<<"=保存:8      ="<<endl; 
		cout<<"=============="<<endl;
		Sleep(50);
		while(1){
			if (-32767 == GetAsyncKeyState('1')){
				money=money+Speed;
				break;
			}
			if (-32767 == GetAsyncKeyState('2')){
				if(money<f){
					system("cls");
					cout<<"钱不够,还差"<<f-money<<"元"<<endl;
					Sleep(500);
				}
				if(money>=f){
					dj=dj+1;
					money=money-f;
					if(o==1){
						Speed+=Speed/8;
						f+=f*0.45;//f+=f/100*45;
					}
					if(o==2){
						Speed+=Speed/8;
						f+=f*0.55;//f+=f/100*55;
					}
					if(o==3){
						Speed+=Speed/8;
						f+=f*0.65;//f+=f/100*65;
					}
				}
				break;
			}
			if (-32767 == GetAsyncKeyState('3')){
				paiming();
				system("cls");
				break;
			}
			if (-32767 == GetAsyncKeyState('4')){
				while(1){
					int c=0,k=0;
					system("cls");
					cout<<"买车:1    买房:2    退出:3    $:"<<money<<"    名声:"<<x<<"    仓库:4"<<endl;
					while(1){
						if (-32767 == GetAsyncKeyState('1')){
							while(1){
								system("cls");
								cout<<"===================================================="<<endl;
								cout<<"==1000$         自行车       (名声+1)        按1  =="<<endl;
								cout<<"==5000$         小电驴       (名声+6)        按2  =="<<endl;
								cout<<"==20000$        二手摩托车   (名声+25)       按3  =="<<endl;
								cout<<"==100000$       小摩托车     (名声+130)      按4  =="<<endl;
								cout<<"==500000$       电动摩托车   (名声+655)      按5  =="<<endl;
								cout<<"==2000000$      汽油摩托车   (名声+2630)     按6  =="<<endl;
								cout<<"==3000000$      二手汽车     (名声+3950)     按7  =="<<endl;
								cout<<"==10000000$     小汽车       (名声+13160)    按8  =="<<endl;
								cout<<"==50000000$     新能源汽车   (名声+65810)    按9  =="<<endl;
								cout<<"==200000000$    汽油汽车     (名声+263270)   按a  =="<<endl;
								cout<<"==1000000000$   私人飞机     (名声+1316350)  按b  =="<<endl;
								cout<<"==5000000000$   大型私人飞机 (名声+6581700)  按c  =="<<endl;
								cout<<"==200000000000$ 火箭         (名声+30000000) 按d  =="<<endl; 
								cout<<"==退出  按e                                       =="<<endl;
								cout<<"===================================================="<<endl;
								cout<<"名声:"<<x<<endl;
								cout<<"$:"<<money<<endl;
								while(1){
									if (-32767 == GetAsyncKeyState('1')){
										maiche(1);
										break;
									}
									if (-32767 == GetAsyncKeyState('2')){
										maiche(2);
										break;
									}
									if (-32767 == GetAsyncKeyState('3')){
										maiche(3);
										break;
									}
									if (-32767 == GetAsyncKeyState('4')){
										maiche(4);
										break;
									}
									if (-32767 == GetAsyncKeyState('5')){
										maiche(5);
										break;
									}
									if (-32767 == GetAsyncKeyState('6')){
										maiche(6);
										break;
									}
									if (-32767 == GetAsyncKeyState('7')){
										maiche(7);
										break;
									}
									if (-32767 == GetAsyncKeyState('8')){
										maiche(8);
										break;
									}
									if (-32767 == GetAsyncKeyState('9')){
										maiche(9);
										break;
									}
									if (-32767 == GetAsyncKeyState('A')){
										maiche(10);
										break;
									}
									if (-32767 == GetAsyncKeyState('B')){
										maiche(11);
										break;
									}
									if (-32767 == GetAsyncKeyState('C')){
										maiche(12);
										break;
									}
									if (-32767 == GetAsyncKeyState('D')){
										maiche(13);
										break;
									}
									if (-32767 == GetAsyncKeyState('E')){
										k=14;
										break;
									}
								}
								system("cls");
								if(k==14){
									break;
								}
							}
							break;
						}
						if (-32767 == GetAsyncKeyState('2')){
							cout<<"还未开发完毕"<<endl;
							break;
						}
						if (-32767 == GetAsyncKeyState('3')){
							break;
						}
						if (-32767 == GetAsyncKeyState('4')){
							system("cls");
							for(int i=1;i<=13;i++){
								cout<<"您的"<<cheming[i]<<"有"<<mc[i]<<checi[i]<<endl; 
							}
							Sleep(500);
							cout<<"按n退出"<<endl; 
							while(1){
								if (-32767 == GetAsyncKeyState('N')){
									break;
								}
							}
							break;
						}
					}
					break;
				}
				system("cls");
				break;
			}
			if (-32767 == GetAsyncKeyState('5')){
				long long guaji=0;//金钱 
				int gjsj=0;//时间 
				int as=-1;
				Sleep(200);
				MessageBox(NULL, "挂机中按n退出", "注意", MB_OK);
				MessageBox(NULL, "最多挂机100分钟,每秒获得一次金钱。", "注意", MB_OK);
				while(1){
					system("cls");
					cout<<"退出按1,挂机按2"<<endl;
					while(1){
						if (-32767 == GetAsyncKeyState('1')){
							break;
						}
						if (-32767 == GetAsyncKeyState('2')){
							system("cls");
							cout<<"开始挂机"<<endl;
							Sleep(500);
							system("cls");
							for(int i=0;i<=6000;i++){
								cout<<"已挂机"<<i<<"秒"<<endl;
								for(int j=1;j<=80;j++){
									if (-32767 == GetAsyncKeyState('N')){
										as=0;
										break;
									}
									Sleep(1);
								}
								gjsj++;
								if(as==0) break;
								X++;
								if(X%50==0){
									g=g+1;
									Speed+=Speed/8;
								}
								system("cls");
							}
							money+=(Speed*gjsj);
							cout<<"已挂机完毕,您获得了"<<Speed*gjsj<<"元"<<endl;
							MessageBox(NULL, "已挂机完毕", "提示", MB_OK);
							break;
						}
					}
					break;
				}
				break;
			}
			if (-32767 == GetAsyncKeyState('6')){
				system("cls");
				MessageBox(NULL, "想快点赚钱就快点升级(手动赚钱最快哦!!!)", "攻略", MB_OK);
				MessageBox(NULL, "经验也可以增加赚钱速度!", "攻略", MB_OK);
				MessageBox(NULL, "记得看称号(到了最强王者或最强王者以上有惊喜!!!)", "攻略", MB_OK);
				MessageBox(NULL, "没时间玩的话试试挂机,但最多挂机100分钟,挂机也可以加经验哟!", "攻略", MB_OK);
				MessageBox(NULL, "买车买房中可以获得成就哦!", "攻略", MB_OK);
				MessageBox(NULL, "完成主线任务可以获得主线成就哦!", "攻略", MB_OK);
				MessageBox(NULL, "好吧,就这样吧,攻略结束^_^", "攻略", MB_OK);
				break;
			}
			if(-32767 == GetAsyncKeyState('7')){
				system("cls");
				for(int i=1;i<=5;i++){
					if(mc[i]>=ccj_yao[i]&&ccj[i]=="未获得"){
						cout<<"恭喜获得成就:"<<ccj_ming[i]<<"!!!(买车成就)"<<endl;
						ccj[i]="已获得";
						Sleep(500); 
					} 
				}
				for(int i=1;i<=4;i++){
					if(zxcj[i]=="未获得"&&money>=zxcj_yao[i]){
						cout<<"恭喜获得成就:"<<zxcj_ming[i]<<"!!!(主线成就)"<<endl;
						zxcj[i]="已获得";
						Sleep(500); 
					}
				}
				for(int i=5;i<=7;i++){
					if(zxcj[i]=="未获得"&&x>=zxcj_yao[i]){
						cout<<"恭喜获得成就:"<<zxcj_ming[i]<<"!!!(主线成就)"<<endl; 
						zxcj[i]="已获得";
						Sleep(500); 
					}
				}
				for(int i=8;i<=10;i++){
					if(zxcj[i]=="未获得"&&g>=zxcj_yao[i]){
						cout<<"恭喜获得成就:"<<zxcj_ming[i]<<"!!!(主线成就)"<<endl;
						zxcj[i]="已获得";
						Sleep(500);  
					}
				}
				cout<<"======================买车成就======================"<<endl;
				cout<<"=1.好多自行车          (拥有自行车1000辆)    "<<ccj[1]<<"="<<endl;
				cout<<"=2.小电驴大亨          (拥有小电驴1000辆)    "<<ccj[2]<<"="<<endl;
				cout<<"=3.谁没二手摩托车?    (拥有二手摩托车1000辆)"<<ccj[3]<<"="<<endl;
				cout<<"=4.骑上我心爱的小摩托  (拥有小摩托车1000辆)  "<<ccj[4]<<"="<<endl;
				cout<<"=5.坐上我心爱的小汽车  (拥有小汽车1000辆)    "<<ccj[5]<<"="<<endl;
				cout<<"======================主线成就======================"<<endl;
				cout<<"=1. 第一桶金           (获得999元)           "<<zxcj[1]<<"="<<endl;
				cout<<"=2. 第二桶金           (获得99999元)         "<<zxcj[2]<<"="<<endl;
				cout<<"=3. 第三桶金           (获得9999999元)       "<<zxcj[3]<<"="<<endl;
				cout<<"=4. 第四桶金           (获得999999999元)     "<<zxcj[4]<<"="<<endl; 
				cout<<"=5. 名声大大嘀         (获得999名声)         "<<zxcj[5]<<"="<<endl;
				cout<<"=6. 名声多多嘀         (获得99999名声)       "<<zxcj[6]<<"="<<endl;
				cout<<"=7. 车太多了           (获得9999999名声)     "<<zxcj[7]<<"="<<endl;
				cout<<"=8. 经验小达人         (获得10经验)          "<<zxcj[8]<<"="<<endl;
				cout<<"=9. 经验达人           (获得30经验)          "<<zxcj[9]<<"="<<endl;
				cout<<"=10.经验大达人         (获得80经验)          "<<zxcj[10]<<"="<<endl;
				cout<<"===================================================="<<endl; 
				Sleep(500);
				cout<<"按n退出"<<endl; 
				while(1){
					if (-32767 == GetAsyncKeyState('N')){
				        break;
				    }
				}
				break;
			}
		}
		if(X%30==0&&X!=0){
			g=g+1;
			Speed+=Speed/9;
		}
		system("cls");
	}
	return 0;
}

#include <iostream>
#include <string>
#include <windows.h>
#include <conio.h>
#include <fstream>
#include <ctime>
#include <time.h>
#include <stdio.h>
#include<cstring>
#include <conio.h>
#include<vector>
#include<windows.h>
using namespace std;
unsigned long long money=0,Speed=8,f=100,x=0;
//money=钱,Speed=赚钱速度,f=升级钱数,x=名声


string chsuju[41]={" "," "," "," "," ","青铜4","青铜3","青铜2","青铜1","白银4","白银3","白银2","白银1","铂金4","铂金3","铂金2","铂金1","黄金4","黄金3","黄金2","黄金1","钻石4","钻石3","钻石2","钻石1","超凡大师3","超凡大师2","超凡大师1","最强王者3","最强王者2","最强王者1","超神"};

//称号数据 

string checi[14]={" ","辆","辆","辆","辆","辆","辆","辆","辆","辆","辆","架","架","艘"}; 
int chemsheng[14]={-1,1,6,25,130,655,2630,3950,13160,65810,263270,1316350,6581700,30000000};
long long chemoney[14]={-1,1000,5000,20000,100000,500000,2000000,3000000,10000000,50000000,200000000,1000000000,5000000000,200000000000}; 
string cheming[14]={" ","自行车","小电驴","二手摩托车","小摩托车","电动摩托车","汽油摩托车","二手汽车","小汽车","新能源汽车","汽油汽车","私人飞机","大型私人飞机","火箭"};
int mc[31]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
//买车数据 

string ccj_ming[11]={" ","好多自行车","小电驴大亨","谁没二手摩托车?","骑上我心爱的小摩托","坐上我心爱的小汽车","","","","",""};
int ccj_yao[11]={-1,1000,1000,1000,1000,1000};
string ccj[21]={" ","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得"}; 
string zxcj_ming[11]={" ","第一桶金","第二桶金","第三桶金","第四桶金","名声大大嘀","名声多多嘀","车太多了","经验小达人","经验达人","经验大达人"};
int zxcj_yao[11]={-1,999,99999,9999999,999999999,999,99999,9999999,10,30,80};
string zxcj[21]={" ","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得","未获得"};
bool zx_hd[21]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
//成就数据 

int dj=1,g=0,o=0;
bool so=false;
//dj=等级,g=经验,o=难度

// 难度选择
int difficulty()
{
    system("cls");
    cout << "请选择难度:" << endl;
    cout << "简单:1  中等:2  困难:3" << endl;
    while (1)
    {
        if (-32767 == GetAsyncKeyState('1'))
        {
            o = 1;
            break;
        }
        if (-32767 == GetAsyncKeyState('2'))
        {
            o = 2;
            break;
        }
        if (-32767 == GetAsyncKeyState('3'))
        {
            o = 3;
            break;
        }
    }
    return 0;
}


void jiazai()
{
    srand((unsigned)time(NULL));
    int j = 0;
    string b[7] = {"            =", "●          =", "●●        =", "●●●      =", "●●●●    =", "●●●●●  =", "●●●●●●="};
    for (int i = 0; i < 29; i++)
    {
        system("cls");
        cout << "======================" << endl;
        cout << "=loading:" << b[j] << endl;
        cout << "======================";
        j++;
        if (i % 7 == 0)
        {
            j = 0;
        }
        if (i >= 12)
            int o = rand() % 650;
        else
            int o = rand() % 400;
        Sleep(o + 50);
    }
    system("cls");
    return;
}


 


//隐藏光标
void hide(){
    HANDLE h_GAME =GetStdHandle(STD_OUTPUT_HANDLE);
    CONSOLE_CURSOR_INFO cursor_info;
    GetConsoleCursorInfo(h_GAME,&cursor_info);
    cursor_info.bVisible=false;
    SetConsoleCursorInfo(h_GAME,&cursor_info);
}


 
void paiming(){//称号规则输出 
    if(dj<4){
        cout<<"等级不够,还差"<<4-dj<<"级"<<endl;
        Sleep(1000);
        return ;
    }
    if(dj>=4){
        cout<<"青铜4:  4级  "<<endl;
        cout<<"青铜3:  5级  "<<endl;
        cout<<"青铜2:  6级  "<<endl;
        cout<<"青铜1:  7级  "<<endl;
        cout<<"白银4:  8级  "<<endl;
        cout<<"白银3:  9级  "<<endl;
        cout<<"白银2:  10级 "<<endl;
        cout<<"白银1:  11级 "<<endl;
        cout<<"铂金4:  12级"<<endl;
        cout<<"铂金3:  13级"<<endl;
        cout<<"铂金2:  14级"<<endl;
        cout<<"铂金1:  15级"<<endl;
        cout<<"黄金4:  16级"<<endl;
        cout<<"黄金3:  17级"<<endl;
        cout<<"黄金2:  18级"<<endl;
        cout<<"黄金1:  19级"<<endl;
        cout<<"钻石4:  20级"<<endl;
        cout<<"钻石3:  21级"<<endl;
        cout<<"钻石2:  22级"<<endl;
        cout<<"钻石1:  23级"<<endl;
        cout<<"超凡大师3:  24级"<<endl;
        cout<<"超凡大师2:  25级"<<endl;
        cout<<"超凡大师1:  26级"<<endl;
        cout<<"最强王者3:  27级"<<endl; 
        cout<<"最强王者2:  28级"<<endl;
        cout<<"最强王者1:  29级"<<endl; 
        cout<<"超神:  30级"<<endl;
        cout<<endl<<endl; 
        //判断称号 
        if(dj<31){
            cout<<"            ======="<<endl;
            cout<<"您现在是:  ="<<chsuju[dj]<<"="<<endl;
            cout<<"            ======="<<endl;
        }
        if(dj==28){
            Sleep(500); 
            cout<<"下一级有彩蛋!!!"<<endl;
        }
        if(dj==29){
            Sleep(500);
            cout<<"彩蛋马上开始!!!" <<endl;
            Sleep(1000); 
            system("start https://www.bilibili.com/video/BV1gc411W7ei/?spm_id_from=trigger_reload&vd_source=22158b889b5360491372ab2771a35e80");
            Sleep(10000);
            cout<<"下一级还有彩蛋哦!!!"<<endl; 
        }
        if(dj==30){
            Sleep(500);
            cout<<"彩蛋马上开始!!!" <<endl;
            Sleep(1000);
            system("start https://www.bilibili.com/video/BV1Kv4y1p7n3/?spm_id_from=333.788.recommend_more_video.2&vd_source=22158b889b5360491372ab2771a35e80");
        }
        if(dj==30){
            cout<<"您已无敌"<<endl;
            cout<<"祝贺你"<<endl;
            cout<<"     ***     ***"<<endl;
            cout<<"    *****   *****"<<endl;
            cout<<"   ******* *******"<<endl;
            cout<<"  *****************"<<endl;
            cout<<"  *****************"<<endl;
            cout<<"   ***************"<<endl;
            cout<<"    *************"<<endl;
            cout<<"     ***********"<<endl;
            cout<<"      *********"<<endl;
            cout<<"       *******"<<endl;
            cout<<"        *****"<<endl;
            cout<<"         ***"<<endl;
            cout<<"你是我的yyds"<<endl;
            system("start https://www.bilibili.com/video/BV1hs4y197wU/?spm_id_from=autoNext&vd_source=22158b889b5360491372ab2771a35e80");
            cout<<"小提示:"<<endl;
            cout<<"31级(一级不多,一级不少)时打开排行榜"<<endl;
            cout<<"又可触发彩蛋!!!"<<endl;
            cout<<"快去试试吧!" <<endl;
        }
        if(dj==31){
                cout<<"你已触发彩蛋"<<endl;
                Sleep(500);
                cout<<"观看视频"<<endl; 
                Sleep(1000);
                system("start https://www.bilibili.com/video/BV1ST411h73B/?spm_id_from=333.337.search-card.all.click");
        }
    }
    cout<<"按n退出:";
    while(1){
        if (-32767 == GetAsyncKeyState('N')){
            return ;
        }
    }
}
 
 
 
 
 
 
 
void maiche(int k){
    int shuliang;
    if(chemoney[k]>money){
        cout<<"钱不够,还差"<<chemoney[k]-money<<"元"<<endl;
        Sleep(800);
        return ;
    } 
    cout<<"要1辆按1 要10辆按2 要100辆按3 要1000辆按4 要一万辆按5 要十万辆按6 要一百万辆按7"<<endl;
    while(1){
        if (-32767 == GetAsyncKeyState('1')){
            shuliang=1;
            break;
        }
        if (-32767 == GetAsyncKeyState('2')){
            shuliang=10;
            break;
        }
        if (-32767 == GetAsyncKeyState('3')){
            shuliang=100;
            break;
        }
        if (-32767 == GetAsyncKeyState('4')){
            shuliang=1000;
            break;
        }
        if (-32767 == GetAsyncKeyState('5')){
            shuliang=10000;
            break;
        }
        if (-32767 == GetAsyncKeyState('6')){
            shuliang=100000;
            break;
        }
        if (-32767 == GetAsyncKeyState('7')){
            shuliang=1000000;
            break;
        }
    }
    system("cls");
    money=money-chemoney[k]*shuliang;
    x=x+chemsheng[k]*shuliang;
    mc[k]+=shuliang;
    cout<<"恭喜获得"<<shuliang<<checi[k]<<cheming[k]<<"!!!"<<endl; 
    cout<<"按n退出 按m继续买";
    while(1){
        if (-32767 == GetAsyncKeyState('N')){
            return ;
        }
        if (-32767 == GetAsyncKeyState('M')){
            maiche(k); 
            return ; 
        }
    }
}
 
 //标题输出 
void biaoti(){
    for(int i=1;i<=21;i++){
        cout<<"=";
        Sleep(100);
    }
    cout<<endl;
    cout<<"=";
    Sleep(100);
    cout<<"  一千万亿很简单   ";
    Sleep(100);
    cout<<"="; 
    cout<<endl<<"=";
    for(int i=1;i<=6;i++){
        cout<<" ";
    }
    cout<<"(6.0)"; 
    cout<<"      =";
    cout<<endl;
    Sleep(100);
    for(int i=1;i<=21;i++){
        cout<<"=";
        Sleep(100);
    }
    cout<<endl;
    Sleep(100);
    cout<<"=";Sleep(200);
    cout<<"备";Sleep(200);
    cout<<"注";Sleep(200);
    cout<<":";Sleep(400);
    cout<<"(";Sleep(200);
    cout<<"可";Sleep(200);
    cout<<"能";Sleep(200);
    cout<<"吧";Sleep(200);
    cout<<"~";Sleep(200);
    cout<<"~";Sleep(200);
    cout<<"~";Sleep(200);
    cout<<")";Sleep(200);
    cout<<"="<<endl;
    Sleep(600);
    cout<<"=";Sleep(200);
    cout<<"  (";Sleep(200);
    cout<<"-";Sleep(200);
    cout<<"_";Sleep(200);
    cout<<"-";Sleep(200);
    cout<<"'";Sleep(200);
    cout<<")";Sleep(200);
    cout<<"           ="<<endl;
    Sleep(250);
    for(int i=1;i<=21;i++){
        cout<<"=";
        Sleep(100);
    }
    cout<<endl; 
    Sleep(800);
}
 
 
 
int main(){
    hide();
    jiazai();
    /*
    MessageBox(0, TEXT("如果你是刚玩这个游戏,请新建一个名为 data2 的文本文档"), TEXT("注意"), MB_OK);
    if (MessageBox(0, TEXT("为了游戏的体验感优良,请不要更改data2文本文档"), TEXT("特别重要提示"), MB_OKCANCEL | MB_ICONINFORMATION) != IDOK){
        MessageBox(0, TEXT("既然你不同意,那就别玩了"), TEXT("你个**"), MB_OK);
        SetFileAttributes("data2.txt",FILE_ATTRIBUTE_READONLY | FILE_ATTRIBUTE_HIDDEN); 
        return 0;
    }
    */
    hide();
    biaoti();
    hide();
    //登录或创建账号 
    //key_3();
    difficulty();
    hide();
    system("cls");
    Sleep(2000);
    //主代码
    for(int X=0;;X++){
        hide();
        system("cls");
        cout<<"赚钱:1(赚钱速度为"<<Speed<<")"<<endl;
        cout<<"升级:2(升级钱数为"<<f<<")"<<endl;
        cout<<"$:"<<money<<"    级别:"<<dj<<"    经验:"<<g<<endl;
        cout<<"=============="<<endl;
        cout<<"=称号:3      ="<<endl;
        cout<<"=买车,买房:4 ="<<endl;
        cout<<"=挂机:5      ="<<endl;
        cout<<"=攻略:6      ="<<endl;
        cout<<"=成就:7      ="<<endl;
        //cout<<"=保存:8      ="<<endl; 
        cout<<"=============="<<endl;
        Sleep(50);
        while(1){
            if (-32767 == GetAsyncKeyState('1')){
                money=money+Speed;
                break;
            }
            if (-32767 == GetAsyncKeyState('2')){
                if(money<f){
                    system("cls");
                    cout<<"钱不够,还差"<<f-money<<"元"<<endl;
                    Sleep(500);
                }
                if(money>=f){
                    dj=dj+1;
                    money=money-f;
                    if(o==1){
                        Speed+=Speed/8;
                        f+=f*0.45;//f+=f/100*45;
                    }
                    if(o==2){
                        Speed+=Speed/8;
                        f+=f*0.55;//f+=f/100*55;
                    }
                    if(o==3){
                        Speed+=Speed/8;
                        f+=f*0.65;//f+=f/100*65;
                    }
                }
                break;
            }
            if (-32767 == GetAsyncKeyState('3')){
                paiming();
                system("cls");
                break;
            }
            if (-32767 == GetAsyncKeyState('4')){
                while(1){
                    int c=0,k=0;
                    system("cls");
                    cout<<"买车:1    买房:2    退出:3    $:"<<money<<"    名声:"<<x<<"    仓库:4"<<endl;
                    while(1){
                        if (-32767 == GetAsyncKeyState('1')){
                            while(1){
                                system("cls");
                                cout<<"===================================================="<<endl;
                                cout<<"==1000$         自行车       (名声+1)        按1  =="<<endl;
                                cout<<"==5000$         小电驴       (名声+6)        按2  =="<<endl;
                                cout<<"==20000$        二手摩托车   (名声+25)       按3  =="<<endl;
                                cout<<"==100000$       小摩托车     (名声+130)      按4  =="<<endl;
                                cout<<"==500000$       电动摩托车   (名声+655)      按5  =="<<endl;
                                cout<<"==2000000$      汽油摩托车   (名声+2630)     按6  =="<<endl;
                                cout<<"==3000000$      二手汽车     (名声+3950)     按7  =="<<endl;
                                cout<<"==10000000$     小汽车       (名声+13160)    按8  =="<<endl;
                                cout<<"==50000000$     新能源汽车   (名声+65810)    按9  =="<<endl;
                                cout<<"==200000000$    汽油汽车     (名声+263270)   按a  =="<<endl;
                                cout<<"==1000000000$   私人飞机     (名声+1316350)  按b  =="<<endl;
                                cout<<"==5000000000$   大型私人飞机 (名声+6581700)  按c  =="<<endl;
                                cout<<"==200000000000$ 火箭         (名声+30000000) 按d  =="<<endl; 
                                cout<<"==退出  按e                                       =="<<endl;
                                cout<<"===================================================="<<endl;
                                cout<<"名声:"<<x<<endl;
                                cout<<"$:"<<money<<endl;
                                while(1){
                                    if (-32767 == GetAsyncKeyState('1')){
                                        maiche(1);
                                        break;
                                    }
                                    if (-32767 == GetAsyncKeyState('2')){
                                        maiche(2);
                                        break;
                                    }
                                    if (-32767 == GetAsyncKeyState('3')){
                                        maiche(3);
                                        break;
                                    }
                                    if (-32767 == GetAsyncKeyState('4')){
                                        maiche(4);
                                        break;
                                    }
                                    if (-32767 == GetAsyncKeyState('5')){
                                        maiche(5);
                                        break;
                                    }
                                    if (-32767 == GetAsyncKeyState('6')){
                                        maiche(6);
                                        break;
                                    }
                                    if (-32767 == GetAsyncKeyState('7')){
                                        maiche(7);
                                        break;
                                    }
                                    if (-32767 == GetAsyncKeyState('8')){
                                        maiche(8);
                                        break;
                                    }
                                    if (-32767 == GetAsyncKeyState('9')){
                                        maiche(9);
                                        break;
                                    }
                                    if (-32767 == GetAsyncKeyState('A')){
                                        maiche(10);
                                        break;
                                    }
                                    if (-32767 == GetAsyncKeyState('B')){
                                        maiche(11);
                                        break;
                                    }
                                    if (-32767 == GetAsyncKeyState('C')){
                                        maiche(12);
                                        break;
                                    }
                                    if (-32767 == GetAsyncKeyState('D')){
                                        maiche(13);
                                        break;
                                    }
                                    if (-32767 == GetAsyncKeyState('E')){
                                        k=14;
                                        break;
                                    }
                                }
                                system("cls");
                                if(k==14){
                                    break;
                                }
                            }
                            break;
                        }
                        if (-32767 == GetAsyncKeyState('2')){
                            cout<<"还未开发完毕"<<endl;
                            break;
                        }
                        if (-32767 == GetAsyncKeyState('3')){
                            break;
                        }
                        if (-32767 == GetAsyncKeyState('4')){
                            system("cls");
                            for(int i=1;i<=13;i++){
                                cout<<"您的"<<cheming[i]<<"有"<<mc[i]<<checi[i]<<endl; 
                            }
                            Sleep(500);
                            cout<<"按n退出"<<endl; 
                            while(1){
                                if (-32767 == GetAsyncKeyState('N')){
                                    break;
                                }
                            }
                            break;
                        }
                    }
                    break;
                }
                system("cls");
                break;
            }
            if (-32767 == GetAsyncKeyState('5')){
                long long guaji=0;//金钱 
                int gjsj=0;//时间 
                int as=-1;
                Sleep(200);
                MessageBox(NULL, "挂机中按n退出", "注意", MB_OK);
                MessageBox(NULL, "最多挂机100分钟,每秒获得一次金钱。", "注意", MB_OK);
                while(1){
                    system("cls");
                    cout<<"退出按1,挂机按2"<<endl;
                    while(1){
                        if (-32767 == GetAsyncKeyState('1')){
                            break;
                        }
                        if (-32767 == GetAsyncKeyState('2')){
                            system("cls");
                            cout<<"开始挂机"<<endl;
                            Sleep(500);
                            system("cls");
                            for(int i=0;i<=6000;i++){
                                cout<<"已挂机"<<i<<"秒"<<endl;
                                for(int j=1;j<=80;j++){
                                    if (-32767 == GetAsyncKeyState('N')){
                                        as=0;
                                        break;
                                    }
                                    Sleep(1);
                                }
                                gjsj++;
                                if(as==0) break;
                                X++;
                                if(X%50==0){
                                    g=g+1;
                                    Speed+=Speed/8;
                                }
                                system("cls");
                            }
                            money+=(Speed*gjsj);
                            cout<<"已挂机完毕,您获得了"<<Speed*gjsj<<"元"<<endl;
                            MessageBox(NULL, "已挂机完毕", "提示", MB_OK);
                            break;
                        }
                    }
                    break;
                }
                break;
            }
            if (-32767 == GetAsyncKeyState('6')){
                system("cls");
                MessageBox(NULL, "想快点赚钱就快点升级(手动赚钱最快哦!!!)", "攻略", MB_OK);
                MessageBox(NULL, "经验也可以增加赚钱速度!", "攻略", MB_OK);
                MessageBox(NULL, "记得看称号(到了最强王者或最强王者以上有惊喜!!!)", "攻略", MB_OK);
                MessageBox(NULL, "没时间玩的话试试挂机,但最多挂机100分钟,挂机也可以加经验哟!", "攻略", MB_OK);
                MessageBox(NULL, "买车买房中可以获得成就哦!", "攻略", MB_OK);
                MessageBox(NULL, "完成主线任务可以获得主线成就哦!", "攻略", MB_OK);
                MessageBox(NULL, "好吧,就这样吧,攻略结束^_^", "攻略", MB_OK);
                break;
            }
            if(-32767 == GetAsyncKeyState('7')){
                system("cls");
                for(int i=1;i<=5;i++){
                    if(mc[i]>=ccj_yao[i]&&ccj[i]=="未获得"){
                        cout<<"恭喜获得成就:"<<ccj_ming[i]<<"!!!(买车成就)"<<endl;
                        ccj[i]="已获得";
                        Sleep(500); 
                    } 
                }
                for(int i=1;i<=4;i++){
                    if(zxcj[i]=="未获得"&&money>=zxcj_yao[i]){
                        cout<<"恭喜获得成就:"<<zxcj_ming[i]<<"!!!(主线成就)"<<endl;
                        zxcj[i]="已获得";
                        Sleep(500); 
                    }
                }
                for(int i=5;i<=7;i++){
                    if(zxcj[i]=="未获得"&&x>=zxcj_yao[i]){
                        cout<<"恭喜获得成就:"<<zxcj_ming[i]<<"!!!(主线成就)"<<endl; 
                        zxcj[i]="已获得";
                        Sleep(500); 
                    }
                }
                for(int i=8;i<=10;i++){
                    if(zxcj[i]=="未获得"&&g>=zxcj_yao[i]){
                        cout<<"恭喜获得成就:"<<zxcj_ming[i]<<"!!!(主线成就)"<<endl;
                        zxcj[i]="已获得";
                        Sleep(500);  
                    }
                }
                cout<<"======================买车成就======================"<<endl;
                cout<<"=1.好多自行车          (拥有自行车1000辆)    "<<ccj[1]<<"="<<endl;
                cout<<"=2.小电驴大亨          (拥有小电驴1000辆)    "<<ccj[2]<<"="<<endl;
                cout<<"=3.谁没二手摩托车?    (拥有二手摩托车1000辆)"<<ccj[3]<<"="<<endl;
                cout<<"=4.骑上我心爱的小摩托  (拥有小摩托车1000辆)  "<<ccj[4]<<"="<<endl;
                cout<<"=5.坐上我心爱的小汽车  (拥有小汽车1000辆)    "<<ccj[5]<<"="<<endl;
                cout<<"======================主线成就======================"<<endl;
                cout<<"=1. 第一桶金           (获得999元)           "<<zxcj[1]<<"="<<endl;
                cout<<"=2. 第二桶金           (获得99999元)         "<<zxcj[2]<<"="<<endl;
                cout<<"=3. 第三桶金           (获得9999999元)       "<<zxcj[3]<<"="<<endl;
                cout<<"=4. 第四桶金           (获得999999999元)     "<<zxcj[4]<<"="<<endl; 
                cout<<"=5. 名声大大嘀         (获得999名声)         "<<zxcj[5]<<"="<<endl;
                cout<<"=6. 名声多多嘀         (获得99999名声)       "<<zxcj[6]<<"="<<endl;
                cout<<"=7. 车太多了           (获得9999999名声)     "<<zxcj[7]<<"="<<endl;
                cout<<"=8. 经验小达人         (获得10经验)          "<<zxcj[8]<<"="<<endl;
                cout<<"=9. 经验达人           (获得30经验)          "<<zxcj[9]<<"="<<endl;
                cout<<"=10.经验大达人         (获得80经验)          "<<zxcj[10]<<"="<<endl;
                cout<<"===================================================="<<endl; 
                Sleep(500);
                cout<<"按n退出"<<endl; 
                while(1){
                    if (-32767 == GetAsyncKeyState('N')){
                        break;
                    }
                }
                break;
            }
        }
        if(X%30==0&&X!=0){
            g=g+1;
            Speed+=Speed/9;
        }
        system("cls");
    }
    return 0;
}

  • 7
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值