同人小游戏之斗罗大陆

news/2024/12/21 20:05:56/

前言

hello,大家好,我是文宇。

最近我好久没写文章了,今天写一章

文章图片没找到,临时拿了一张

正文


#include<iostream>
#include<conio.h>
#include<windows.h>
#include<stdlib.h>
#include<stdio.h>
#include<time.h>
#include<string.h>
using namespace std;
string name, wh, wh3, hsm;
int xthl = 0; //先天魂力
int hldj = 0; //魂力等级
int wh1 = 999; //武魂
int wh2 = 999; //武魂2
long long sxhl = 20; //所需魂力
long long  gj, fy, jy = 0, hp, zdhp, ds = 3; //属性
long long hj[9] = {0}; //九个魂环的年限
long long hj2[9] = {0}; //第二武魂九个魂环的年限
int hh = 0; //第一武魂魂环数量
int hh2 = 0; //第二武魂魂环数量
int jl = 0; //魂环吸收几率
int jhb = 0; //金魂币
int zgn = 0; //诸葛弩
int zmd = 0; //子母胆
int ywt = 0; //阎王帖
int bylh = 0; //暴雨莲花
int fntl = 0; //佛怒唐莲
long long nx;//魂兽年限
long long dfsh;//魂兽的伤害
long long dfsm;//魂兽的生命值
int n, a, p, jg, hs, ct, xs, zd, jn, sz, o, fh, pd, w = 0, xlxl = 100, syaq; //亿些变量
int main() {srand(time(NULL));cout << "-------------------斗罗大陆-----------------------" << endl;cout << "你好,欢迎来到斗罗陆,行走江湖,请留下你的大名:";cin >> name;cout << name << ",你即将觉醒武魂,请做好准备" << endl;Sleep(3000);n = rand() % 5 + 1;if (n >= 0 && n <= 4) {wh1 = rand() % 8;if (wh1 == 0) {wh = "昊天锤";}if (wh1 == 1) {wh = "蓝电霸王龙";}if (wh1 == 2) {wh = "七杀剑";}if (wh1 == 3) {wh = "邪火凤凰";}if (wh1 == 4) {wh = "蓝银皇";}if (wh1 == 5) {wh = "六翼天使";}if (wh1 == 6) {wh = "邪眸白虎";}if (wh1 == 7) {wh = "幽冥灵猫";}cout << "你的武魂 :" << wh << endl;} else {pd = 2;wh1 = rand() % 8;wh2 = rand() % 8;if (wh1 == 0) {wh = "昊天锤";}if (wh1 == 1) {wh = "蓝电霸王龙";}if (wh1 == 2) {wh = "七杀剑";}if (wh1 == 3) {wh = "邪火凤凰";}if (wh1 == 4) {wh = "蓝银皇";}if (wh1 == 5) {wh = "六翼天使";}if (wh1 == 6) {wh = "邪眸白虎";}if (wh1 == 7) {wh = "幽冥灵猫";}if (wh2 == 0) {wh3 = "昊天锤";}if (wh2 == 1) {wh3 = "蓝电霸王龙";}if (wh2 == 2) {wh3 = "七杀剑";}if (wh2 == 3) {wh3 = "邪火凤凰";}if (wh2 == 4) {wh3 = "蓝银皇";}if (wh2 == 5) {wh3 = "六翼天使";}if (wh2 == 6) {wh3 = "邪眸白虎";}if (wh2 == 7) {wh3 = "幽冥灵猫";}cout << "你的武魂 :" << wh << ' ' << "第二武魂 :" << wh3 << endl;}cout << name << ",你即将进行魂力测评,请做好准备" << endl;Sleep(3000);xthl = rand() % 10 + 5;if (pd == 2) {xthl = 10;}if (xthl > 10) {xthl /= 2;}if (xthl <= 1) {cout << "你只是一个普通人,没有魂力,平凡的度过一生!!!" << endl;return 0;} else {hldj = xthl;cout << "你的魂力为" << hldj << "级,请开始你的斗罗之旅" << endl;}if (xthl == 10) {cout << "竟然是先天满魂力!!!将来必成封号斗罗!!!" << endl;}cout << "你来到了城镇" << endl;gj = xthl * 6;fy = xthl * 2;zdhp = xthl * 10;hp = zdhp;goto cz;cz:system("color 0F");SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), BACKGROUND_INTENSITY |FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |FOREGROUND_GREEN);cout << "  -----------------------*城镇*---------------------------------------  \n";cout << "  |       1.暗器店  2.魂兽森林 3.修炼 4.返回主菜单   注:有彩蛋      |  \n";cout << "  --------------------祝您玩的开心------------------------------------  \n";cin >> a;if (a == 1) {SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), BACKGROUND_INTENSITY |FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE | BACKGROUND_GREEN | BACKGROUND_RED);cout << "\n电脑正在拼命加载中...\n\n\n";Sleep(1000);goto aqd;}if (a == 2) {SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), BACKGROUND_INTENSITY |FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE | BACKGROUND_GREEN | BACKGROUND_RED);cout << "\n电脑正在拼命加载中...\n\n\n";Sleep(1000);goto hssl;}if (a == 3) {SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), BACKGROUND_INTENSITY |FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE | BACKGROUND_GREEN | BACKGROUND_RED);cout << "\n电脑正在拼命加载中...\n\n\n";Sleep(1000);goto xl;}if (a == 4) {SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), BACKGROUND_INTENSITY |FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE | BACKGROUND_GREEN | BACKGROUND_RED);cout << "\n电脑正在拼命加载中...\n\n\n";Sleep(1000);goto zcd;}if (a == 111028) {jhb = 1000000;goto cz;}if (a == 888888) {jy += 999999999;goto cz;}aqd:system("color 0F");SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), BACKGROUND_INTENSITY |FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |FOREGROUND_BLUE);cout << "  -------------*暗器店*-----------------------------------------------  \n";cout << "  |1.诸葛弩箭矢5只 2.子母胆 3.阎王帖 4.暴雨莲花 5.佛怒唐莲 6.返回    |  \n";cout << "  |   500金魂币    1000金币 5000金币  10000金币  50000金币           |  \n";cout << "  -----------祝您玩的开心---------------------------------------------  \n";cin >> p;if (p == 1) {SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), BACKGROUND_INTENSITY |FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE | BACKGROUND_GREEN | BACKGROUND_RED);cout << "你有" << jhb << "元\n" << endl;cout << "您购买了诸葛弩*5\n" << endl;cout << "几个:\n";cin >> jg;if (jhb >= jg * 500) {jhb -= jg * 100;zgn += jg * 5;SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED);cout << "购买成功!\n" << endl;cout << "您还有" << jhb << "元" << endl;} else {                                                                                                                                                                                     // 25045SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED);cout << "余额不足!\n";cout << "您有" << jhb << "元" << endl;}Sleep(800);goto aqd;}if (p == 2) {SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), BACKGROUND_INTENSITY |FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE | BACKGROUND_GREEN | BACKGROUND_RED);cout << "你有" << jhb << "元\n" << endl;cout << "您购买了子母胆*2\n" << endl;cout << "几个:\n";cin >> jg;if (jhb >= jg * 1000) {jhb -= jg * 1000;zgn += jg * 2;SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED);cout << "购买成功!\n" << endl;cout << "您还有" << jhb << "元" << endl;} else {                                                                                                                                                                                     // 25045SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED);cout << "余额不足!\n";cout << "您有" << jhb << "元" << endl;}Sleep(800);goto aqd;}if (p == 3) {SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), BACKGROUND_INTENSITY |FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE | BACKGROUND_GREEN | BACKGROUND_RED);cout << "你有" << jhb << "元\n" << endl;cout << "您购买了阎王帖\n" << endl;cout << "几个:\n";cin >> jg;if (jhb >= jg * 5000) {jhb -= jg * 5000;zgn += jg;SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED);cout << "购买成功!\n" << endl;cout << "您还有" << jhb << "元" << endl;} else {                                                                                                                                                                                     // 25045SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED);cout << "余额不足!\n";cout << "您有" << jhb << "元" << endl;}Sleep(800);goto aqd;}if (p == 4) {SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), BACKGROUND_INTENSITY |FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE | BACKGROUND_GREEN | BACKGROUND_RED);cout << "你有" << jhb << "元\n" << endl;cout << "您购买了暴雨梨花\n" << endl;cout << "几个:\n";cin >> jg;if (jhb >= jg * 10000) {jhb -= jg * 10000;zgn += jg;SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED);cout << "购买成功!\n" << endl;cout << "您还有" << jhb << "元" << endl;} else {                                                                                                                                                                                     // 25045SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED);cout << "余额不足!\n";cout << "您有" << jhb << "元" << endl;}Sleep(800);goto aqd;}if (p == 5) {SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), BACKGROUND_INTENSITY |FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE | BACKGROUND_GREEN | BACKGROUND_RED);cout << "你有" << jhb << "元\n" << endl;cout << "您购买了佛怒唐莲\n" << endl;cout << "几个:\n";cin >> jg;if (jhb >= jg * 50000) {jhb -= jg * 50000;zgn += jg;SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED);cout << "购买成功!\n" << endl;cout << "您还有" << jhb << "元" << endl;} else {                                                                                                                                                                                     // 25045SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY | FOREGROUND_RED);cout << "余额不足!\n";cout << "您有" << jhb << "元" << endl;}Sleep(800);goto aqd;}if (p == 6) {goto cz;}hssl:cout << "你正在寻找魂兽中…………" << endl;hs = rand() % 10 + 1;Sleep(3000);switch (hs) {case 1:cout << "你遇到了曼陀罗蛇" << endl;break;case 2:cout << "你遇到了泰坦巨猿" << endl;break;case 3:cout << "你遇到了柔骨兔" << endl;break;case 4:cout << "你遇到了天青牛蟒" << endl;break;case 5:cout << "你遇到了大地之王" << endl;break;case 6:cout << "你遇到了人面魔蛛" << endl;break;case 7:cout << "你遇到了粉红娘娘" << endl;break;case 8:cout << "你遇到了鬼豹" << endl;break;case 9:cout << "你遇到了暗魔邪神虎" << endl;break;case 10:cout << "你遇到了暗金恐爪熊" << endl;break;}if (hh <= 2) nx = rand() % 999 + 1;else if (hh >= 2 || hh <= 4) nx = rand() % 8999 + 1001;else nx = rand() % 899999 + 10001;cout << nx << "年" << endl;cout << "战斗还是撤退(1 or 2)" << endl;cin >> ct;if (ct == 1) {dfsh = nx / 100;dfsm = nx / 2;hp = zdhp;for (;;) {system("color 0F");SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), BACKGROUND_INTENSITY |FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |FOREGROUND_GREEN);cout << "战斗开始 \n";SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), BACKGROUND_INTENSITY |FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |FOREGROUND_BLUE);cout << "1.攻击 2.使用魂技 3.暗器" << endl;cin >> zd;if (zd == 1) {dfsm -= gj;if (dfsh <= 0) {hp -= 0;} else {hp -= dfsh - fy / 2;}cout << "敌方生命" << dfsm << endl;cout << "我方生命" << hp << endl;} else if (zd == 2) {system("color 0F");SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), BACKGROUND_INTENSITY |FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |FOREGROUND_BLUE);cout << "  第一武魂     第二武魂 \n";cout << " 1.第一魂技   10.第一魂技\n";cout << " 2.第二魂技   11.第二魂技\n";cout << " 3.第三魂技   12.第三魂技\n";cout << " 4.第四魂技   13.第四魂技\n";cout << " 5.第五魂技   14.第五魂技\n";cout << " 6.第六魂技   15.第六魂技\n";cout << " 7.第七魂技   16.第七魂技\n";cout << " 8.第八魂技   17.第八魂技\n";cout << " 9.第九魂技   18.第九魂技\n";cin >> jn;if (jn == 1 && hh >= 1) {cout << "你使用了第一魂技" << endl;switch (wh1) {case 0:dfsm -= hj[0] * 1.2;break;case 1:dfsm -= hj[0] = 1.2;break;case 2:dfsm -= hj[0] * 1.5;break;case 3:dfsm -= hj[0] * 1.3 + hj[0] / 10 * 5;break;case 4:dfsm -= gj + ds * 10;break;case 5:dfsm -= gj * 4;hp -= dfsh / 2;break;case 6:fy += hj[0] / 5;gj += hj[0] / 5;hp -= dfsh / 2;break;case 7:dfsm -= gj * 3;hp -= dfsh / 2;break;}}if (jn == 2 && hh >= 2) {cout << "你使用了第二魂技" << endl;switch (wh1) {case 0:gj *= 1 + hj[1] / 100;break;case 1:dfsm -= hj[1] / 2;break;case 2:fy += hj[1] / 10;break;case 3:gj += hj[1] / 10;fy += hj[1] / 15;break;case 4:dfsm -= ds * 30;break;case 5:dfsm -= hj[1] / 1.5;break;case 6:dfsm -= hj[1] / 2;break;case 7:dfsm -= hj[1] / 1.2;break;}}if (jn == 3 && hh >= 3) {cout << "你使用了第三魂技" << endl;switch (wh1) {case 0:dfsm -= gj * 3;break;case 1:gj *= hj[2] / 50;fy += 10;break;case 2:gj += hj[2] / 40;break;case 3:gj += hj[2] / 45;fy += 2;break;case 4:dfsm -= gj * 2 + ds * 10;break;case 5:dfsm -= hj[2] / 3;break;case 6:gj += hj[2] / 50;fy += hldj * 2;break;case 7:dfsm -= gj * 3;break;}}if (jn == 4 && hh >= 4) {cout << "你使用了第四魂技" << endl;switch (wh1) {case 0:dfsm -= hj[3] / 10 * 2;break;case 1:fy += hj[3] / 45;break;case 2:dfsm -= gj * 5 * 0.9;break;case 3:dfsm -= hj[3] / 3 + gj * 1.5;break;case 4:dfsh -= ds * 3;break;case 5:dfsm -= gj * 3;break;case 6:dfsm -= gj / 2 * 10;break;case 7:dfsm -= gj * 3.5;break;}}if (jn == 5 && hh >= 5) {cout << "你使用了第五魂技" << endl;switch (wh1) {case 0:dfsm -= hj[4] / 3;break;case 1:dfsm -= hj[4] / 3;break;case 2:dfsh -= hldj / 5;break;case 3:dfsm -= hldj * 30 * 2;break;case 4:dfsh -= hj[4] / 3.5 + ds * 10;break;case 5:dfsm -= gj * 3;break;case 6:dfsm -= gj / 2 * 10;break;case 7:dfsm -= gj * 3.5;break;}}if (jn == 6 && hh >= 6) {cout << "你使用了第六魂技" << endl;switch (wh1) {case 0:dfsm -= hj[5] / 3.5;gj += hldj / 2;break;case 1:dfsm -= hj[5] / 2;break;case 2:dfsm -= hldj * 100;break;case 3:dfsm -= hj[5] / 2.5;break;case 4:fy += hldj;break;case 5:dfsh *= 0.9;gj *= 1.1;fy *= 1.1;break;case 6:dfsm -= hj[5] / 2.3;break;case 7:fy *= 1.1;gj *= 1.5;break;}}if (jn == 7 && hh >= 7) {cout << "你使用了第七魂技" << endl;switch (wh1) {case 0:gj *= 1.5;fy *= 1.2;break;case 1:gj *= 1.5;fy *= 1.2;break;case 2:gj *= 1.5;fy *= 1.2;break;case 3:gj *= 1.5;fy *= 1.2;break;case 4:gj *= 1.5;fy *= 1.2;break;case 5:gj *= 1.5;fy *= 1.2;break;case 6:gj *= 1.5;fy *= 1.2;break;case 7:gj *= 1.5;fy *= 1.2;break;}}if (jn == 8 && hh >= 8) {cout << "你使用了第八魂技" << endl;switch (wh1) {case 0:fy *= 1.2;hp -= 0;break;case 1:dfsh -= hj[7] / 1.5;gj *= 1.2;break;case 2:gj *= 1.5;dfsm -= hj[7] / 1.5;break;case 3:dfsm -= hj[7] / 1.5;break;case 4:dfsm -= hj[7] / 2.0 + ds * 10;break;case 5:dfsm *= 0.9;gj *= 1.6;fy *= 1.5;break;case 6:dfsm -= hj[7] / 1.5;break;case 7:dfsm -= (gj + fy) * 20;fy = 0;break;}}if (jn == 9 && hh >= 9) {cout << "你使用了第九魂技" << endl;switch (wh1) {case 0:dfsh *= 0.8;dfsm *= 0.9;gj *= 1.8;fy *= 1.5;break;case 1:dfsh -= hj[8] / 1.2;break;case 2:dfsm -= hj[8] / 1.2;break;case 3:dfsm -= hj[8] / 1.1;break;case 4:dfsm -= hj[8] / 1.5 + gj / 2 + ds * 3;break;case 5:dfsm -= hj[8] / 1.3;gj *= 1.8;fy *= 1.6;break;case 6:dfsm -= hj[8] / 1.1;break;case 7:dfsm -= hj[8] / 1.2 + gj * 2;break;}}if (jn == 10 && hh2 >= 1) {cout << "你使用了第一魂技" << endl;switch (wh2) {case 0:dfsm -= hj2[0] * 1.2;break;case 1:dfsm -= hj2[0] = 1.2;break;case 2:dfsm -= hj2[0] * 1.5;break;case 3:dfsm -= hj2[0] * 1.3 + hj2[0] / 10 * 5;break;case 4:dfsm -= gj + ds * 10;break;case 5:dfsm -= gj * 4;hp -= dfsh / 2;break;case 6:fy += hj2[0] / 5;gj += hj2[0] / 5;hp -= dfsh / 2;break;case 7:dfsm -= gj * 3;hp -= dfsh / 2;break;}}if (jn == 11 && hh2 >= 2) {cout << "你使用了第二魂技" << endl;switch (wh2) {case 0:gj *= 1 + hj2[1] / 100;break;case 1:dfsm -= hj2[1] / 2;break;case 2:fy += hj2[1] / 10;break;case 3:gj += hj2[1] / 10;fy += hj2[1] / 15;break;case 4:dfsm -= ds * 30;break;case 5:dfsm -= hj2[1] / 1.5;break;case 6:dfsm -= hj2[1] / 2;break;case 7:dfsm -= hj2[1] / 1.2;break;}}if (jn == 12 && hh2 >= 3) {cout << "你使用了第三魂技" << endl;switch (wh2) {case 0:dfsm -= gj * 3;break;case 1:gj *= hj2[2] / 50;fy += 10;break;case 2:gj += hj2[2] / 40;break;case 3:gj += hj2[2] / 45;fy += 2;break;case 4:dfsm -= gj * 2 + ds * 10;break;case 5:dfsm -= hj2[2] / 3;break;case 6:gj += hj2[2] / 50;fy += hldj * 2;break;case 7:dfsm -= gj * 3;break;}}if (jn == 13 && hh2 >= 4) {cout << "你使用了第四魂技" << endl;switch (wh2) {case 0:dfsm -= hj2[3] / 10 * 2;break;case 1:fy += hj2[3] / 45;break;case 2:dfsm -= gj * 5 * 0.9;break;case 3:dfsm -= hj2[3] / 3 + gj * 1.5;break;case 4:dfsh -= ds * 3;break;case 5:dfsm -= gj * 3;break;case 6:dfsm -= gj / 2 * 10;break;case 7:dfsm -= gj * 3.5;break;}}if (jn == 14 && hh2 >= 5) {cout << "你使用了第五魂技" << endl;switch (wh2) {case 0:dfsm -= hj2[4] / 3;break;case 1:dfsm -= hj2[4] / 3;break;case 2:dfsh -= hldj / 5;break;case 3:dfsm -= hldj * 30 * 2;break;case 4:dfsh -= hj2[4] / 3.5 + ds * 10;break;case 5:dfsm -= gj * 3;break;case 6:dfsm -= gj / 2 * 10;break;case 7:dfsm -= gj * 3.5;break;}}if (jn == 15 && hh2 >= 6) {cout << "你使用了第六魂技" << endl;switch (wh2) {case 0:dfsm -= hj2[5] / 3.5;gj += hldj / 2;break;case 1:dfsm -= hj2[5] / 2;break;case 2:dfsm -= hldj * 100;break;case 3:dfsm -= hj2[5] / 2.5;break;case 4:fy += hldj;break;case 5:dfsh *= 0.9;gj *= 1.1;fy *= 1.1;break;case 6:dfsm -= hj2[5] / 2.3;break;case 7:fy *= 1.1;gj *= 1.5;break;}}if (jn == 16 && hh2 >= 7) {cout << "你使用了第七魂技" << endl;switch (wh2) {case 0:gj *= 1.5;fy *= 1.2;break;case 1:gj *= 1.5;fy *= 1.2;break;case 2:gj *= 1.5;fy *= 1.2;break;case 3:gj *= 1.5;fy *= 1.2;break;case 4:gj *= 1.5;fy *= 1.2;break;case 5:gj *= 1.5;fy *= 1.2;break;case 6:gj *= 1.5;fy *= 1.2;break;case 7:gj *= 1.5;fy *= 1.2;break;}}if (jn == 17 && hh2 >= 8) {cout << "你使用了第八魂技" << endl;switch (wh2) {case 0:fy *= 1.2;hp -= 0;break;case 1:dfsh -= hj2[7] / 1.5;gj *= 1.2;break;case 2:gj *= 1.5;dfsm -= hj2[7] / 1.5;break;case 3:dfsm -= hj2[7] / 1.5;break;case 4:dfsm -= hj2[7] / 2.0 + ds * 10;break;case 5:dfsm *= 0.9;gj *= 1.6;fy *= 1.5;break;case 6:dfsm -= hj2[7] / 1.5;break;case 7:dfsm -= (gj + fy) * 20;fy = 0;break;}}if (jn == 18 && hh2 >= 9) {cout << "你使用了第九魂技" << endl;switch (wh2) {case 0:dfsh *= 0.8;dfsm *= 0.9;gj *= 1.8;fy *= 1.5;break;case 1:dfsh -= hj2[8] / 1.2;break;case 2:dfsm -= hj2[8] / 1.2;break;case 3:dfsm -= hj2[8] / 1.1;break;case 4:dfsm -= hj2[8] / 1.5 + gj / 2 + ds * 3;break;case 5:dfsm -= hj2[8] / 1.3;gj *= 1.8;fy *= 1.6;break;case 6:dfsm -= hj2[8] / 1.1;break;case 7:dfsm -= hj2[8] / 1.2 + gj * 2;break;}}} else if (zd == 3) {cout << "1.诸葛弩 2.子母胆 3.阎王帖 4.暴雨梨花 5.佛怒唐莲" << endl;cin >> syaq;if (syaq == 1) {dfsm -= 100;zgn -= 1;}if (syaq == 2) {dfsm -= 250;zmd -= 1;}if (syaq == 3) {dfsm -= 550;ywt -= 1;}if (syaq == 4) {dfsm -= 1000;bylh -= 1;}if (syaq == 5) {dfsm -= 5000;fntl -= 1;}}if (dfsm <= 0) {cout << "成功击杀!" << endl;cout << "奖励" << nx << "年魂环" << endl;jhb += nx / 20;jy += nx / 15;if (hldj % 10 != 0) {if (jy >= sxhl) {while (jy >= sxhl) {hldj += 1;cout << "恭喜" << name << "升级,当前魂力" << hldj << "级!!!" << endl;cout << "攻击力加6,防御力加2,HP值加10" << endl;gj += 6;fy += 2;zdhp += 10;hp = zdhp;jy -= sxhl;sxhl *= 1.5;}cout << "未达到要求,魂环已自动化为魂力" << endl;cout << ' ' << endl;jy += nx / 50;goto cksx;}if (hldj % 10 == 0) {cout << "魂力达到瓶颈,请吸收魂环" << endl;cout << ' ' << endl;goto cksx;}}if (hldj % 10 == 0) {cout << "是否吸收(1 or 2)" << endl;cin >> xs;if (xs == 1) {if (wh1 >= 0 && wh1 <= 9) {cout << "吸收成功!!!" << endl;cout << ' ' << endl;hh += 1;hldj += 1;gj += 6;fy += 2;zdhp += 10;hp = zdhp;for (int i = hh; i < hh + 1; i++)hj[i] += nx;nx = 0;jl = 0;goto cksx;} else if (wh2 >= 0 && wh2 <= 9) {cout << "魂环给哪个武魂吸收 (1 or 2)" << endl;cin >> sz ;if (sz == 1) {cout << "吸收成功!!!" << endl;cout << ' ' << endl;hh += 1;hldj += 1;gj += 6;fy += 2;zdhp += 10;hp = zdhp;for (int i = hh; i < hh + 1; i++)hj[i] += nx;nx = 0;jl = 0;goto cksx;} else {cout << "吸收成功!!!" << endl;cout << ' ' << endl;hh2 += 1;hldj += 1;gj += 6;fy += 2;zdhp += 10;hp = zdhp;for (int i = hh2; i < hh2 + 1; i++)hj2[i] += nx;nx = 0;jl = 0;goto cksx;}}} else {goto cksx;}}}if (hp <= 0) {cout << "你死了!" << endl;cout << ' ' << endl;goto cksx;}}} else {goto cz;}zcd:system("color 0F");cout << "                                    \n";cout << "  ----------*主菜单*------------    \n";cout << "  |1.城镇 2.查看属性 3.其他     |   \n";cout << "  ---------祝您玩的开心---------    \n";cout << "                                    \n";cout << "                                    \n";cin >> o;if (o == 1) {SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), BACKGROUND_INTENSITY |FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE | BACKGROUND_GREEN | BACKGROUND_RED);cout << "\n电脑正在拼命加载中...\n\n\n";Sleep(1000);goto cz;}if (o == 2) {SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), BACKGROUND_INTENSITY |FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE | BACKGROUND_GREEN | BACKGROUND_RED);cout << "\n电脑正在拼命加载中...\n\n\n";Sleep(1000);goto cksx;}if (o == 3) {SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), BACKGROUND_INTENSITY |FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE | BACKGROUND_GREEN | BACKGROUND_RED);cout << "\n电脑正在拼命加载中...\n\n\n";Sleep(1000);goto qt;}
cksx:zdhp = 0;hp = zdhp;gj = 0;fy = 0;ds = 3;sxhl = 20;xlxl = 200;w = 0;while (w < hldj) {w++;zdhp += 10;hp = zdhp;gj += 6;fy += 2;sxhl *= 1.2;ds += 1;xlxl += 10;}cout << "你的武魂是:" << wh << ' ' << "第二武魂" << ' ' << wh3 << endl << "  攻击力:" << gj << "  防御力:" << fy << endl << "  经验值:" << jy << "/" << sxhl << ' ' << "等级 :" << hldj << ' ' << "  HP:" << zdhp << endl << "修炼效率 :" << xlxl << endl;cout << "金额 :" << jhb << endl;cout << "魂环数" << hh << endl;cout << "第二武魂魂环数" << hh2 << endl;if (wh1 == 0) {cout << ' ' << endl;cout << "1.泰坦之锤" << endl;cout << "3.狂暴之锤" << endl;cout << "2.定力之破." << endl;cout << "4.混沌黑洞" << endl;cout << "5.绚烂之爆" << endl;cout << "6.昊天森罗雷狱" << endl;cout << "7.昊天真身" << endl;cout << "8.千钧壁垒" << endl;cout << "9.湮灭结界" << endl;}if (wh1 == 1) {cout << ' ' << endl;cout << "1.雷霆龙爪" << endl;cout << "2.神龙摆尾" << endl;cout << "3.雷霆万钧" << endl;cout << "4.雷霆龙甲" << endl;cout << "5.蓝电霸王枪" << endl;cout << "6.雷霆审判" << endl;cout << "7.蓝电霸王龙真身" << endl;cout << "8.蓝电龙皇傲" << endl;cout << "9.蓝电神龙破" << endl;}if (wh1 == 2) {cout << ' ' << endl;cout << "1.长剑出锋" << endl;cout << "2.灵剑守护" << endl;cout << "3.剑翼如飞" << endl;cout << "4.剑影重重" << endl;cout << "5.威震四方" << endl;cout << "6.万剑归宗" << endl;cout << "7.七杀真身" << endl;cout << "8.移山填海" << endl;cout << "9.神魔两斩" << endl;}if (wh1 == 3) {cout << ' ' << endl;cout << "1.凤凰火线" << endl;cout << "2.浴火凤凰" << endl;cout << "3.凤翼天翔" << endl;cout << "4.凤凰啸天击" << endl;cout << "5.凤凰流星雨" << endl;cout << "6.凤凰穿天击" << endl;cout << "7.凤凰真身" << endl;cout << "8.凤凰裂地舞" << endl;cout << "9.凤凰霸天舞" << endl;}if (wh1 == 4) {cout << ' ' << endl;cout << "1.缠绕" << endl;cout << "2.寄生" << endl;cout << "3.蛛网束缚" << endl;cout << "4.蓝银囚笼" << endl;cout << "5.蓝银霸王枪" << endl;cout << "6.无敌金身" << endl;cout << "7.蓝银真身" << endl;cout << "8.蓝银邪魔镜之灭" << endl;cout << "9.蓝银天青龙之魂" << endl;}if (wh1 == 5) {cout << ' ' << endl;cout << "1.天使神光" << endl;cout << "2.圣光审判" << endl;cout << "3.天使圣斩" << endl;cout << "4.圣剑" << endl;cout << "5.天堂法律" << endl;cout << "6.圣域五芒星" << endl;cout << "7.天使真身" << endl;cout << "8.太阳炽天使" << endl;cout << "9. 神圣 裁决 七天使之舞" << endl;}if (wh1 == 6) {cout << ' ' << endl;cout << "1.白虎护身障" << endl;cout << "2.白虎烈光波" << endl;cout << "3.白虎金刚变" << endl;cout << "4.白虎流星雨" << endl;cout << "5.白虎魔神变" << endl;cout << "6.白虎破灭杀" << endl;cout << "7.白虎真身" << endl;cout << "8.白虎凌风灭" << endl;cout << "9.白虎天雷灭" << endl;}if (wh1 == 7) {cout << ' ' << endl;cout << "1.幽冥突刺" << endl;cout << "2.幽冥百爪" << endl;cout << "3.幽冥斩" << endl;cout << "4.幽冥影分身" << endl;cout << "5.幽冥影相连" << endl;cout << "6.幽冥附体" << endl;cout << "7.幽冥真身" << endl;cout << "8.幽冥舍身击" << endl;cout << "9.幽冥邪眸杀" << endl;}if (wh2 == 0) {cout << ' ' << endl;cout << "1.泰坦之锤" << endl;cout << "3.狂暴之锤" << endl;cout << "2.定力之破." << endl;cout << "4.混沌黑洞" << endl;cout << "5.绚烂之爆" << endl;cout << "6.昊天森罗雷狱" << endl;cout << "7.昊天真身" << endl;cout << "8.千钧壁垒" << endl;cout << "9.湮灭结界" << endl;}if (wh2 == 1) {cout << ' ' << endl;cout << "1.雷霆龙爪" << endl;cout << "2.神龙摆尾" << endl;cout << "3.雷霆万钧" << endl;cout << "4.雷霆龙甲" << endl;cout << "5.蓝电霸王枪" << endl;cout << "6.雷霆审判" << endl;cout << "7.蓝电霸王龙真身" << endl;cout << "8.蓝电龙皇傲" << endl;cout << "9.蓝电神龙破" << endl;}if (wh2 == 2) {cout << ' ' << endl;cout << "1.长剑出锋" << endl;cout << "2.灵剑守护" << endl;cout << "3.剑翼如飞" << endl;cout << "4.剑影重重" << endl;cout << "5.威震四方" << endl;cout << "6.万剑归宗" << endl;cout << "7.七杀真身" << endl;cout << "8.移山填海" << endl;cout << "9.神魔两斩" << endl;}if (wh2 == 3) {cout << ' ' << endl;cout << "1.凤凰火线" << endl;cout << "2.浴火凤凰" << endl;cout << "3.凤翼天翔" << endl;cout << "4.凤凰啸天击" << endl;cout << "5.凤凰流星雨" << endl;cout << "6.凤凰穿天击" << endl;cout << "7.凤凰真身" << endl;cout << "8.凤凰裂地舞" << endl;cout << "9.凤凰霸天舞" << endl;}if (wh2 == 4) {cout << ' ' << endl;cout << "1.缠绕" << endl;cout << "2.寄生" << endl;cout << "3.蛛网束缚" << endl;cout << "4.蓝银囚笼" << endl;cout << "5.蓝银霸王枪" << endl;cout << "6.无敌金身" << endl;cout << "7.蓝银真身" << endl;cout << "8.蓝银邪魔镜之灭" << endl;cout << "9.蓝银天青龙之魂" << endl;}if (wh2 == 5) {cout << ' ' << endl;cout << "1.天使神光" << endl;cout << "2.圣光审判" << endl;cout << "3.天使圣斩" << endl;cout << "4.圣剑" << endl;cout << "5.天堂法律" << endl;cout << "6.圣域五芒星" << endl;cout << "7.天使真身" << endl;cout << "8.太阳炽天使" << endl;cout << "9. 神圣 裁决 七天使之舞" << endl;}if (wh2 == 6) {cout << ' ' << endl;cout << "1.白虎护身障" << endl;cout << "2.白虎烈光波" << endl;cout << "3.白虎金刚变" << endl;cout << "4.白虎流星雨" << endl;cout << "5.白虎魔神变" << endl;cout << "6.白虎破灭杀" << endl;cout << "7.白虎真身" << endl;cout << "8.白虎凌风灭" << endl;cout << "9.白虎天雷灭" << endl;}if (wh2 == 7) {cout << ' ' << endl;cout << "1.幽冥突刺" << endl;cout << "2.幽冥百爪" << endl;cout << "3.幽冥斩" << endl;cout << "4.幽冥影分身" << endl;cout << "5.幽冥影相连" << endl;cout << "6.幽冥附体" << endl;cout << "7.幽冥真身" << endl;cout << "8.幽冥舍身击" << endl;cout << "9.幽冥邪眸杀" << endl;}cout << "输入 1返回主菜单" << endl;cin >> fh;if (fh == 1) {SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), BACKGROUND_INTENSITY |FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE | BACKGROUND_GREEN | BACKGROUND_RED);cout << "\n电脑正在拼命加载中...\n\n\n";Sleep(1000);goto zcd;} else {SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), BACKGROUND_INTENSITY |FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE | BACKGROUND_GREEN | BACKGROUND_RED);cout << "\n电脑正在拼命加载中...\n\n\n";Sleep(1000);goto cksx;}
qt:system("color 0F");SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), BACKGROUND_INTENSITY |FOREGROUND_INTENSITY | BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE |FOREGROUND_GREEN);cout << "--------------------制作相关信息--------------------\n";Sleep(300);cout << "                 制作者:古拉尔周某                 \n";Sleep(300);cout << "                   制作时间:天                    \n";Sleep(300);cout << "         制作日期:2024年8月7日-2024年8月日        \n";Sleep(300);cout << "                   可以自己修改                     \n";cout << "输入 1返回主菜单" << endl;cin >> fh;if (fh == 1) {SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), BACKGROUND_INTENSITY |FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE | BACKGROUND_GREEN | BACKGROUND_RED);cout << "\n电脑正在拼命加载中...\n\n\n";Sleep(1000);goto zcd;} else {SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), BACKGROUND_INTENSITY |FOREGROUND_RED | FOREGROUND_GREEN | BACKGROUND_BLUE | BACKGROUND_GREEN | BACKGROUND_RED);cout << "\n电脑正在拼命加载中...\n\n\n";Sleep(1000);goto qt;}xl:cout << "你正在修炼…………" << endl;Sleep(3);jy += hldj*xlxl;while (jy >= sxhl) {if (hldj % 10 == 0) {cout << "魂力达到瓶颈,请吸收魂环" << endl;break;}hldj += 1;cout << "恭喜" << name << "升级,当前魂力" << hldj << "级!!!" << endl;jy -= sxhl;sxhl *= 1.2;}goto cz;return 0;
}//点个赞,维护一下作者的肝。

结语

欢迎加入我们的游戏团队  游戏团队(c++)

游戏团队(c++) - 洛谷 | 计算机科学教育新生态 (luogu.com.cn)


http://www.ppmy.cn/news/1533638.html

相关文章

Electron 使⽤ electron-builder 打包应用

electron有几种打包方式&#xff0c;我使用的是electron-builder。虽然下载依赖的时候让我暴躁&#xff0c;使用起来也很繁琐&#xff0c;但是它能进行很多自定义&#xff0c;打包完成后的体积也要小一些。 安装electron-builder&#xff1a; npm install electron-builder -…

Pytorch基本知识

model.state_dict()、model.parameters()和model.named_parameters()的区别 parameters()只包含模块的参数,即weight和bias(包括BN的)。 named_parameters()返回包含模块名和模块的参数的列表,列表的每个元素均是包含layer name和layer param的元组。layer param就是param…

在实时语音交互上超过GPT-4o,端到端语音模型Mini-Omni部署

Mini-Omni是清华大学开源的多模态大型语言模型&#xff0c;具备实时语音输入和流式音频输出的能力。 Mini-Omni模型能够一边听、一边说&#xff0c;一边思考&#xff0c;类似于ChatGPT的语言对话模式。 Mini-Omni模型的主要特点是能够直接通过音频模态进行推理&#xff0c;并…

Android——ContentObserver监听短信

概述 内容观察器ContentObserver给目标内容注册一个观察器&#xff0c;目标内容的数据一旦发生变化&#xff0c;观察器规定好的动作马上触发&#xff0c;从而执行开发者预先定义的代码。 思路 注册一个监听 getContentResolver().registerContentObserver(uri, true, mObser…

【chrome 插件】初窥

目录结构 -----manifest.json #配置文件 |----content.js #对应操纵浏览器页面 |----background.js #一直运行在后台&#xff0c;负责持久化数据, 负责与服务器交互数据 |----popup.js #自动配置到 popup.html, 有权限操纵 popup.html |----popup.html #插件页面其中 popup.j…

相互作用感知的 3D 分子生成 VAE 模型 - DeepICL 评测

DeepICL 是一个基于相互作用感知的 3D 分子生成模型&#xff0c;能够在目标结合口袋内进行相互作用引导的小分子设计。DeepICL 通过利用蛋白质-配体相互作用的普遍模式作为先验知识&#xff0c;在有限的实验数据下也能实现高度的泛化能力。 一、背景介绍 DeepICL 来源于韩国科学…

MySQL 实验 3:创建数据表

MySQL 实验 3&#xff1a;创建数据表 目录 MySQL 实验 3&#xff1a;创建数据表一、创建数据表的语法二、常用的数据类型1、数值型2、日期时间型3、文本类型 三、查看数据库中的表四、查看表结构 关系数据库中的所有数据都保存在数据表&#xff08;table&#xff09;中。表是数…

React第九章(组件通信)

组件通信Props React 组件使用 props 来互相通信。每个父组件都可以提供 props 给它的子组件&#xff0c;从而将一些信息传递给它。Props 可能会让你想起 HTML 属性&#xff0c;但你可以通过它们传递任何 JavaScript 值&#xff0c;包括对象、数组和函数 以及html 元素&#x…