{"id":16288576,"url":"https://github.com/gediminasz/pyxel-extensions","last_synced_at":"2025-04-09T07:14:53.735Z","repository":{"id":97791611,"uuid":"155999461","full_name":"gediminasz/pyxel-extensions","owner":"gediminasz","description":"A collection of helpers for developing games with Pyxel","archived":false,"fork":false,"pushed_at":"2018-11-12T19:57:48.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-15T01:28:43.611Z","etag":null,"topics":["gamedev","python","pyxel"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gediminasz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-11-03T16:03:31.000Z","updated_at":"2024-09-24T18:27:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"a40825c3-57d1-4eb8-9ec4-ef31bae23584","html_url":"https://github.com/gediminasz/pyxel-extensions","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gediminasz%2Fpyxel-extensions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gediminasz%2Fpyxel-extensions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gediminasz%2Fpyxel-extensions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gediminasz%2Fpyxel-extensions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gediminasz","download_url":"https://codeload.github.com/gediminasz/pyxel-extensions/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247994123,"owners_count":21030048,"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":["gamedev","python","pyxel"],"created_at":"2024-10-10T19:48:44.682Z","updated_at":"2025-04-09T07:14:53.713Z","avatar_url":"https://github.com/gediminasz.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pyxel Extensions\n\nA collection of helpers for building games with [Pyxel](https://github.com/kitao/pyxel). A framework, if you will.\n\n## Installation\n\n```\npipenv install -e git+https://github.com/gediminasz/pyxel-extensions.git@v0.0.2#egg=pyxel_extensions\n```\n\n## Features\n\n* Redux inspired store for game state\n* Scenes\n* Hot module reloading\n\n## Example\n\n```py\nimport pyxel\n\nfrom pyxel_extensions import action\nfrom pyxel_extensions.game import Game\nfrom pyxel_extensions.scene import Scene\n\n\nclass Example(Game):\n    def get_scenes(self):\n        return (ExampleScene,)\n\n\nclass ExampleScene(Scene):\n    def update(self):\n        if pyxel.btnp(pyxel.KEY_SPACE):\n            self.store.dispatch(increment_counter())\n\n    def draw(self):\n        pyxel.text(10, 10, 'Press \u003cspace\u003e to increment:', 7)\n        pyxel.text(10, 20, str(self.store.state['counter']), 7)\n\n\n@action\ndef increment_counter(state):\n    return {**state, 'counter': state['counter'] + 1}\n\n\nif __name__ == '__main__':\n    Example(\n        initial_state={'counter': 0},\n        initial_scene=ExampleScene\n    ).run()\n```\n\n## See Also\n\n* https://github.com/gediminasz/games\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgediminasz%2Fpyxel-extensions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgediminasz%2Fpyxel-extensions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgediminasz%2Fpyxel-extensions/lists"}