Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fumieval/free-game
The free game engine
https://github.com/fumieval/free-game
Last synced: 8 days ago
JSON representation
The free game engine
- Host: GitHub
- URL: https://github.com/fumieval/free-game
- Owner: fumieval
- License: bsd-3-clause
- Created: 2012-11-03T07:55:53.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2022-08-29T15:28:24.000Z (over 2 years ago)
- Last Synced: 2024-04-26T00:30:55.661Z (8 months ago)
- Language: Haskell
- Homepage: http://hackage.haskell.org/package/free-game
- Size: 25.7 MB
- Stars: 64
- Watchers: 20
- Forks: 15
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
free-game
=========[![Build Status](https://secure.travis-ci.org/fumieval/free-game.png?branch=master)](http://travis-ci.org/fumieval/free-game)
free-game gives you a world so that you can create games easily.
Install
-------------------------------------------------------------------------------------$ cabal update
$ cabal install free-gameMigration 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](http://hackage.haskell.org/package/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](https://github.com/jbracker), extended features and fixed minor bugs
Bug reports, pull requests, feature requests are welcome.
Donate
-------------------------------------Bitcoin Address: 1EvewG7YHdcgMjmQEYEBrKiPjUwGWBckY4