diff options
author | azoooooo <118elemente@gmail.com> | 2018-06-13 17:37:47 +0200 |
---|---|---|
committer | azoooooo <118elemente@gmail.com> | 2018-06-13 17:37:47 +0200 |
commit | bdea42b25e60bfadfd8069d6a3d0b802f00376ee (patch) | |
tree | b43257a9817dc49fa0726d9771bf316499b06211 /src/main/kotlin/de/romjaki/pluggabledino/game/GameWorld.kt | |
parent | 16e4951fac7f6925f0ea34d9b23ee6c1b56f0355 (diff) | |
download | pluggabledino-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.kt | 2 |
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 { |