Name | arepy JSON |
Version |
0.1.1
JSON |
| download |
home_page | None |
Summary | An ECS python game engine with Raylib |
upload_time | 2024-12-21 02:03:48 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.10 |
license | MIT License Copyright (c) 2024 Abrahan Gil Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
keywords |
ecs
game-engine
python-game-engine
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Arepy 🎮
[![Upload Python Package](https://github.com/Scr44gr/arepy/actions/workflows/python-publish.yml/badge.svg)](https://github.com/Scr44gr/arepy/actions/workflows/python-publish.yml)
An ECS game engine created in python with raylib and imgui integration :)
## Installation 📖
```bash
pip install git+https://github.com/Scr44gr/arepy.git
```
## Usage 📝
### Basic usage example
#### Creating a simple system to move entities
```python
from arepy.bundle.components.rigidbody_component import RigidBody2D
from arepy.bundle.components.transform_component import Transform
from arepy.ecs.entities import Entities
from arepy.ecs.query import Query, With
from arepy.engine.renderer.renderer_2d import Renderer2D
def movement_system(
query: Query[Entities, With[Transform, RigidBody2D]], renderer: Renderer2D
):
delta_time = renderer.get_delta_time()
entities = query.get_entities()
for entity in entities:
transform = entity.get_component(Transform)
velocity = entity.get_component(RigidBody2D).velocity
transform.position.x += velocity.x * delta_time
transform.position.y += velocity.y * delta_time
```
TODO!: create a nice README.md
Raw data
{
"_id": null,
"home_page": null,
"name": "arepy",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": null,
"keywords": "ecs, game-engine, python-game-engine",
"author": null,
"author_email": "Abrahan Gil <scr44gr@protonmail.com>",
"download_url": "https://files.pythonhosted.org/packages/75/1d/94391bb76274921cd9f133bbb4207a77860fa15487560bff6f62feacaf4e/arepy-0.1.1.tar.gz",
"platform": null,
"description": "# Arepy \ud83c\udfae\n[![Upload Python Package](https://github.com/Scr44gr/arepy/actions/workflows/python-publish.yml/badge.svg)](https://github.com/Scr44gr/arepy/actions/workflows/python-publish.yml)\n\nAn ECS game engine created in python with raylib and imgui integration :)\n## Installation \ud83d\udcd6\n```bash\npip install git+https://github.com/Scr44gr/arepy.git\n```\n\n## Usage \ud83d\udcdd\n\n### Basic usage example \n\n#### Creating a simple system to move entities\n\n```python\nfrom arepy.bundle.components.rigidbody_component import RigidBody2D\nfrom arepy.bundle.components.transform_component import Transform\nfrom arepy.ecs.entities import Entities\nfrom arepy.ecs.query import Query, With\nfrom arepy.engine.renderer.renderer_2d import Renderer2D\n\ndef movement_system(\n query: Query[Entities, With[Transform, RigidBody2D]], renderer: Renderer2D\n):\n delta_time = renderer.get_delta_time()\n entities = query.get_entities()\n for entity in entities:\n transform = entity.get_component(Transform)\n velocity = entity.get_component(RigidBody2D).velocity\n\n transform.position.x += velocity.x * delta_time\n transform.position.y += velocity.y * delta_time\n```\n\nTODO!: create a nice README.md\n",
"bugtrack_url": null,
"license": "MIT License Copyright (c) 2024 Abrahan Gil Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
"summary": "An ECS python game engine with Raylib",
"version": "0.1.1",
"project_urls": null,
"split_keywords": [
"ecs",
" game-engine",
" python-game-engine"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "9e74f3fae5d04ba90cd8c9925ba1dce6a68d60b8a22ddb79f979ffbddcdc082a",
"md5": "b923e62dde88ce5a3b63c24f0522a93c",
"sha256": "4e25f32a6e921e8cd5b9cc51ac9763b0aec7383e02b68902a4ae21942c9be994"
},
"downloads": -1,
"filename": "arepy-0.1.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "b923e62dde88ce5a3b63c24f0522a93c",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 40494,
"upload_time": "2024-12-21T02:03:45",
"upload_time_iso_8601": "2024-12-21T02:03:45.943063Z",
"url": "https://files.pythonhosted.org/packages/9e/74/f3fae5d04ba90cd8c9925ba1dce6a68d60b8a22ddb79f979ffbddcdc082a/arepy-0.1.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "751d94391bb76274921cd9f133bbb4207a77860fa15487560bff6f62feacaf4e",
"md5": "2a183919caa671b790e9edf80f7f1d92",
"sha256": "544f1bdbb44a5a98289eda93cc2f446b5d91c476688f206a7c46e42c0afdd17e"
},
"downloads": -1,
"filename": "arepy-0.1.1.tar.gz",
"has_sig": false,
"md5_digest": "2a183919caa671b790e9edf80f7f1d92",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 29338,
"upload_time": "2024-12-21T02:03:48",
"upload_time_iso_8601": "2024-12-21T02:03:48.475892Z",
"url": "https://files.pythonhosted.org/packages/75/1d/94391bb76274921cd9f133bbb4207a77860fa15487560bff6f62feacaf4e/arepy-0.1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-21 02:03:48",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "arepy"
}