Skip to content

Instantly share code, notes, and snippets.

@aganm
aganm / dense.c
Last active March 25, 2024 19:48
Zero Lines ECS
// A component is a plain old datatype
typedef struct Position {
float x;
float y;
} Position;
// An entity can have 0 .. N components
typedef struct Archetype1 {
int count;
Position position[1024];