summaryrefslogtreecommitdiff
path: root/src/main/kotlin/de/romjaki/pluggabledino/game/GameWorld.kt
diff options
context:
space:
mode:
authorazoooooo <118elemente@gmail.com>2018-06-13 17:37:47 +0200
committerazoooooo <118elemente@gmail.com>2018-06-13 17:37:47 +0200
commitbdea42b25e60bfadfd8069d6a3d0b802f00376ee (patch)
treeb43257a9817dc49fa0726d9771bf316499b06211 /src/main/kotlin/de/romjaki/pluggabledino/game/GameWorld.kt
parent16e4951fac7f6925f0ea34d9b23ee6c1b56f0355 (diff)
downloadpluggabledino-bdea42b25e60bfadfd8069d6a3d0b802f00376ee.tar.gz
pluggabledino-bdea42b25e60bfadfd8069d6a3d0b802f00376ee.tar.bz2
pluggabledino-bdea42b25e60bfadfd8069d6a3d0b802f00376ee.zip
score und highscore in loststate
Diffstat (limited to 'src/main/kotlin/de/romjaki/pluggabledino/game/GameWorld.kt')
-rw-r--r--src/main/kotlin/de/romjaki/pluggabledino/game/GameWorld.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/kotlin/de/romjaki/pluggabledino/game/GameWorld.kt b/src/main/kotlin/de/romjaki/pluggabledino/game/GameWorld.kt
index 21c0571..9c405f0 100644
--- a/src/main/kotlin/de/romjaki/pluggabledino/game/GameWorld.kt
+++ b/src/main/kotlin/de/romjaki/pluggabledino/game/GameWorld.kt
@@ -121,7 +121,7 @@ class GameWorld : ContactListener {
if (delay < 0) {
createCactus1()
- delay = random.nextFloat() + rand(1, 3)-0.5f
+ delay = random.nextFloat() + rand(2, 3)-0.5f
}
cacti.forEach {