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.8.tar.gz (32.6 kB view details)

Uploaded Source

Built Distribution

arepy-0.1.8-py3-none-any.whl (44.1 kB view details)

Uploaded Python 3

File details

Details for the file arepy-0.1.8.tar.gz.

File metadata

  • Download URL: arepy-0.1.8.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

Hashes for arepy-0.1.8.tar.gz
Algorithm Hash digest
SHA256 63d8d35edb528291edf3f1b433b9c3c651c2b4062c5e10ec430032b69c9f7986
MD5 fc474193c17386de0593cb174c2c50cd
BLAKE2b-256 2932b000322d9fd6c38a57af74937a1d298b886b9d09e4f199d87557fa0933d4

See more details on using hashes here.

Provenance

The following attestation bundles were made for arepy-0.1.8.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.8-py3-none-any.whl.

File metadata

  • Download URL: arepy-0.1.8-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

Hashes for arepy-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 9554fe01f89457434b633f265b1f3a65de9ab9ed01db6c90a2f953acc8ef0ab9
MD5 f4d0de5dd63a140e2552fa6a7f1bb897
BLAKE2b-256 a3189ca92b40aa4a20dac16578b95582f1ccc258cff5f7fb8a137e595fecb925

See more details on using hashes here.

Provenance

The following attestation bundles were made for arepy-0.1.8-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