Re:Writing a game engine in pure C: The Graphic Initialization
by vvanders on Wednesday June 05, 2019 @01:16PM
(#20106718)
In all my gamedev I've found that the best structure was how Lua does meta-tables.
You can then use that simple mechanism to implement inheritance, component based design, message passing or whatever structure makes the most sense for your game design. I'm personally tend to lean towards component based for reusability and performance but that's by no means a hard-and-fast rule.
You can then use that simple mechanism to implement inheritance, component based design, message passing or whatever structure makes the most sense for your game design. I'm personally tend to lean towards component based for reusability and performance but that's by no means a hard-and-fast rule.