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.6.tar.gz
(32.5 kB
view details)
Built Distribution
arepy-0.1.6-py3-none-any.whl
(44.0 kB
view details)
File details
Details for the file arepy-0.1.6.tar.gz
.
File metadata
- Download URL: arepy-0.1.6.tar.gz
- Upload date:
- Size: 32.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
f56e07a7781d30e57ddb9208bb93676cec536c557eda93677424b9127d7d49b8
|
|
MD5 |
1ae8271499c84c17aecfd7d694b4bb90
|
|
BLAKE2b-256 |
45aed8798470a5484fa1c42eba4148734968276495eeb02e18c02a99155e7834
|
Provenance
The following attestation bundles were made for arepy-0.1.6.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.6.tar.gz
-
Subject digest:
f56e07a7781d30e57ddb9208bb93676cec536c557eda93677424b9127d7d49b8
- Sigstore transparency entry: 165670625
- Sigstore integration time:
-
Permalink:
Scr44gr/arepy@793c469f65f0dabccd5de8e09c620cb5a90f459e
-
Branch / Tag:
refs/tags/v0.1.6
- Owner: https://github.com/Scr44gr
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
python-publish.yml@793c469f65f0dabccd5de8e09c620cb5a90f459e
-
Trigger Event:
release
-
Statement type:
File details
Details for the file arepy-0.1.6-py3-none-any.whl
.
File metadata
- Download URL: arepy-0.1.6-py3-none-any.whl
- Upload date:
- Size: 44.0 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 |
ac4191e9d521c7ef16f8b3b1fb4e1c104c0f81409bbfae41a96042027e9dc82b
|
|
MD5 |
310cc3f43efab9804977d189aaf17d9b
|
|
BLAKE2b-256 |
818b730db02693bbeaca87400a9999daed26e06a58600112a8b6e965022b9abd
|
Provenance
The following attestation bundles were made for arepy-0.1.6-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.6-py3-none-any.whl
-
Subject digest:
ac4191e9d521c7ef16f8b3b1fb4e1c104c0f81409bbfae41a96042027e9dc82b
- Sigstore transparency entry: 165670627
- Sigstore integration time:
-
Permalink:
Scr44gr/arepy@793c469f65f0dabccd5de8e09c620cb5a90f459e
-
Branch / Tag:
refs/tags/v0.1.6
- Owner: https://github.com/Scr44gr
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
python-publish.yml@793c469f65f0dabccd5de8e09c620cb5a90f459e
-
Trigger Event:
release
-
Statement type: