Skip to content

Commit

Permalink
FINAL COMMIT AND IM NOT FINISHED
Browse files Browse the repository at this point in the history
  • Loading branch information
meoowe committed Dec 1, 2023
1 parent 325192f commit 9cdede7
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/commonMain/kotlin/main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class TitleScreen : Scene() {
fontSize = 15.0
}
val creditsButton = uiButton {
onClick { sceneContainer.changeTo { Credits() }; clickSound.play() }
onClick { sceneContainer.changeTo { Winningscreen.Credits() }; clickSound.play() }
text = "Credits"
stage?.let { alignRightToRightOf(it) }
stage?.let {alignBottomToBottomOf(it)}
Expand Down Expand Up @@ -235,7 +235,7 @@ class GameScene : Scene() {
fontSize = 20.0
}
val creditsButton = uiButton {
onClick { sceneContainer.changeTo { Credits() }; clickSound.play() }
onClick { sceneContainer.changeTo { Winningscreen.Credits() }; clickSound.play() }
text = "Credits"
stage?.let { alignRightToRightOf(it) }
centerXOnStage()
Expand All @@ -258,11 +258,15 @@ class Winningscreen : Scene() {
centerYOnStage()
font = KR.publicpixel.read()
}
val continueText = text("Press ENTER to continue") {
val continueText = text("Press ENTER or button to continue") {
centerXOnStage()
positionY(200)
font = KR.publicpixel.read()
}
val continueButton = uiButton() {
text = "Continue"
onClick { sceneContainer.changeTo { TitleScreen() }
}
continueText.interval(2.seconds) {
continueText.visible = !continueText.visible
}
Expand Down Expand Up @@ -326,7 +330,7 @@ class Credits : Scene() {
}


}
}}



Expand Down

0 comments on commit 9cdede7

Please sign in to comment.