Giter Site home page Giter Site logo

abeck99 / beckecs Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 0.0 172 KB

The BeckCo ECS system is a highly multi-threaded Entity-Component system designed for running game logic in a seperate process than the display/input.

License: Other

C++ 61.71% C 11.54% Python 26.65% Shell 0.09%

beckecs's Introduction

BeckECS: A highly threaded game logic engine

BeckECS is an entity-component system implemented to draw on the strengths of the ECS approach. It is very easy to create a multi-threaded application, running logic and passing messages along to different threads. It achieves this ease by using the jinja2 templating library to build headers and python interface code from an easily readable/editable json file, leaving the amount of actual implementation to a minimum.

This is a very pure implementation of ECS, there is no Entity Object, an entity is simply an integer that is only referenced in the component systems. The engine itself treats every component independently and has no idea that these pieces of data are related to other pieces of data. At first, this is a very difficult concept to wrap your head around, but you must understand this before attempting to use this engine.

The header generation step also includes some validation to avoid common mistakes with threading.

The engine also supports dynamic system loading, meaning you can edit system code on the fly and the code is automatically recompiled and linked. Please refer to GettingStarted.md for more information on the dynamic reloading.

The dependencies for running the engine are all very widely used libraries, and should be very simple to install and deploy across multiple platforms.

Dependencies for building


  1. Python 2.7ish: * http://www.python.org/
  2. Jinja2: * http://jinja.pocoo.org/
  3. Waf bin: * http://code.google.com/p/waf/
  4. ZMQ3, built as static lib: * https://github.com/zeromq/zeromq3-x
  5. Google Protobufs: * http://code.google.com/p/protobuf/

Dependencies for running the python client example


  1. pyzmq, ZMQ Python wrappers * https://github.com/zeromq/pyzmq
  2. Python Google Protobufs * As above, setup.py located in python subdirectory

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.