A functionally reactive game engine, with headgear to protect you from the headache of game development provided. Inspired by Elm.


import FRP.Helm
import qualified FRP.Helm.Window as Window

render :: (Int, Int) -> Element
render (w, h) = collage w h [move (100, 100) $ filled red $ square 64]

main :: IO ()
main = do
  engine <- startup defaultConfig

  run engine $ render <~ Window.dimensions engine
  

© 2013 Switchface Studios

#haskell-game