Wednesday, March 19, 2014

Day 10 - Component-Based Architecture


While searching about the best ways to structure my code in Unity for further refactoring, i discovered the component-based architecture. Being used so far to object-oriented programming and some coding patterns (singleton, etc.), this was quite a surprise, but a good one!

Component based architecture has its pro and cons, but basically it seems appropriate to game development. When you develop a game, you usually come up with ideas on the ways to make your game better. OOP actually make this process tedious because you always needs to re-think/re-organise your class structure. Component-based architecture aim to avoid that workload, by thinking differently.

Now that i know that, i'm going to explore and experiment with that approach :)

References : Game development : from OOP to component-based - Lightweight Component ArchitectureWikipedia reference

No comments:

Post a Comment