summaryrefslogtreecommitdiff
path: root/src/main/kotlin/de/romjaki/pluggabledino/states/MainMenu.kt
diff options
context:
space:
mode:
authorromangraef <roman.graef@gmail.com>2018-06-09 15:34:38 +0200
committerromangraef <roman.graef@gmail.com>2018-06-09 15:34:38 +0200
commitb84e23aa359ec68bf4072501301a6631e71163ec (patch)
tree2539e7c27d24c4590282f7cbd01ed27802266f05 /src/main/kotlin/de/romjaki/pluggabledino/states/MainMenu.kt
parentb601ff558245bcc874f5ba481c3dd2df5f40a14d (diff)
downloadpluggabledino-b84e23aa359ec68bf4072501301a6631e71163ec.tar.gz
pluggabledino-b84e23aa359ec68bf4072501301a6631e71163ec.tar.bz2
pluggabledino-b84e23aa359ec68bf4072501301a6631e71163ec.zip
refactored scaling
Diffstat (limited to 'src/main/kotlin/de/romjaki/pluggabledino/states/MainMenu.kt')
-rw-r--r--src/main/kotlin/de/romjaki/pluggabledino/states/MainMenu.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/kotlin/de/romjaki/pluggabledino/states/MainMenu.kt b/src/main/kotlin/de/romjaki/pluggabledino/states/MainMenu.kt
index 0d4d23b..c67b8ea 100644
--- a/src/main/kotlin/de/romjaki/pluggabledino/states/MainMenu.kt
+++ b/src/main/kotlin/de/romjaki/pluggabledino/states/MainMenu.kt
@@ -49,7 +49,7 @@ class MainMenu : BasicGameState() {
val settingsButton = Button("SETTINGS", WIDTH / 2f, HEIGHT / 2f + 100)
override fun render(container: GameContainer?, game: StateBasedGame?, g: Graphics?) {
g!!
- g.scale(1.25f,1.25f)
+ g.scale(WIDTH_RATIO, HEIGHT_RATIO)
g.background = Color.lightGray
g.drawImage(dinoAnimated.currentFrame, WIDTH / 2f - 16, HEIGHT / 2f - 16f)
playButton.draw(g)