Add frame clock
This commit is contained in:
+1
-5
@@ -35,12 +35,8 @@ import System.Random
|
||||
--import Data.Bifunctor
|
||||
|
||||
update :: World -> World
|
||||
update = functionalUpdate . pushSideEffects
|
||||
update = (frameClock +~ 1) . functionalUpdate
|
||||
|
||||
pushSideEffects :: World -> World
|
||||
pushSideEffects w = w
|
||||
& sideEffects .~ []
|
||||
& doneSideEffects .~ _sideEffects w
|
||||
{- |
|
||||
The update step.
|
||||
For most menus the only way to change the world is using event handling. -}
|
||||
|
||||
Reference in New Issue
Block a user