The player now moves! (in one direction only)
This commit is contained in:
parent
9b2a65f64d
commit
80b92c7444
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue