An ECS python game engine with Raylib
Project description
Arepy 🎮
An ECS game engine created in python with raylib and imgui integration :)
Installation 📖
pip install git+https://github.com/Scr44gr/arepy.git
Usage 📝
Basic usage example
Creating a simple system to move entities
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
arepy-0.1.4.tar.gz
(31.0 kB
view details)
Built Distribution
arepy-0.1.4-py3-none-any.whl
(41.9 kB
view details)
File details
Details for the file arepy-0.1.4.tar.gz
.
File metadata
- Download URL: arepy-0.1.4.tar.gz
- Upload date:
- Size: 31.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
61eb9498f0f8a880a33ef6b03ece3529e842963832f9d205c7135b4d418f5396
|
|
MD5 |
861e9b556d1b137c57f709d1758c36ed
|
|
BLAKE2b-256 |
b4e990a7538ac48a81fe63b01e3556e672a7d59a785694459c72e66c4e7aaf49
|
Provenance
The following attestation bundles were made for arepy-0.1.4.tar.gz
:
Publisher:
python-publish.yml
on Scr44gr/arepy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
arepy-0.1.4.tar.gz
-
Subject digest:
61eb9498f0f8a880a33ef6b03ece3529e842963832f9d205c7135b4d418f5396
- Sigstore transparency entry: 165525697
- Sigstore integration time:
-
Permalink:
Scr44gr/arepy@d1a3ae931a2c4a6ccdf9208c1c4168ffafe407b4
-
Branch / Tag:
refs/tags/v0.1.4
- Owner: https://github.com/Scr44gr
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
python-publish.yml@d1a3ae931a2c4a6ccdf9208c1c4168ffafe407b4
-
Trigger Event:
release
-
Statement type:
File details
Details for the file arepy-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: arepy-0.1.4-py3-none-any.whl
- Upload date:
- Size: 41.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
e693cf8b3e71e406cf9453c50f0aae1ba4712b02405bca2c2031c1536889635b
|
|
MD5 |
84aeb57525c420f990755a936c9d43c7
|
|
BLAKE2b-256 |
dd2ac6cee6235c9bcbb5046b946f2cb6ced3d33af4737585ee8f83ecbe4c9849
|
Provenance
The following attestation bundles were made for arepy-0.1.4-py3-none-any.whl
:
Publisher:
python-publish.yml
on Scr44gr/arepy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
arepy-0.1.4-py3-none-any.whl
-
Subject digest:
e693cf8b3e71e406cf9453c50f0aae1ba4712b02405bca2c2031c1536889635b
- Sigstore transparency entry: 165525699
- Sigstore integration time:
-
Permalink:
Scr44gr/arepy@d1a3ae931a2c4a6ccdf9208c1c4168ffafe407b4
-
Branch / Tag:
refs/tags/v0.1.4
- Owner: https://github.com/Scr44gr
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
python-publish.yml@d1a3ae931a2c4a6ccdf9208c1c4168ffafe407b4
-
Trigger Event:
release
-
Statement type: