From 80b92c7444c3f8b71fa5a6d189f610fc20937ddc Mon Sep 17 00:00:00 2001 From: John Shaver Date: Tue, 27 Jun 2017 22:30:50 -0700 Subject: [PATCH] The player now moves! (in one direction only) --- src/Views/Player.elm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Views/Player.elm b/src/Views/Player.elm index 847b681..200d034 100644 --- a/src/Views/Player.elm +++ b/src/Views/Player.elm @@ -27,6 +27,12 @@ import GLOBALS exposing (character_radius) render : Model -> Svg msg render model = let + x = + Tuple.first model.player.location + + y = + Tuple.second model.player.location + cycleTime = 500 @@ -42,7 +48,7 @@ render model = else frameCount in - pacman ( 250, 450 ) (degrees openness) + pacman ( x, y ) (degrees openness) pacman : Point -> Float -> Svg msg