Fix win prompt

main
trivernis 1 year ago
parent 88d7fed3d9
commit d99c4cb609
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

@ -78,9 +78,12 @@ class FirstScreen(private val parent: Game) : TimeTravelScreen() {
""".trimIndent())
promptStage.addText("""
You can use <W>, <A>, <S> and <D> to walk around the map.
Some doors require keys to be opened.
""".trimIndent())
promptStage.addText("""
Doors can be opened and items picked up with <E>.
Some doors require keys to be opened.
""")
promptStage.addText("""
At some locations you can press <T> to travel to a random spot in time.
The top left indicates where you traveled to.
""".trimIndent())
@ -147,9 +150,9 @@ class FirstScreen(private val parent: Game) : TimeTravelScreen() {
override fun render(delta: Float) {
if (gameState.inventory.checkVictoryCondition()) {
promptStage.visible = true
promptStage.act(delta)
promptStage.clearText()
promptStage.addText("You won!")
promptStage.act(delta)
promptStage.draw()
} else if (!pause) {
uiStage.act(delta)

@ -70,6 +70,7 @@ class PromptStage(skin: Skin?): Stage(ExtendViewport(300f, 300f)) {
val text = text.removeAt(0).trimIndent()
textArea.text = text
} else {
textArea.text = ""
visible = false
}
}

Loading…
Cancel
Save