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.3.tar.gz
(30.9 kB
view details)
Built Distribution
arepy-0.1.3-py3-none-any.whl
(41.8 kB
view details)
File details
Details for the file arepy-0.1.3.tar.gz
.
File metadata
- Download URL: arepy-0.1.3.tar.gz
- Upload date:
- Size: 30.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
65a38b4194bc0da23832776930b56c7dcaafbdcc1f896d609b7dbbebdf92cf9c
|
|
MD5 |
bc4c52a035884cc5ff605d10e65d40dd
|
|
BLAKE2b-256 |
3d569ac5c92d707a0162b2f96fef35a7049e5a8db7af81ec5993db953227fcc2
|
Provenance
The following attestation bundles were made for arepy-0.1.3.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.3.tar.gz
-
Subject digest:
65a38b4194bc0da23832776930b56c7dcaafbdcc1f896d609b7dbbebdf92cf9c
- Sigstore transparency entry: 165464718
- Sigstore integration time:
-
Permalink:
Scr44gr/arepy@5f78dade6e75e78152732ed7619e9e805c924586
-
Branch / Tag:
refs/tags/v0.1.3
- Owner: https://github.com/Scr44gr
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
python-publish.yml@5f78dade6e75e78152732ed7619e9e805c924586
-
Trigger Event:
release
-
Statement type:
File details
Details for the file arepy-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: arepy-0.1.3-py3-none-any.whl
- Upload date:
- Size: 41.8 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 |
bd4bab5611669f5c73941a9e63dce5309a01d9d5e178dd72edf2039127126bd1
|
|
MD5 |
dd3769d3ada9c4abc5fea864d5db835a
|
|
BLAKE2b-256 |
3d2031c15d8acea05431d87429a499c0c1e6db01764183f92749b01d29b63390
|
Provenance
The following attestation bundles were made for arepy-0.1.3-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.3-py3-none-any.whl
-
Subject digest:
bd4bab5611669f5c73941a9e63dce5309a01d9d5e178dd72edf2039127126bd1
- Sigstore transparency entry: 165464719
- Sigstore integration time:
-
Permalink:
Scr44gr/arepy@5f78dade6e75e78152732ed7619e9e805c924586
-
Branch / Tag:
refs/tags/v0.1.3
- Owner: https://github.com/Scr44gr
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
python-publish.yml@5f78dade6e75e78152732ed7619e9e805c924586
-
Trigger Event:
release
-
Statement type: