The free game engine
See the codefree-game gives you a world so that you can create games easily.
$ cabal update
$ cabal install free-game
runGame param
runGame Window (BoundingBox 0 0 640 480) or runGame FullScreen (BoundingBox 0 0 640 480)setTitle "Lorem ipsum"setTitle "ニンジャ"showCursor or hideCursorclearColor blacksetFPS 60loadBitmapsWith '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 fasterdo { some draw-only computation }
draw to make your code faster.Game is a kind of coroutine upon Frame.
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 |
Bug reports, pull requests, feature requests are welcome.
Bitcoin Address: 1EvewG7YHdcgMjmQEYEBrKiPjUwGWBckY4
193 commits
1 commits
Haskell
100.0%
The free game engine
See the codefree-game gives you a world so that you can create games easily.
$ cabal update
$ cabal install free-game
runGame param
runGame Window (BoundingBox 0 0 640 480) or runGame FullScreen (BoundingBox 0 0 640 480)setTitle "Lorem ipsum"setTitle "ニンジャ"showCursor or hideCursorclearColor blacksetFPS 60loadBitmapsWith '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 fasterdo { some draw-only computation }
draw to make your code faster.Game is a kind of coroutine upon Frame.
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 |
Bug reports, pull requests, feature requests are welcome.
Bitcoin Address: 1EvewG7YHdcgMjmQEYEBrKiPjUwGWBckY4
193 commits
1 commits
Haskell
100.0%