From bdea42b25e60bfadfd8069d6a3d0b802f00376ee Mon Sep 17 00:00:00 2001 From: azoooooo <118elemente@gmail.com> Date: Wed, 13 Jun 2018 17:37:47 +0200 Subject: score und highscore in loststate --- src/main/kotlin/de/romjaki/pluggabledino/game/GameWorld.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/kotlin/de/romjaki/pluggabledino/game/GameWorld.kt') 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 { -- cgit