3 ms·
In my ECS I do this by storing the actual data in a dense array, alongside a hash that maps entity IDs to array indexes. If you want to see the (javascript) in
by fenomas 8y ago
In my ECS I do this by storing the actual data in a dense array, alongside a hash that maps entity IDs to array indexes.
If you want to see the (javascript) innards:
https://github.com/andyhall/ent-comp https://github.com/andyhall/ent-comp