{"id":16352289,"url":"https://github.com/bugthesystem/pmecs","last_synced_at":"2025-06-28T17:07:12.668Z","repository":{"id":189144843,"uuid":"679750601","full_name":"bugthesystem/pmecs","owner":"bugthesystem","description":"Poor man's Entity Component System","archived":false,"fork":false,"pushed_at":"2023-08-20T21:31:45.000Z","size":18,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-27T15:16:49.026Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bugthesystem.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-08-17T14:30:59.000Z","updated_at":"2023-08-31T20:10:11.000Z","dependencies_parsed_at":"2024-04-27T08:03:44.967Z","dependency_job_id":"2a8f94ed-4d54-4702-a7a0-2cd541ff474c","html_url":"https://github.com/bugthesystem/pmecs","commit_stats":null,"previous_names":["ziyasal/pmecs","bugthesystem/pmecs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bugthesystem/pmecs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugthesystem%2Fpmecs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugthesystem%2Fpmecs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugthesystem%2Fpmecs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugthesystem%2Fpmecs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bugthesystem","download_url":"https://codeload.github.com/bugthesystem/pmecs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugthesystem%2Fpmecs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262465750,"owners_count":23315638,"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-11T01:25:37.133Z","updated_at":"2025-06-28T17:07:12.646Z","avatar_url":"https://github.com/bugthesystem.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pmecs\nPoor man's Entity Component System\n\n## ECS 101\n- **Entities**: A simple identifier for game objects.\n- **Components**: Data containers associated with entities.\n- **Systems**: Logic units that operate on entities with certain component combinations.\n- **World**: Contains all entities and components.\n- **Events**: Messages or data that systems can emit or listen for.\n\n\n## Heads up\n⚠️ Please consider using established ECS libraries like one of the following as they offer optimized storage, efficient querying mechanisms, and a host of other features out of the box.\n- [`specs`](https://crates.io/crates/specs)\n- [`legion`](https://crates.io/crates/legion)\n- [`hecs`](https://crates.io/crates/hecs)\n- [`bevy-ecs`](https://crates.io/crates/bevy_ecs)\n\n## Getting started\n\n```rust\nuse pmecs::{Entity, World};\n\n#[derive(Clone, Copy)]\nstruct Position {\n    x: i32,\n    y: i32,\n}\n\n#[derive(Clone, Copy)]\nstruct Velocity {\n    dx: i32,\n    dy: i32,\n}\n\nstruct Paddle {\n    height: i32,\n}\n\nfn main() {\n    let mut world = World::new();\n\n    let ball = world.create_entity();\n    world.add_component(ball, Position { x: 10, y: 10 });\n    world.add_component(ball, Velocity { dx: 1, dy: 1 });\n\n    let left_paddle = world.create_entity();\n    world.add_component(left_paddle, Position { x: 0, y: 5 });\n    world.add_component(left_paddle, Paddle { height: 5 });\n\n    let right_paddle = world.create_entity();\n    world.add_component(right_paddle, Position { x: 20, y: 5 });\n    world.add_component(right_paddle, Paddle { height: 5 });\n\n    loop {\n        move_ball_system(\u0026mut world, ball, left_paddle, right_paddle);\n        render_system(\u0026world, ball, left_paddle, right_paddle);\n        sleep(Duration::from_millis(100));\n    }\n}\n\n```\n\n## License\n\n[UNLICENSE](https://github.com/ziyasal/pmecs/blob/main/LICENSE)\n\n\u003e _This crate is developed to be part of Λ.R.Ξ.N.Λ 2D game engine._\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbugthesystem%2Fpmecs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbugthesystem%2Fpmecs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbugthesystem%2Fpmecs/lists"}