{"id":17251100,"url":"https://github.com/fumieval/free-game","last_synced_at":"2025-05-08T21:25:41.640Z","repository":{"id":5332193,"uuid":"6517471","full_name":"fumieval/free-game","owner":"fumieval","description":"The free game engine","archived":false,"fork":false,"pushed_at":"2022-08-29T15:28:24.000Z","size":26940,"stargazers_count":64,"open_issues_count":6,"forks_count":15,"subscribers_count":20,"default_branch":"master","last_synced_at":"2024-04-26T00:30:55.661Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://hackage.haskell.org/package/free-game","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fumieval.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-11-03T07:55:53.000Z","updated_at":"2023-12-06T03:36:51.000Z","dependencies_parsed_at":"2022-07-05T18:31:27.499Z","dependency_job_id":null,"html_url":"https://github.com/fumieval/free-game","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fumieval%2Ffree-game","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fumieval%2Ffree-game/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fumieval%2Ffree-game/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fumieval%2Ffree-game/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fumieval","download_url":"https://codeload.github.com/fumieval/free-game/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238044095,"owners_count":19407128,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-15T06:50:20.195Z","updated_at":"2025-02-10T02:09:49.349Z","avatar_url":"https://github.com/fumieval.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"free-game\r\n=========\r\n\r\n[![Build Status](https://secure.travis-ci.org/fumieval/free-game.png?branch=master)](http://travis-ci.org/fumieval/free-game)\r\n\r\nfree-game gives you a world so that you can create games easily.\r\n\r\nInstall\r\n-------------------------------------------------------------------------------------\r\n\r\n    $ cabal update\r\n    $ cabal install free-game\r\n\r\nMigration Guide\r\n-------------------------------------------------------------------------------------\r\n\r\n* `runGame param`\r\n    * `runGame Window (BoundingBox 0 0 640 480)` or `runGame FullScreen (BoundingBox 0 0 640 480)`\r\n    * `setTitle \"Lorem ipsum\"`\r\n    * Unicode characters are OK: `setTitle \"ニンジャ\"`\r\n    * `showCursor` or `hideCursor`\r\n    * `clearColor black`\r\n    * `setFPS 60`\r\n\r\n* `loadBitmapsWith 'func \"/path/to\"`\r\n    * `loadBitmapsWith [|func|] \"/path/to\"`\r\n* `keySpecial`\r\n    * `keyPress` or `keyDown` or `keyUp` -- You don't have to keep key states anymore!\r\n* `foreverTick m`\r\n    * `foreverFrame m` -- It is faster\r\n* `do { some draw-only computation }`\r\n    * Just apply `draw` to make your code faster.\r\n* `Game` is a kind of coroutine upon `Frame`.\r\n\r\nComparison with [gloss](http://hackage.haskell.org/package/gloss)\r\n-------------------------------------------------------------------------------------\r\nfree-game's API is similar to what gloss have.\r\n\r\n| gloss         | free-game           |\r\n| ------------- | ------------------- |\r\n| Picture       | Game ()             |\r\n| Blank         | return ()           |\r\n| Text          | text font size      |\r\n| Bitmap w h d  | bitmap              |\r\n| Translate x y | translate (V2 x y)  |\r\n| Scale x y     | scale (V2 x y)      |\r\n| Rotate        | rotate              |\r\n| Color         | color               |\r\n| Pictures xs   | sequence_ xs        |\r\n| Circle        | circle              |\r\n| Line          | line                |\r\n| Polygon       | polygon             |\r\n\r\nSpecial Thanks\r\n------------------------------------------------------------------------------------\r\n\r\n* [jbracker](https://github.com/jbracker), extended features and fixed minor bugs\r\n\r\nBug reports, pull requests, feature requests are welcome.\r\n\r\nDonate\r\n-------------------------------------\r\n\r\nBitcoin Address: 1EvewG7YHdcgMjmQEYEBrKiPjUwGWBckY4\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffumieval%2Ffree-game","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffumieval%2Ffree-game","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffumieval%2Ffree-game/lists"}