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 ...
随机推荐
- 【技术积累】Python中的NumPy库【一】
NumPy库是什么 NumPy是Python科学计算的核心库之一,用来进行科学计算,数值分析等矩阵运算.主要提供了以下几种功能: 1.多维数组(ndarray)对象,可以进行快速的数值计算和数组操作: ...
- .NET 8 Preview 5发布,了解一下Webcil 是啥
2023年6月13日 .NET 8 Preview 5,.NET 团队在官方博客发布了系列文章: Announcing .NET 8 Preview 5 ASP.NET Core updates in ...
- 温故知新,signalR、RSA加密、ConcurrentQueue队列
这是一个用户密码异步加解密的Demo,包含了RSA非对称加密,ConcurrentQueue线程安全队列使用,signalR实时推送加解密信息等内容. 说在前面的话 距离上次更新已然快过去一年了,这中 ...
- 【xx-job】 定时任务调度
XXL-JOB XXL-JOB是一个分布式任务调度平台,其核心设计目标是开发迅速.学习简单.轻量级.易扩展. 现已开放源代码并接入多家公司线上产品线,开箱即用. 一.任务调度中心 1.1 下载XXL- ...
- 【调制解调】FM 调频
说明 学习数字信号处理算法时整理的学习笔记.同系列文章目录可见 <DSP 学习之路>目录,代码已上传到 Github - ModulationAndDemodulation.本篇介绍 FM ...
- Django: Invalid block tag on line 5: 'static', expected 'endblock'. Did you forget to register or load this tag?
错误释义:在第5行中无效的块标签:'static',期望的'endblock'.你忘记登记或装载这个标签了吗? 错误原因:没有引入static文件 {% extends 'base.html' %} ...
- 钟表练习 html+css实现
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title> ...
- OpenUSD联盟:塑造元宇宙的3D未来
一.引言 近日,美国3D内容行业的五家主要公司苹果.英伟达.皮克斯.Adobe和Autodesk联合成立了OpenUSD联盟(AOUSD).这一联盟的成立标志着元宇宙领域的一次重要合作,旨在制定元宇宙 ...
- Python类型提示
摘自:Python 类型提示简介 - FastAPI (tiangolo.com) 快速入门 类型提示用于声明一个变量的类型,在Python 3.6+版本的时候引入. 示例: def get_full ...
- 1.0 Python 标准输入与输出
python 是一种高级.面向对象.通用的编程语言,由Guido van Rossum发明,于1991年首次发布.python 的设计哲学强调代码的可读性和简洁性,同时也非常适合于大型项目的开发.py ...