Failed to load latest commit information.
FreeGame import police Jun 9, 2015
examples .gitignore Jun 9, 2015
.gitignore Exclude all examples exe's Jun 9, 2015
.travis.yml use multi ghc travis Aug 27, 2014
CHANGELOG.md Tune FPS management; add mouseScroll Nov 18, 2014
FreeGame.hs Added Drawable class instead four draw's classes May 27, 2015
LICENSE move Apr 29, 2013
README.md doc May 26, 2014
Setup.hs move Apr 29, 2013
free-game.cabal import police Jun 9, 2015



Build Status

free-game gives you a world so that you can create games easily.


$ cabal update
$ cabal install free-game

Migration Guide

  • runGame param

    • runGame Window (BoundingBox 0 0 640 480) or runGame FullScreen (BoundingBox 0 0 640 480)
    • setTitle "Lorem ipsum"
    • Unicode characters are OK: setTitle "ニンジャ"
    • showCursor or hideCursor
    • clearColor black
    • setFPS 60
  • loadBitmapsWith 'func "/path/to"

    • loadBitmapsWith [|func|] "/path/to"
  • keySpecial
    • keyPress or keyDown or keyUp -- You don't have to keep key states anymore!
  • foreverTick m
    • foreverFrame m -- It is faster
  • do { some draw-only computation }
    • Just apply draw to make your code faster.
  • Game is a kind of coroutine upon Frame.

Comparison with gloss

free-game's API is similar to what gloss have.

gloss free-game
Picture Game ()
Blank return ()
Text text font size
Bitmap w h d bitmap
Translate x y translate (V2 x y)
Scale x y scale (V2 x y)
Rotate rotate
Color color
Pictures xs sequence_ xs
Circle circle
Line line
Polygon polygon

Special Thanks

  • jbracker, extended features and fixed minor bugs

Bug reports, pull requests, feature requests are welcome.


Bitcoin Address: 1EvewG7YHdcgMjmQEYEBrKiPjUwGWBckY4