Skip to content

Commit

Permalink
Fixed stars not moving
Browse files Browse the repository at this point in the history
  • Loading branch information
Miko Mynttinen committed Apr 1, 2016
1 parent 1576275 commit 9783c8a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions demo1.elm
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ updateState time state =
in
{ state |
effect = effect,
time = time
time = time,
stars = Starfield.update state.time state.stars
}

selectEffectTime : Float -> Effect
Expand Down Expand Up @@ -71,7 +72,7 @@ view state (w, h) =
Hypnocorn ->
flow outward [hypnocorn w h state.time, toElement 1 1 muzak]
Starfield ->
flow outward [Starfield.view (Starfield.update state.time state.stars) (w, h), toElement 1 1 muzak]
flow outward [Starfield.view state.stars (w, h), toElement 1 1 muzak]
Chilicorn ->
flow outward [chilicorn w h state.time, toElement 1 1 muzak]
Rotozoom ->
Expand Down

0 comments on commit 9783c8a

Please sign in to comment.