Created
October 19, 2015 11:58
-
-
Save pmiddend/1aebea62f37e2cdd24b6 to your computer and use it in GitHub Desktop.
This file contains 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 Bool | |
-- normalPicture :: Behavior (Behavior Picture) | |
-- gameoverPicture :: Picture -> Behavior Picture | |
go <- gameover -- go :: Behavior Bool | |
goEvent <- Control.FRPNow.Lib.when go -- goEvent :: Event () | |
normalPic <- normalPicture -- normalPic :: Behavior Picture | |
goPic <- snapshot normalPic goEvent -- goPic :: Event Picture | |
switch normalPic (gameoverPicture <$> goPic) -- Behavior Picture |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment