From ca7ac1f5fdaf83b4743959d7d27e2935def1c253 Mon Sep 17 00:00:00 2001 From: trivernis Date: Sun, 20 Nov 2022 12:04:59 +0100 Subject: [PATCH] Add teleport description --- core/src/main/kotlin/com/last/commit/map/TimeMap.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/main/kotlin/com/last/commit/map/TimeMap.kt b/core/src/main/kotlin/com/last/commit/map/TimeMap.kt index 736e08a..a19fa4a 100644 --- a/core/src/main/kotlin/com/last/commit/map/TimeMap.kt +++ b/core/src/main/kotlin/com/last/commit/map/TimeMap.kt @@ -50,7 +50,6 @@ class TimeMap(fileName: String, val state: GameState) { state.map = mapState mapStates[fileName] = mapState mapRenderer = OrthogonalTiledMapRenderer(map) - this.textureLoader.parse() } @@ -63,6 +62,9 @@ class TimeMap(fileName: String, val state: GameState) { val targetMap = teleporter.properties.get("target", String::class.java) System.out.println("Teleporting to targetMap $targetMap") loadMap("tiled/$targetMap") + val mapDescription = mapState.description + state.dialogStage.setTexts("You teleported to $mapDescription") + state.dialogStage.show() } }