• 周三. 4 月 22nd, 2026

物嫩软件资讯网

软件资讯来物嫩

C++战斗游戏———–亘古の起源之战 V8.15.0

admin@wunen

6 月 15, 2025

版本号V8.15.0

最新版本发布时间 2023年3月27日

更新内容如下

1.更新第45级BOSS(BOSS属性:攻击力大约650Y     血量大约9000Y)

2.修改一些BOSS的属性

3.更新兑换码

4.更改游戏名字

5.修改剧情部分内容

6.修复V8.14.0版本存在的BUG

Working界面获取高金额的概率太高

概率闪退

游戏代码如下↓

#include<bits/stdc++.h>
#include<conio.h>
#include<windows.h>
using namespace std;

long long shanghai[50]={0,2,8,22,46,72,126,188,254,476,857,1604,2866,4820,9184,15052,27424,51360,87521,139466,212062,341065,522517,814088,1294527,1840631,3261921,5345068,8123724,12083921,21854367,34898316,62261372,102516728,186928287,325382911,568719273,1002315342,1892893765,3206071928,6018298238,9235472431,12067543421,20007847812,32013142570,65432123456};
long long bosshealth[50]={0,10,18,32,41,87,129,243,363,547,888,1123,2657,5235,10829,20230,40282,87872,144510,262425,480786,843176,1342012,2468431,4785327,8416917,15872380,28495271,54598399,90037286,155629837,289281920,462192839,801828367,1586297482,2409873721,4538298329,8871827361,14752835333,26071882421,42971562431,72536789012,90287451702,147525307912,300000012345,922334576021};
long long wj_shanghai=10,wj_health=50,wj_max_health=50,wj_money=100,boss;
void chushihua();
void game();
void gongji();
void goumai();
void shangdian();
void zhujiemian();
void fangyu();
void cend();
void chushou();
void print(char[]);
void dagong();
int jian1=0,jian2=0,jian3=0,jian4=0,jian5=0,jian6=0,jian7=0,jian8=0,jian9=0,jian10=0,jian11=0,jian12=0,jian13=0,jian14=0;
long long jian1_1=10,jian2_1=50,jian3_1=200,jian4_1=500,jian5_1=1000,jian6_1=4000,jian7_1=20000,jian8_1=100000,jian9_1=500000,jian10_1=5000000,jian11_1=20000000,jian12_1=100000000,jian13_1=500000000,jian14_1=2000000000;
int hujia1=0,hujia2=0,hujia3=0,hujia4=0,hujia5=0,hujia6=0,hujia7=0,hujia8=0,hujia9=0,hujia10=0,hujia11=0,hujia12=0,hujia13=0,hujia14=0;
long long hujia1_1=10,hujia2_1=100,hujia3_1=500,hujia4_1=1000,hujia5_1=5000,hujia6_1=20000,hujia7_1=100000,hujia8_1=400000,hujia9_1=2000000,hujia10_1=10000000,hujia11_1=50000000,hujia12_1=200000000,hujia13_1=1000000000,hujia14_1=4000000000;
void cend()
{
    system("cls");
    print("GAME OVER");
    exit(1);
}
void game()
{
    int k;
    chushihua();
    IO:
    printf("你想和什么等级的怪物对战? 输入(1~45)\n\n");
    printf("打5级建议生命值>200 攻击力>30\n");
	printf("打10级建议生命值>3K 攻击力>300\n");
	printf("打15级建议生命值>4W 攻击力>6K\n\n");
	printf("打20级建议生命值>70W 攻击力>16W\n");
	printf("打25级建议生命值>666W 攻击力>230W\n"); 
	printf("打30级建议生命值>1Y 攻击力>3400W\n\n");
	printf("打35级建议生命值>18Y 攻击力>6Y\n"); 
	printf("打40级建议生命值>320Y 攻击力>85Y\n");
	printf("打45级建议生命值>8500Y 攻击力>2000Y\n\n");
	
    scanf("%d",&k);
    if(k>45||k<1)
    {
        system("cls");
        goto IO;
    }
    boss=bosshealth[k];
    system("cls");
    while(wj_health>=0)
    {
        srand(time(NULL));
        QP:
        printf("1.瞬移至HOME    2.猛烈进攻!\n");
        char s=getch();
        if(s<'1'||s>'2')
        {
            system("cls");
            goto QP;
        }
        if(s=='1')
        {
            system("cls");
            zhujiemian();
        }
        system("cls");
        double l=shanghai[k]*((rand()%2)+1)+fabs(double(rand()%100/100-2));
        cout<<fixed<<setprecision(1)<<"对手对你造成了"<<l<<"点伤害"<<endl; 
        wj_health-=l;
        cout<<fixed<<setprecision(1)<<"你当前剩余生命值:"<<wj_health<<".0"<<endl<<endl;
        if(wj_health<=0)
            cend();
        double o=wj_shanghai*((rand()%2)+1)+double(rand()%10/10);
        boss-=o;
        cout<<fixed<<setprecision(1)<<"你对对手造成了"<<o<<"点伤害"<<endl;
        cout<<fixed<<setprecision(1)<<"对手当前剩余生命值:"<<boss<<".0"<<endl<<endl;
        if(boss<=0)
        {
            cout<<"胜利!"<<endl<<fixed<<setprecision(1)<<"获得"<<shanghai[k]+3<<".0"<<"金币"<<endl<<endl<<"剩余生命值:"<<wj_health<<".0"<<endl;
            wj_money+=shanghai[k]+3;
            cout<<fixed<<setprecision(1)<<"现有金币:"<<wj_money<<".0"<<endl;
            getch();
            if(k==45)
            {
                printf("恭喜你打败Boss! 游戏胜利!\n");
                getch();
                exit(1);
            }
            system("cls");
            zhujiemian();
        }
    }
}
void zhujiemian()
{
    PO:
    printf("1.STARRY的小店  2.击杀怪物  3.Working乐园  4.恢复生命值\n\n"); 
	printf("5.打开智能属性单  6.兑换码\n");
    char k=getch();
    int x; 
    if(k>'6'||k<'1')
    {
        system("cls");
        goto PO;
    }
    if(k=='1')

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注