Component based Entity System

Notice: This is a post I reposted from my old website.

Started development of a basic Entity-Component-Framework where Entities are limited to an abstract implementation where no actual “Entity” exists. An Entity is made up of different components.

Components have no real “logic” included in them. They are merely containers for values. E.g. a PositionComponent only holds x,y values, whereas a ImageComponent contains a image variable of some sort.

Systems operate on Entities which contain the apropriate number and type of component. A MovementSystem only operates on Entities that have a PositionComponent as well as a VelocityComponent.

Real simple stuff. But it really helps because it lays heavy emphasis on composition instead of inheritance which can make many things a lot simpler 🙂

I will put it on bitbucket later so everyone can check out the code.

Edit: You can now find the code at my bitbucket –click-.

New Site!

Today I sat down and had a little thought. I was proud of my quirky diy CMS, but it led to me not updating it.

As I went to check up on my site, I noticed my last post was around spring 2015. Seeing as it’s close to 2017 now, I knew something had to change. Oh, and PHP was so outdated I was about to have my site shut down. Oops.

I reckon there is still work to be done around here, but this seems like a good start.

PS: If you used any services I used to provide and you noticed they are now broken, please contact me so we can work it out. I really don’t like when services I depend on stop working, so I’ll do my best to get everything back on track if you tell me!