From 79a9db1c532995c7c760bfb518b43d92dd703280 Mon Sep 17 00:00:00 2001 From: Joris Date: Sun, 15 Nov 2015 20:17:25 +0100 Subject: Change points move type and speed at each level --- src/View/Game.elm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/View/Game.elm') diff --git a/src/View/Game.elm b/src/View/Game.elm index f99369d..2651f8d 100644 --- a/src/View/Game.elm +++ b/src/View/Game.elm @@ -144,15 +144,16 @@ renderScore boardSize currentRoundTime rounds score = { x = 0.0 , y = boardSize.y / 2 - 35 } + scoreText = "L" ++ (toString << currentLevelNumber <| score) ++ " - " ++ (toString score) in if currentRoundTime < 5000 then case List.head rounds of Just round -> renderText boardSize scorePos (roundView round) Nothing -> - renderText boardSize scorePos (toString score) + renderText boardSize scorePos scoreText else - renderText boardSize scorePos (toString score) + renderText boardSize scorePos scoreText renderText : Vec2 -> Vec2 -> String -> Svg renderText boardSize pos content = -- cgit v1.2.3