adventure:一款基于文字的冒险游戏

时间:2021-07-20 04:49:23
【文件属性】:
文件名称:adventure:一款基于文字的冒险游戏
文件大小:117KB
文件格式:ZIP
更新时间:2021-07-20 04:49:23
C++ 冒险 一个简单的配置驱动的基于文本的 adevnture 游戏引擎。 配置文件格式 游戏配置在标准 json 中指定。 有一组预期的对象必须存在于配置中才能生成一个有效的游戏,这些对象指定解析引擎的行为、地牢中的项目以及地牢本身。 解析器识别的单词包含在配置中的“words”对象中。单词被指定为以它们所属的语法规则命名的数组。 例如,要指定可以使用词库存和 i 访问库存: "words": { ... "view_inventory": ["inventory", "i"], ... } 语法对象中指定了解析行格式的规则。 语法对象中的一个键指定了一行中第一个单词的类型,值是该行中所有后续单词按预期顺序排列的所需类型的数组。 如果使用 * 作为前导字符指定类型,则该单词类型在该行的解析中是可选的。 要使用可选介词指定动作行为: "grammar": { ..
【文件预览】:
adventure-master
----rapidjson()
--------prettywriter.h(8KB)
--------reader.h(59KB)
--------msinttypes()
--------encodings.h(23KB)
--------stringbuffer.h(3KB)
--------rapidjson.h(22KB)
--------allocators.h(10KB)
--------filewritestream.h(3KB)
--------filereadstream.h(3KB)
--------internal()
--------pointer.h(56KB)
--------memorybuffer.h(3KB)
--------encodedstream.h(10KB)
--------memorystream.h(2KB)
--------error()
--------document.h(87KB)
--------writer.h(14KB)
----src()
--------player.hpp(750B)
--------dungeon.cpp(4KB)
--------parser.cpp(4KB)
--------room.hpp(1KB)
--------trie.hpp(4KB)
--------player.cpp(1KB)
--------item.hpp(674B)
--------node.hpp(3KB)
--------parser.hpp(1KB)
--------dungeon.hpp(1KB)
--------item.cpp(2KB)
--------room.cpp(4KB)
----main.cpp(5KB)
----config.json(3KB)
----README.md(4KB)
----Makefile(457B)
----tests()
--------parser_test.cpp(2KB)
--------trie_test.cpp(2KB)
--------json()
--------main.cpp(118B)
----obj()
--------.gitkeep(0B)
----.gitignore(383B)

网友评论