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.1.tar.gz
(29.3 kB
view details)
Built Distribution
arepy-0.1.1-py3-none-any.whl
(40.5 kB
view details)
File details
Details for the file arepy-0.1.1.tar.gz
.
File metadata
- Download URL: arepy-0.1.1.tar.gz
- Upload date:
- Size: 29.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
544f1bdbb44a5a98289eda93cc2f446b5d91c476688f206a7c46e42c0afdd17e
|
|
MD5 |
2a183919caa671b790e9edf80f7f1d92
|
|
BLAKE2b-256 |
751d94391bb76274921cd9f133bbb4207a77860fa15487560bff6f62feacaf4e
|
Provenance
The following attestation bundles were made for arepy-0.1.1.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.1.tar.gz
-
Subject digest:
544f1bdbb44a5a98289eda93cc2f446b5d91c476688f206a7c46e42c0afdd17e
- Sigstore transparency entry: 157173191
- Sigstore integration time:
-
Permalink:
Scr44gr/arepy@46d6e1e150d6420de809c742d5cd1ed7f3ec6c0d
-
Branch / Tag:
refs/tags/v0.1.1
- Owner: https://github.com/Scr44gr
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
python-publish.yml@46d6e1e150d6420de809c742d5cd1ed7f3ec6c0d
-
Trigger Event:
release
-
Statement type:
File details
Details for the file arepy-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: arepy-0.1.1-py3-none-any.whl
- Upload date:
- Size: 40.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
4e25f32a6e921e8cd5b9cc51ac9763b0aec7383e02b68902a4ae21942c9be994
|
|
MD5 |
b923e62dde88ce5a3b63c24f0522a93c
|
|
BLAKE2b-256 |
9e74f3fae5d04ba90cd8c9925ba1dce6a68d60b8a22ddb79f979ffbddcdc082a
|
Provenance
The following attestation bundles were made for arepy-0.1.1-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.1-py3-none-any.whl
-
Subject digest:
4e25f32a6e921e8cd5b9cc51ac9763b0aec7383e02b68902a4ae21942c9be994
- Sigstore transparency entry: 157173192
- Sigstore integration time:
-
Permalink:
Scr44gr/arepy@46d6e1e150d6420de809c742d5cd1ed7f3ec6c0d
-
Branch / Tag:
refs/tags/v0.1.1
- Owner: https://github.com/Scr44gr
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
python-publish.yml@46d6e1e150d6420de809c742d5cd1ed7f3ec6c0d
-
Trigger Event:
release
-
Statement type: