diff --git a/src/Main.elm b/src/Main.elm index 2d968a5..1f4702a 100644 --- a/src/Main.elm +++ b/src/Main.elm @@ -305,8 +305,8 @@ view model = --++ [ renderCircle "purple" model.snake.head ] ++ [ image [ x (String.fromInt model.koala.x), y (String.fromInt model.koala.y), width "50px", height "50px", xlinkHref "https://upload.wikimedia.org/wikipedia/commons/4/49/Koala_climbing_tree.jpg" ] [] ] -- ++ [ text_ [ x "5", y "20", Svg.Attributes.style "fill: white"] [ text ("Ticks: " ++ (String.fromInt model.gameTicks))] - ++ [ text_ [ x "300", y "20", Svg.Attributes.style "fill: white", onClick (Key LeftArrow) ] [ text "Left" ] ] - ++ [ text_ [ x "400", y "20", Svg.Attributes.style "fill: white", onClick (Key RightArrow) ] [ text "Right" ] ] + ++ [ text_ [ x "370", y "20", Svg.Attributes.style "fill: white", onClick (Key LeftArrow) ] [ text "←" ] ] + ++ [ text_ [ x "430", y "20", Svg.Attributes.style "fill: white", onClick (Key RightArrow) ] [ text "→" ] ] -- , text_ [ x (String.fromInt ((gridSize.width * cellSize.width) - 5)), y "20", Svg.Attributes.style "fill: white; text-anchor: end"] [ text ("High Score: " ++ (String.fromInt model.highScore))] -- ] -- ++ if (model.state == Inactive && model.gameTicks >= 0) then [ text_ [ x "50%", y "50%", Svg.Attributes.style "dominant-baseline:middle; text-anchor:middle; fill: white; font-size: large"] [ text "Click or touch to begin..." ] ] else []