Harry Potter RPG_1
RPG——Harry Potter
博主最近迷上了《Harry Potter》
So 我制作了一款RPG对话模拟游戏,
目前主线以进行到了分院以后:
有兴趣的小伙伴可以看看,能点个关注就更好了\(>_<)/
以下是程序的准备
#include<bits/stdc++.h>
#include<conio.h>
#include<windows.h>
using namespace std;
struct one{
string name;
int s;
int age;
//金钱
int money1,money2,money3;//金加隆,银西可,铜纳特
//魔杖,魔法
int magic;
int magican[100];
int magnum;
//外观
string _1;//发色
string _2;//皮肤
string _3;//眼睛
string _4;//衣服
string w;
//物品
int thing[100];
int thnum;
};
string se[2]={"先生","女士"}; //称谓
string adj[2]={"帅气","美丽"};//adj
string mag[8]={"凤凰尾羽紫衫木魔杖","独角兽毛山楂木魔杖","雷鸟羽毛雪杉木魔杖","火龙神经硬木魔杖","独角兽毛雪松木魔杖","凤凰尾羽柳木魔杖","赤木凤凰尾羽魔杖","铁木夜骑尾毛魔杖"};
string gic[100]={"除你武器","飞来","障碍重重","护神护卫","门牙塞大棒","钻心剜骨","阿瓦达索命","魂魄出窍","神锋无影"};//魔法
string thing[4]={"光轮2001","魔法石","白鲜香精"}; //物品
int magn=8; //魔杖种类数量
string drink[2]={"黄油啤酒","火焰威士忌"};//饮料种类
int dn=2;//饮料种类数量
int dw[2]={5,10};//饮料价格
string school[6]={"无","格兰芬多","赫奇帕奇","拉文克劳","斯莱特林","阿兹卡班"};//五大学院(doge)
int sflag;
int life;
one player;//玩家
//转场
void jump(){
for(int i=0;i<3;i++){
system("cls");
cout<<"..."<<endl;
Sleep(800);
system("cls");
cout<<"...."<<endl;
Sleep(800);
}
}
//随机函数
int come(int a,int b){
srand((int)time(0));
return (rand()%(b-a+1))+a;
}
//歇停
void change(){
getch();
system("cls");
}
Harry Potter RPG_1的更多相关文章
- 2015年第6本(英文第5本):Harry Potter 1 哈利波特与魔法石
书名: Harry Potter 1 – Harry Potter and the Sorcerer’s Stone 作者:J.K. Rowling 单词数:7.8万 不重复单词数:6000(我怎么感 ...
- HDU 4771 Stealing Harry Potter's Precious
Stealing Harry Potter's Precious Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 ...
- Interview-Harry Potter walk through matrix.
假设你是harry potter,在grid的左上角,你现在要走到右下角,grid中有正数也有负数,遇到正数表示你的strength增加那么多,遇到负数表示strength减少那么多,在任何时刻如果你 ...
- Harry Potter
Names appearing in "Harry Potter" 1.Harry Potter ①Harry is from Henry. ②Harry is related t ...
- hdu 4771 Stealing Harry Potter's Precious(bfs)
题目链接:hdu 4771 Stealing Harry Potter's Precious 题目大意:在一个N*M的银行里,贼的位置在'@',如今给出n个宝物的位置.如今贼要将全部的宝物拿到手.问最 ...
- hdu4771 Stealing Harry Potter's Precious
注意--你可能会爆内存-- 假设一个直接爆搜索词-- 队列存储器元件被减少到-- #include<iostream> #include<map> #include<st ...
- Harry Potter and the Prisoner of Azkaban
称号:Harry Potter and the Prisoner of Azkaban 作者:J.K. Rowling 篇幅: 448页 蓝思值:880L 用时: 11天 工具: 有道词典 [ ...
- HDU 3988 Harry Potter and the Hide Story(数论-整数和素数)
Harry Potter and the Hide Story Problem Description iSea is tired of writing the story of Harry Pott ...
- HDU3988-Harry Potter and the Hide Story(数论-质因数分解)
Harry Potter and the Hide Story Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536/65536 ...
- Harry Potter and J.K.Rowling(半平面交+圆和矩形交)
Harry Potter and J.K.Rowling http://acm.hdu.edu.cn/showproblem.php?pid=3982 Time Limit: 2000/1000 MS ...
随机推荐
- uniapp 全局背景音乐播放+暂停(跳转页面不暂停)
最近需要一个功能 是在h5中播放小游戏的背景音乐,但是跳转界面之后音乐不暂停,就是跳转多个页面之后,音乐依然在播放,在游戏界面会有设置的静音的按钮,可以开启音乐和关闭音乐. 单独建了一个music.j ...
- Java 集合框架体系简介
为什么要使用集合 存储多个数据可以使用数组,但由于数组在内存中是连续存储的,所以会有一些限制.比如数组在创建时就要指定长度,即可以容纳的元素个数,且指定后无法更改:数组在创建时需要指定元素的类型,并且 ...
- C++ 核心指南之资源管理(下)—— 智能指针最佳实践
C++ 核心指南(C++ Core Guidelines)是由 Bjarne Stroustrup.Herb Sutter 等顶尖 C+ 专家创建的一份 C++ 指南.规则及最佳实践.旨在帮助大家正确 ...
- prometheus描点原理
大家好,我是蓝胖子,关于prometheus的入门教程有很多,拿我之前学prometheus的经历来讲,看了很多教程,还是会对prometheus的描点以及背后的统计原理感到迷惑,所以今天我们就来分析 ...
- 【Springboot】SpringBoot-Admin 服务监控+告警通知
SpringBoot-Admin 服务监控 简单介绍 Spring Boot Actuator 是 Spring Boot 自带的一个功能模块, 提供了一组已经开箱即用的生产环境下常用的特性和服务,比 ...
- 求任意两个正整数的最大公约数(GCD)。
问题描述 求任意两个正整数的最大公约数(GCD). 问题分析 如果有一个自然数a能被自然数b整除,则称a为b的倍数,b为a的约数.几个自然数公有的约数,叫做这几个自然数的公约数.公约数中最大的一个公约 ...
- PREDIV与PLLMUL配置应用笔记
下图为CH32V305/307和CH32F205/207时钟树框图,在此,以CH32V307VCT6芯片,外置25MHz晶振为例,简述图中PREDIV与PLLMUL的配置方法,最终实现144MHz系统 ...
- java发送http请求(jquery发送http请求,前后端看这一篇文章够了,很完整)
为什么写这篇博客? 1.目前很多系统使用了微服务架构,那么各个微服务之间进行内部通信一般采用http协议的方式,springcloud中提供了ribbon,feign,openFeign等组件. 但是 ...
- UE构建基础和实践:四、使用脚本打包
序言 使用UE版本为UE5.20 在实际项目中,我们常常使用自动化脚本来进行构建,它可以增加我们的生产效率,并降低人为操作带来的失误风险. BuildGraph BuildGraph UE官方提供的构 ...
- 【做题笔记】树形 dp
luoguP1122 最大子树和 Solve 设计状态 \(dp[i]\) 表示子树 \(i\) 的最大点权和,则有: 当 \(dp[son[i]] > 0\) 时,选以 \(son[i]\) ...