awe 0.1.0

Awe is a powerful, fast and simple entity component system based on Artemis

Released 2017-07-04.

To install, run:

haxelib install awe 0.1.0

See using Haxelib in Haxelib documentation for more information.

Current version0.1.0
StatisticsInstalled 13 times


Awe is a pure entity component system based on Artemis-odb, but taking advantage of Haxe's features like macros and conditional compilation.

Basic ECS principles

An entity represents an individual thing in the world, but does not actually store any data by itself - this is simply an integer that uniquely identifies an entity.

A component is a small, composable piece of data that can be stored about an entity.

A system is a kind of object that performs operations on entities with certain component combinations.

More information is on the t-machine wiki.

Making the World

The World is the what encapsulates all the components and systems contained in the project. To construct it, you call with the entities and systems you want it to have.

` haxe var world ={

systems: [new InputSystem(), new MovementSystem(), new RenderSystem(), new GravitySystem()],
components: [Input, Position, Velocity, Acceleration, Gravity, Follow],
expectedEntityCount: ...


Making Entities

An `Entity` represents a single thing in the `World`. To construct this, you need to
construct an `Archetype` by calling `` with the components that
make it up.

``` haxe
var playerArchetype =, Position, Velocity, Acceleration, Gravity);
var player =;

Types of component


This is a component that can be represented by bytes, thus doesn't have any fields whose type is not primitve.


This is a component that is used for marking components and has no fields.


This is just a regular component.

Compiler flags

These can be passed to haxe by adding '-D flag' to your 'build.hxml' or equivalent.


This prints extra information during compilation.


This forces Awe's macro system to not pack components.