code with https://leanpub.com/gameinhaskell
I recommend using a sandbox. clone the repo, and then
cabal sandbox init
cabal install --only-dependencies
cabal build
Showing how to set up a window and draw basic shapes:
cabal run shapes-demo
State in a more traditional way:
cabal run state-demo
State with FRP:
cabal run frp-demo
Using textures and animations, and viewport:
cabal run animated
Let's add some music and sounds:
cabal run music
Shooting (ASDW keys), levels, can increase windowsize, etc
cabal run extended
Game with testing enabled
cabal run testing
run tests
cabal test
Other options from
cabal run testing -- --help