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.2.tar.gz
(30.7 kB
view details)
Built Distribution
arepy-0.1.2-py3-none-any.whl
(41.7 kB
view details)
File details
Details for the file arepy-0.1.2.tar.gz
.
File metadata
- Download URL: arepy-0.1.2.tar.gz
- Upload date:
- Size: 30.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
5a7477c4ceceb7de36bcd4c66101e2e35314b98df1d1fbce8adb476cc3bac448
|
|
MD5 |
c2b7dd767b105c8f21d941720ca4d692
|
|
BLAKE2b-256 |
8a3eb6c5852ca8dad72fa09b962ff5094c45fb5d0811cded6d0fa45a038ea2fa
|
Provenance
The following attestation bundles were made for arepy-0.1.2.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.2.tar.gz
-
Subject digest:
5a7477c4ceceb7de36bcd4c66101e2e35314b98df1d1fbce8adb476cc3bac448
- Sigstore transparency entry: 165408293
- Sigstore integration time:
-
Permalink:
Scr44gr/arepy@108e2c80add58a812c6ffc797a81bf8769b92d02
-
Branch / Tag:
refs/tags/v0.1.2
- Owner: https://github.com/Scr44gr
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
python-publish.yml@108e2c80add58a812c6ffc797a81bf8769b92d02
-
Trigger Event:
release
-
Statement type:
File details
Details for the file arepy-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: arepy-0.1.2-py3-none-any.whl
- Upload date:
- Size: 41.7 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 |
26dd420c63eeea13c5b0edef1961471c1dd234ca7aaa082e14645131dd42a638
|
|
MD5 |
d9bd6929ed471a6f4da45b7f5da54925
|
|
BLAKE2b-256 |
816734543f4fd5fac303879e255d15adf29ff63eb0f17d208f3b9239c1c20994
|
Provenance
The following attestation bundles were made for arepy-0.1.2-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.2-py3-none-any.whl
-
Subject digest:
26dd420c63eeea13c5b0edef1961471c1dd234ca7aaa082e14645131dd42a638
- Sigstore transparency entry: 165408294
- Sigstore integration time:
-
Permalink:
Scr44gr/arepy@108e2c80add58a812c6ffc797a81bf8769b92d02
-
Branch / Tag:
refs/tags/v0.1.2
- Owner: https://github.com/Scr44gr
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
python-publish.yml@108e2c80add58a812c6ffc797a81bf8769b92d02
-
Trigger Event:
release
-
Statement type: