Projects

NOVID News

NOVID News is a website with links to news articles that are not about the COVID-19 coronavirus pandemic of 2019-2020.

ComPyNent

ComPyNent is a entity-component-system (ECS) framework for the Python programming language. ECS is an architectural design pattern most frequently used in developing games. Find out more about it here: Understanding Component-Entity-Systems..

Example usage:


import compynent

ecs = compynent.EntityManager()

class MessageComponent:
    def __init__(self, message):
        self.message = message

entity = ecs.create_entity()
component = MessageComponent()
ecs.add_component(entity, component)

class MessageSystem():
    def update(self):
        for entity in ecs.get_entities():
            if entity.has_component(MessageComponent):
                print(ecs.get_component(entity, MessageComponent).message)
            
ecs.add_system(MessageSystem())

while True:
    ecs.do_frame()

ComPyNent source code on GitHub