Skip to content

Commit

Permalink
Change to unicode arrows
Browse files Browse the repository at this point in the history
  • Loading branch information
TheodoreEhrenborg committed Jun 1, 2024
1 parent 3876749 commit d4ee208
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Main.elm
Original file line number Diff line number Diff line change
Expand Up @@ -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 []
Expand Down

0 comments on commit d4ee208

Please sign in to comment.