Last active
October 19, 2015 11:56
-
-
Save pmiddend/86a510b977440594a334 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Vorbedingungen: | |
| -- | |
| -- gameover :: Behavior (Behavior Bool) | |
| -- normalPicture :: Behavior (Behavior Picture) | |
| -- gameoverPicture :: Picture -> Behavior Picture | |
| go <- gameover -- go :: Behavior Bool | |
| goEvent <- Control.FRPNow.Lib.when go -- goEvent :: Event () | |
| goPic <- snapshot normalPicture goEvent -- goPic :: Event (Behavior Picture) | |
| switch normalPicture (gameoverPicture <$> goPic) -- :: Behavior (Behavior Picture) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment