Timeline for How would I handle input with a Game Component?
Current License: CC BY-SA 3.0
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Dec 3, 2012 at 7:21 | vote | accept | aufziehvogel | ||
| Dec 1, 2012 at 22:02 | comment | added | ashes999 | @Aufziehvogel it's up to you how you implement that. My entities all have a generic list of components, but you could as easily keep references in your entities to the components they have. You can find more general stuff in this awesome article: gameprogrammingpatterns.com/component.html ("How does the object get its components?") | |
| Dec 1, 2012 at 19:55 | comment | added | aufziehvogel | What are HasComponent and GetComponent used for? It does not seem they are needed for functionality; but you mentioned them, so I guess they are important? | |
| Dec 1, 2012 at 13:54 | history | answered | ashes999 | CC BY-SA 3.0 |