Maintainer | Fumiaki Kinsohita <fumiexcel@gmail.com> |
---|---|
Safe Haskell | None |
free-game is a library that abstracts and purifies GUI applications.
Small instruction:
- load images by
loadPictureFromFile
. - describe an application using
drawPicture
,askInput
,tick
, and so on, in Game monad. - apply 'runGame defaultGameParam' to run.
- That's all!
- module Graphics.FreeGame.Base
- module Graphics.FreeGame.Bitmap
- module Graphics.FreeGame.Input
- module Graphics.FreeGame.Util
- runGame :: GameParam -> Game a -> IO (Maybe a)
Examples
main = runGame defaultGameParam $ forever tick
shows a window and does nothing.
for more examples, see https://github.com/fumieval/free-game/tree/master/examples.
Note
- There are experimental implementation of text rendering(
withRenderString
), but it often yields strange pictures.
Reexports
module Graphics.FreeGame.Base
module Graphics.FreeGame.Bitmap
module Graphics.FreeGame.Input
module Graphics.FreeGame.Util