Skip to content

HybridEidolon/pycomponents

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pycomponents

I got bored Friday night, and decided to learn Python. And then I found out about metaprogramming, and made this. So I guess this is kind of cool.

Usage, or something:

from entity import *

e = Entity()
c = ScriptComponent('testcomponent')
e.add_component(ScriptComponent('testcomponent'))

e.act(1)

if e.c_ScriptComponent === c:
    print 'It works!'

About

Entity-Component framework for python abusing metaprogramming

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages