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
1 changed files with 7 additions and 1 deletions

View File

@ -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