The player now moves! (in one direction only)

This commit is contained in:
John Shaver 2017-06-27 22:30:50 -07:00
parent 9b2a65f64d
commit 80b92c7444

View file

@ -27,6 +27,12 @@ import GLOBALS exposing (character_radius)
render : Model -> Svg msg render : Model -> Svg msg
render model = render model =
let let
x =
Tuple.first model.player.location
y =
Tuple.second model.player.location
cycleTime = cycleTime =
500 500
@ -42,7 +48,7 @@ render model =
else else
frameCount frameCount
in in
pacman ( 250, 450 ) (degrees openness) pacman ( x, y ) (degrees openness)
pacman : Point -> Float -> Svg msg pacman : Point -> Float -> Svg msg