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.7.tar.gz
(32.6 kB
view details)
Built Distribution
arepy-0.1.7-py3-none-any.whl
(44.1 kB
view details)
File details
Details for the file arepy-0.1.7.tar.gz
.
File metadata
- Download URL: arepy-0.1.7.tar.gz
- Upload date:
- Size: 32.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
07f1242d9558f6d645dd38cd6d6a4bc7df8518d7a3aed69a21c2ff8b52cd39c8
|
|
MD5 |
a56c4947238a196af3f9295420737461
|
|
BLAKE2b-256 |
02bee39850b358e9a685d04369dd39e93d0ca96cd83920ad22e3886b111ac1a8
|
Provenance
The following attestation bundles were made for arepy-0.1.7.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.7.tar.gz
-
Subject digest:
07f1242d9558f6d645dd38cd6d6a4bc7df8518d7a3aed69a21c2ff8b52cd39c8
- Sigstore transparency entry: 165673515
- Sigstore integration time:
-
Permalink:
Scr44gr/arepy@7d3beadbd6e89839cecfd4cadfafe9066362ac46
-
Branch / Tag:
refs/tags/v0.1.7
- Owner: https://github.com/Scr44gr
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
python-publish.yml@7d3beadbd6e89839cecfd4cadfafe9066362ac46
-
Trigger Event:
release
-
Statement type:
File details
Details for the file arepy-0.1.7-py3-none-any.whl
.
File metadata
- Download URL: arepy-0.1.7-py3-none-any.whl
- Upload date:
- Size: 44.1 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 |
127c0dfa7456ff974e550abdd842c4616c4360d1ebd65f4c567ba2cc33064431
|
|
MD5 |
5688e21e29759135da6fc837efb94dac
|
|
BLAKE2b-256 |
95701d9e9dbf07ebf67436d1b723f34cb4ae745faa72995b2d14970848aeeb8c
|
Provenance
The following attestation bundles were made for arepy-0.1.7-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.7-py3-none-any.whl
-
Subject digest:
127c0dfa7456ff974e550abdd842c4616c4360d1ebd65f4c567ba2cc33064431
- Sigstore transparency entry: 165673516
- Sigstore integration time:
-
Permalink:
Scr44gr/arepy@7d3beadbd6e89839cecfd4cadfafe9066362ac46
-
Branch / Tag:
refs/tags/v0.1.7
- Owner: https://github.com/Scr44gr
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
python-publish.yml@7d3beadbd6e89839cecfd4cadfafe9066362ac46
-
Trigger Event:
release
-
Statement type: