fumieval/free-game

The free game engine

Haskell

64

194 commits

updated Aug 29, 2022

See the code

README

free-game

Build Status

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

Install

$ 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.

glossfree-game
PictureGame ()
Blankreturn ()
Texttext font size
Bitmap w h dbitmap
Translate x ytranslate (V2 x y)
Scale x yscale (V2 x y)
Rotaterotate
Colorcolor
Pictures xssequence_ xs
Circlecircle
Lineline
Polygonpolygon

Special Thanks

  • jbracker, extended features and fixed minor bugs

Bug reports, pull requests, feature requests are welcome.

Bitcoin Address: 1EvewG7YHdcgMjmQEYEBrKiPjUwGWBckY4

Contributors

fumieval

193 commits

AphonicChaos

1 commits

fumieval/free-game

The free game engine

Haskell

64

194 commits

updated Aug 29, 2022

See the code

README

free-game

Build Status

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

Install

$ 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.

glossfree-game
PictureGame ()
Blankreturn ()
Texttext font size
Bitmap w h dbitmap
Translate x ytranslate (V2 x y)
Scale x yscale (V2 x y)
Rotaterotate
Colorcolor
Pictures xssequence_ xs
Circlecircle
Lineline
Polygonpolygon

Special Thanks

  • jbracker, extended features and fixed minor bugs

Bug reports, pull requests, feature requests are welcome.

Bitcoin Address: 1EvewG7YHdcgMjmQEYEBrKiPjUwGWBckY4

Contributors

fumieval

193 commits

AphonicChaos

1 commits

Languages

Haskell

100.0%