Skip to main content

An ECS python game engine with Raylib

Project description

Arepy 🎮

Upload Python Package

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


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)

Uploaded Source

Built Distribution

arepy-0.1.1-py3-none-any.whl (40.5 kB view details)

Uploaded Python 3

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

Hashes for arepy-0.1.1.tar.gz
Algorithm Hash digest
SHA256 544f1bdbb44a5a98289eda93cc2f446b5d91c476688f206a7c46e42c0afdd17e
MD5 2a183919caa671b790e9edf80f7f1d92
BLAKE2b-256 751d94391bb76274921cd9f133bbb4207a77860fa15487560bff6f62feacaf4e

See more details on using hashes here.

Provenance

The following attestation bundles were made for arepy-0.1.1.tar.gz:

Publisher: python-publish.yml on Scr44gr/arepy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for arepy-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4e25f32a6e921e8cd5b9cc51ac9763b0aec7383e02b68902a4ae21942c9be994
MD5 b923e62dde88ce5a3b63c24f0522a93c
BLAKE2b-256 9e74f3fae5d04ba90cd8c9925ba1dce6a68d60b8a22ddb79f979ffbddcdc082a

See more details on using hashes here.

Provenance

The following attestation bundles were made for arepy-0.1.1-py3-none-any.whl:

Publisher: python-publish.yml on Scr44gr/arepy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page