Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
struct_cym
游戏编写
提交
3c95ac54
游
游戏编写
项目概览
struct_cym
/
游戏编写
通知
5
Star
2
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
游
游戏编写
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
3c95ac54
编写于
9月 18, 2021
作者:
struct_cym
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update game.cpp
上级
1900e406
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
52 addition
and
24 deletion
+52
-24
game.cpp
game.cpp
+52
-24
未找到文件。
game.cpp
浏览文件 @
3c95ac54
...
...
@@ -28,7 +28,6 @@ void start();
void
board
();
void
maps
();
void
bag
();
//bug 可以先看一下,不知道出了什么问题
void
box
();
void
equips
();
//装备 未完成
void
skill_board
();
//技能板 未完成
void
lingdong
();
...
...
@@ -52,6 +51,15 @@ void fourteen();
void
fifteen
();
const
int
N
=
1e3
+
10
;
int
zhuangbei
[
N
];
/*
最高级 神的庇护
第二级:
荆棘护甲 熔岩拳套
*/
struct
op
{
string
name
;
string
lei
;
...
...
@@ -155,7 +163,7 @@ void board(){
cout
<<
"攻击:"
<<
attack
[
grade
]
<<
endl
;
cout
<<
"防御:"
<<
defense
[
grade
]
<<
endl
;
Sleep
(
1000
);
cout
<<
"1.地图 "
<<
"2.背包 "
<<
"3.精灵箱
"
<<
"4.装备
"
<<
"5.技能板 "
<<
endl
;
cout
<<
"1.地图 "
<<
"2.背包 "
<<
"3.精灵箱
(已删除) "
<<
"4.合成台
"
<<
"5.技能板 "
<<
endl
;
}
void
maps
(){
...
...
@@ -479,26 +487,7 @@ void lingdong(){
}
void
equips
(){
cout
<<
"暂时为空"
;
// cout<<"头部:"<<head<<endl;
// cout<<"胸甲:"<<body<<endl;
// cout<<"裤子:"<<trousers<<endl;
// cout<<"鞋子:"<<shoes<<endl;
// cout<<"武器:"<<
// cout<<endl;
// cout<<"请问是否要调整装备"<<endl;
// cout<< "1.要 2.不要";
// cin>>option;
// if(option==1){
// bag2();
// cout<<"请输入要替换的装备的名称"<<endl;
// string a;
// cin>>a;
// for(int i=0;i<100;i++){
// if()
// }
//
// }
cout
<<
"请问你要合成以下哪些装备呢?"
<<
endl
;
}
void
equip_bag
(){
...
...
@@ -645,7 +634,6 @@ void huo(){
int
n
=
rand
()
%
10
+
1
;
if
(
n
==
1
){
cout
<<
",你获得了 地龙之心 "
<<
endl
;
//加坐骑的属性
}
else
{
cout
<<
",你获得了 熔炎宝石"
<<
endl
;
}
...
...
@@ -724,7 +712,47 @@ void jin(){
}
void
shu
(){
cout
<<
"暂时为空"
;
cout
<<
"恶魔树林"
<<
endl
;
cout
<<
"这里是恶魔居住的地方"
<<
endl
;
cout
<<
"1.撸树 2.闲逛(与恶魔干架)"
;
cin
>>
option
;
int
exits1
=
0
;
if
(
option
==
1
){
while
(
!
exits1
){
cout
<<
"撸树中..."
<<
endl
;
Sleep
(
3000
);
int
y
=
rand
()
%
5
+
1
;
if
(
y
==
1
){
cout
<<
"恭喜你获得了 藤条"
<<
endl
;
}
y
=
rand
()
%
10
+
1
;
if
(
y
==
5
){
cout
<<
"恭喜你惹怒了 树神 "
<<
endl
;
grade
++
;
cout
<<
"但是树神早已被这里隐藏的恶魔折磨的虚弱不堪"
<<
endl
;
Sleep
(
1000
);
cout
<<
"他想让你干掉恶魔"
<<
endl
;
Sleep
(
1000
);
cout
<<
"他需要你"
<<
endl
;
Sleep
(
1000
);
if
(
attribute
==
2
){
cout
<<
"因为你是木系"
<<
endl
;
Sleep
(
1000
);
cout
<<
"所以你获得了树神的传承 千手顶上化佛"
<<
endl
;
Sleep
(
1000
);
jineng
[
2
]
=
1
;
}
}
cout
<<
"恭喜你获得了 木头 "
<<
endl
;
cout
<<
"1.继续 2.离开"
<<
endl
;
cin
>>
option
;
if
(
option
==
2
){
exits1
=
1
;
}
}
}
}
void
lu
(){
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录