Add teleport description

main
trivernis 1 year ago
parent ce9b2b0128
commit ca7ac1f5fd
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

@ -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()
}
}

Loading…
Cancel
Save