diff --git a/README.md b/README.md index 286e7ea..25076f8 100644 --- a/README.md +++ b/README.md @@ -6,12 +6,11 @@ ## Index -- Introduction - - [Getting Started](doc/getting-started.md) - - [Items](doc/items.md) - - [Characters](doc/characters.md) - - [Dialogue Graphs](doc/dialogue-graphs.md) - - [Actions and Events](doc/actions-and-events.md) +- [Getting Started](doc/getting-started.md) +- [Items](doc/items.md) +- [Characters](doc/characters.md) +- [Dialogue Graphs](doc/dialogue-graphs.md) +- [Actions and Events](doc/actions-and-events.md) ## Setup @@ -62,3 +61,30 @@ fun main() { } } ``` + +The game displays the following when run: +``` +.------------. +| Hello Keep | +'------------' +Keep is a text game engine. + +[ Room ] +There is a Magic Potion[1]. + +[ Inventory ] +Your inventory is empty. + +[ Characters ] +Bob[2] is here. + +[ Actions ] +[1] Talk to someone +[2] Use an item + +John> +``` + +The player inputs an action number, and then a number for the target if necessary. + +ie: the input `1 2` talks[1] to bob[2], and `2 1` uses[2] the potion[1]. diff --git a/doc/getting-started.md b/doc/getting-started.md index 1282f11..f938bba 100644 --- a/doc/getting-started.md +++ b/doc/getting-started.md @@ -5,6 +5,7 @@ - [Changing Scenes](#changing-scenes) - [Adding Items](#adding-items) - [Adding NPCs](#adding-npcs) +- [Where to go from here](#where-to-go-from-here) ## Getting Started with a simple game diff --git a/src/main/kotlin/tech/alephia/keep/core/Game.kt b/src/main/kotlin/tech/alephia/keep/core/Game.kt index e67b441..f8a3885 100644 --- a/src/main/kotlin/tech/alephia/keep/core/Game.kt +++ b/src/main/kotlin/tech/alephia/keep/core/Game.kt @@ -23,6 +23,7 @@ class Game( fun draw() { scene.draw(this) + io.separator() } private fun createMap(scenes: List) = diff --git a/src/main/kotlin/tech/alephia/keep/core/scenes/Scene.kt b/src/main/kotlin/tech/alephia/keep/core/scenes/Scene.kt index 58cadb4..48dc14b 100644 --- a/src/main/kotlin/tech/alephia/keep/core/scenes/Scene.kt +++ b/src/main/kotlin/tech/alephia/keep/core/scenes/Scene.kt @@ -69,7 +69,6 @@ class Scene( } private fun InOut.scene() { - separator() title(name) paragraph(narration) }