diff options
author | Joris | 2015-11-15 20:17:25 +0100 |
---|---|---|
committer | Joris | 2015-11-15 20:17:25 +0100 |
commit | 79a9db1c532995c7c760bfb518b43d92dd703280 (patch) | |
tree | 3a9fce622db301b8ebcc9f4f2c50ad89e4e7c182 /src/View | |
parent | 4710e5ac30c44ca8b48a0b2b60ea74b1573b084b (diff) |
Change points move type and speed at each level
Diffstat (limited to 'src/View')
-rw-r--r-- | src/View/Game.elm | 5 |
1 files changed, 3 insertions, 2 deletions
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 = |