diff options
author | Roman Gräf <roman.graef@gmail.com> | 2018-06-09 15:17:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-09 15:17:36 +0200 |
commit | e12e295df1c52735dce4147ac4ac317f6587a58a (patch) | |
tree | bbd701365c8bda1cf3a87c0ddb189328db3d3e2f /src/main/kotlin | |
parent | 04dbb7935d70f41aca331f5e77949bd1ff6cabf8 (diff) | |
parent | 45acd8e70ba3ad894450cacfa4ec1cb671399b9a (diff) | |
download | pluggabledino-e12e295df1c52735dce4147ac4ac317f6587a58a.tar.gz pluggabledino-e12e295df1c52735dce4147ac4ac317f6587a58a.tar.bz2 pluggabledino-e12e295df1c52735dce4147ac4ac317f6587a58a.zip |
Merge pull request #3 from romangraef/iki
Lost State Backgroud => light gray
Diffstat (limited to 'src/main/kotlin')
3 files changed, 3 insertions, 3 deletions
diff --git a/src/main/kotlin/de/romjaki/pluggabledino/game/GameWorld.kt b/src/main/kotlin/de/romjaki/pluggabledino/game/GameWorld.kt index 2495b9c..aac55e2 100644 --- a/src/main/kotlin/de/romjaki/pluggabledino/game/GameWorld.kt +++ b/src/main/kotlin/de/romjaki/pluggabledino/game/GameWorld.kt @@ -85,7 +85,7 @@ class GameWorld : ContactListener { fun createCactus() { val body = world.createBody(cactiBodyDef) - body.position.set(10f, 39f) + body.position.set(20f, 39f) val shape = PolygonShape() shape.setAsBox(1f, 1f) val cactiFixtureDef = FixtureDef() diff --git a/src/main/kotlin/de/romjaki/pluggabledino/states/GameState.kt b/src/main/kotlin/de/romjaki/pluggabledino/states/GameState.kt index 0d4fff0..3f3a01e 100644 --- a/src/main/kotlin/de/romjaki/pluggabledino/states/GameState.kt +++ b/src/main/kotlin/de/romjaki/pluggabledino/states/GameState.kt @@ -36,7 +36,7 @@ class GameState : BasicGameState() { override fun render(container: GameContainer?, game: StateBasedGame?, g: Graphics?) { g!! - g.background = Color.lightGray + g.background = Color.white if (world.hurt) { g.background = Color.red } diff --git a/src/main/kotlin/de/romjaki/pluggabledino/states/LostState.kt b/src/main/kotlin/de/romjaki/pluggabledino/states/LostState.kt index ce245b6..9ebd2be 100644 --- a/src/main/kotlin/de/romjaki/pluggabledino/states/LostState.kt +++ b/src/main/kotlin/de/romjaki/pluggabledino/states/LostState.kt @@ -32,7 +32,7 @@ class LostState : BasicGameState() { override fun render(container: GameContainer?, game: StateBasedGame?, g: Graphics?) { g!! - g.background = Color.red + g.background = Color.lightGray back.draw(g) playAgain.draw(g) } |