174 reputation
9
bio website eliasdaler.wordpress.com
location Russia, Moscow
age
visits member for 1 year, 10 months
seen 2 days ago

Programmer and indie game developer. http://eliasdaler.wordpress.com/


2d
comment Stroring components in arrays (entity component system)
To be honest, I have more problems with the design and lots of virtual casts I have to do at the moment(I store Components in Entity as std::vector<Component*>) than cache misses. I just want to make "pure" ECS where entity is just an id. And how would that unordered map work? I don't quite get it. Can you provide a more specific example, please? And thanks for that link, will definitely check it out.
Dec
15
awarded  Curious
Dec
14
asked Stroring components in arrays (entity component system)
Sep
24
awarded  Autobiographer
Jul
2
accepted How can I manage entities(in entity component system) using Lua scripts?
Jul
2
comment How can I manage entities(in entity component system) using Lua scripts?
Thanks a lot, I've accepted the answer :)
Jul
2
comment How can I manage entities(in entity component system) using Lua scripts?
@glampert Maybe my question was not exactly clear,(I've edited my question) but my main question is: should I try to find a way for Lua to know about components or should I write wrapping functions like "setAnimation" in my example?
Jul
2
awarded  Editor
Jul
2
revised How can I manage entities(in entity component system) using Lua scripts?
added 34 characters in body
Jul
2
comment How can I manage entities(in entity component system) using Lua scripts?
Thanks for your answer! Two more questions: 1)Is my method of working with entities okay? I think it's easier to make some wrapper functions (like "setAnimation" in my example) than make a way to access components for each entity. Or should I do it the way you have shown? 2) You create entity in Lua in your example. How can you access it in C++? What if you have hundreds of entities? Is it possible to create them in Lua while still having fast access to them in C++?
Jul
1
asked How can I manage entities(in entity component system) using Lua scripts?
May
21
awarded  Critic
May
21
asked How do I implement space partitioning in entity component system?
Apr
23
accepted How do I deal with different “types” of entities in Entity-Component-System model?
Apr
23
comment How do I deal with different “types” of entities in Entity-Component-System model?
No, I mean do I need to have something like FurnitureDamageComponent and EnemyDamageComponent, etc. because different entities will react on collisions differently
Apr
23
comment How do I deal with different “types” of entities in Entity-Component-System model?
But I want to have different collision responses. Does that mean I'll have different components for each?
Apr
23
comment How do I deal with different “types” of entities in Entity-Component-System model?
Thanks for your answer. Do I need to have some sort of DamagedBehaviour classes to deal with collisions when CollisionSystem notifies them that collision happened?
Apr
23
asked How do I deal with different “types” of entities in Entity-Component-System model?
Oct
27
awarded  Talkative
Oct
26
awarded  Commentator