Commit graph

8 commits

Author SHA1 Message Date
Griffin Smith
6c1eba6762 Allow converting generated levels to entities
Add a new Wall entity, and allow converting generated levels to entity
maps containing them, then finally displaying them using some of
the (now expanded) box drawing machinery.
2019-07-28 17:45:43 -04:00
Griffin Smith
f22bcad817 Add a generic text-prompt system
Add a generic text-prompt system to the Game, and use it to prompt the
character for their name on startup. There's also a Promise type in
util, which is used for the result of the prompt.
2019-07-27 22:16:23 -04:00
Griffin Smith
29c80ac8ba Add the beginning of item entities
Add a new Item raw type and entity type, with preliminary, basic support
for food. There's a really frustrating toml-rs bug that prevents writing
these nicely as toml right now, so I also added support for mixing JSON
and TOML in a single config dir
2019-07-19 21:55:09 -04:00
Griffin Smith
e2d13bd76b Add templates for messages
Implement a template syntax with a nom parser, and a formatter to render
templates to strings.
2019-07-19 11:54:31 -04:00
Griffin Smith
081146da30 Allow static_cfg to include entire directories
Via new "toml_dir" and "json_dir" directives in the macro
2019-07-14 14:29:39 -04:00
Griffin Smith
5af2429ecb Implement a global map of entities
Implement a global map of entities, which allows referencing by either
position or ID and updating the positions of existent entities, and put
the character in there.
2019-07-08 20:58:51 -04:00
Griffin Smith
c643ee1dfc Add messages, with global lookup map
Add support for messages, along with a global lookup map and random
choice of messages.
2019-07-07 12:41:15 -04:00
Griffin Smith
de081d7b1d an @-sign in a box 2019-07-05 22:45:57 -04:00