diff options
author | romangraef <roman.graef@gmail.com> | 2018-06-09 15:34:38 +0200 |
---|---|---|
committer | romangraef <roman.graef@gmail.com> | 2018-06-09 15:34:38 +0200 |
commit | b84e23aa359ec68bf4072501301a6631e71163ec (patch) | |
tree | 2539e7c27d24c4590282f7cbd01ed27802266f05 /src/main/kotlin/de/romjaki/pluggabledino/states/MainMenu.kt | |
parent | b601ff558245bcc874f5ba481c3dd2df5f40a14d (diff) | |
download | pluggabledino-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.kt | 2 |
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) |