tauoverpi / levy-aecs

Archetype Entity Component System for zig

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Archetype Entity Component System

AECS is an entity component system which manages entities by sorting them into separate buckets based on the components they have. Buckets in memory make use of the structure of arrays (SoA) layout which is computed at runtime based on the currently available archetypes.

NOTE: this is currently in progress thus nothing really works yet

Usage

const Data = struct {
    position: Vec2,
    velocity: Vec2,
    health: u32,
};

const Model = aecs.Model(Data);

About

Archetype Entity Component System for zig

License:MIT License


Languages

Language:Zig 100.0%