summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorazoooooo <118elemente@gmail.com>2018-06-09 15:15:46 +0200
committerazoooooo <118elemente@gmail.com>2018-06-09 15:15:46 +0200
commit45acd8e70ba3ad894450cacfa4ec1cb671399b9a (patch)
treebbd701365c8bda1cf3a87c0ddb189328db3d3e2f
parent04dbb7935d70f41aca331f5e77949bd1ff6cabf8 (diff)
downloadpluggabledino-45acd8e70ba3ad894450cacfa4ec1cb671399b9a.tar.gz
pluggabledino-45acd8e70ba3ad894450cacfa4ec1cb671399b9a.tar.bz2
pluggabledino-45acd8e70ba3ad894450cacfa4ec1cb671399b9a.zip
Lost State Backgroud => light gray
-rw-r--r--src/main/kotlin/de/romjaki/pluggabledino/game/GameWorld.kt2
-rw-r--r--src/main/kotlin/de/romjaki/pluggabledino/states/GameState.kt2
-rw-r--r--src/main/kotlin/de/romjaki/pluggabledino/states/LostState.kt2
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)
}