Commit Graph

8 Commits

Author SHA1 Message Date
e868d0e14f Add display abstraction
In case we want to run this on something that isn't an ANSI terminal, we
have the option to implement it however we want.

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2021-11-20 19:38:06 -08:00
4cf3608f71 Create nice utility function for the example game
It generates a bunch of variants for "western", "eastern", etc path
directions.

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2021-11-20 15:07:18 -08:00
2841b1418c Update example game prelude to be betterer
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2021-11-18 20:51:30 -08:00
2f86df2930 Add room entry auto-triggers, player input, and more
* When you teleport to a room, the teleport auto-triggers fire.
* Rooms have auto-triggers. None by default. They are run every time you
  teleport to a room, and when the game starts. Gate behavior behind a
  variable.
* PlayerInputAction waits for player input (and potentially write it
  into a variable)

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2021-11-18 20:32:02 -08:00
49050c9412 Add disclaimer for the end of the example game, because I haven't made anything else and want to show it off
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2021-11-18 17:36:23 -08:00
0f6433eabd More updates to the example game. Won't be specific here - too much changing, sorry.
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2021-11-18 17:24:46 -08:00
7f86aafc05 Update example game some, update engine some
* Add RevealAction/UnrevealAction for revealing/hiding items in a room
* Add a lot of checks for items being revealed when it's attempted to be
  triggered
* Implement TeleportAction (mostly)
* For all Check* family of actions, the `yes` and `no` values may be
  just be a single action instead of an array of actions
* Change up how room descriptions and stuff work, mostly so that you can
  specify multiple lines in an array so you can preserve paragraph
  breaks when displayed.
* Example game has some more content

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2021-11-18 16:26:16 -08:00
1304b27944 Split out examplegame defs by items, rooms, and vars
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2021-11-18 13:02:16 -08:00