{"id":16466431,"url":"https://github.com/lukasturcani/xecs-pygame","last_synced_at":"2026-06-08T01:32:11.646Z","repository":{"id":197277133,"uuid":"698161397","full_name":"lukasturcani/xecs-pygame","owner":"lukasturcani","description":null,"archived":false,"fork":false,"pushed_at":"2023-10-04T09:50:06.000Z","size":22,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-07T11:44:48.931Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/lukasturcani.png","metadata":{"files":{"readme":"README.rst","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":"2023-09-29T09:44:58.000Z","updated_at":"2023-10-01T19:10:33.000Z","dependencies_parsed_at":"2024-11-11T23:38:40.842Z","dependency_job_id":"170af694-cfbd-4acb-a375-642159cfc3ef","html_url":"https://github.com/lukasturcani/xecs-pygame","commit_stats":null,"previous_names":["lukasturcani/xecs-pygame"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/lukasturcani/xecs-pygame","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukasturcani%2Fxecs-pygame","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukasturcani%2Fxecs-pygame/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukasturcani%2Fxecs-pygame/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukasturcani%2Fxecs-pygame/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lukasturcani","download_url":"https://codeload.github.com/lukasturcani/xecs-pygame/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukasturcani%2Fxecs-pygame/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34044919,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-07T02:00:07.652Z","response_time":124,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11T11:43:44.680Z","updated_at":"2026-06-08T01:32:11.630Z","avatar_url":"https://github.com/lukasturcani.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"xecs-pygame\n===========\n\nA plugin for xecs_, allowing you to render your entities with pygame_.\n\nUsage\n-----\n\nFirst, add the plugin to your xecs_ app.\n\n.. code-block:: python\n\n  import xecs as xx\n  from xecs_pygame import PyGamePlugin\n\n  def main() -\u003e None:\n      app = xx.RealTimeApp()\n      app.add_plugin(PyGamePlugin())\n\n\nNow, when you spawn entities, you can give them a\n``Circle``, ``Polygon``, ``Rectangle`` component. If you do that,\nyour entities will be rendered on the screen:\n\n\n.. code-block:: python\n\n  import xecs as xx\n  from xecs_pygame import Circle, PyGamePlugin\n\n  def spawn_three_circles(commands: xx.Commands, world: xx.World) -\u003e None:\n      transformi, _ = commands.spawn((xx.Transform2, Circle), 3)\n      transform = world.get_view(xx.Transform2, transformi)\n      transform.translation.x.fill([0, 15, 30])\n\n  def main() -\u003e None:\n      app = xx.RealTimeApp()\n      app.add_plugin(PyGamePlugin())\n      app.add_startup_system(spawn_three_circles)\n      app.add_pool(Circle.create_pool(3))\n      app.add_pool(xx.Transform2.create_pool(3))\n      app.run()\n\n  if __name__ == \"__main__\":\n      main()\n\n\nFurther examples\n----------------\n\n* `draw shapes`_\n* `moving circles`_\n* `boids`_\n* `mouse presses`_\n* `mouse position`_\n* `text`_\n* keyboard_\n\n.. _xecs: https://github.com/lukasturcani/xecs\n.. _pygame: https://github.com/pygame/pygame\n.. _`draw shapes`: https://github.com/lukasturcani/xecs-pygame/blob/master/examples/draw_shapes.py\n.. _`moving circles`: https://xecs.readthedocs.io/en/latest/moving_circles.html\n.. _boids: https://xecs.readthedocs.io/en/latest/boids.html\n.. _`mouse presses`: https://xecs.readthedocs.io/en/latest/mouse_presses.html\n.. _`mouse position`: https://xecs.readthedocs.io/en/latest/mouse_position.html\n.. _`text`: https://xecs.readthedocs.io/en/latest/text.html\n.. _keyboard: https://xecs.readthedocs.io/en/latest/keyboard.html\n\n\nInstallation\n------------\n\n.. code-block:: bash\n\n  pip install xecs-pygame\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukasturcani%2Fxecs-pygame","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flukasturcani%2Fxecs-pygame","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukasturcani%2Fxecs-pygame/lists"}