3 ms·
Hey, thanks! Yeah, that's the impression I get. The ability to add functionality to an object in small modules (Components/Behaviours) However this only works
by seivan 12y ago
Hey, thanks!
Yeah, that's the impression I get. The ability to add functionality to an object in small modules (Components/Behaviours)
However this only works if there is a inherent structure and ability to use components. Most frameworks and libraries I have worked with don't really have that structure.
For instance, SpriteKit (Apples 2d framework) lacks a structure for building components. So most SpriteKit examples tend to have deep hierarchies of class inheritance.
If you'd want to take a look I wrote this https://github.com/seivan/SpriteKitComposition https://github.com/seivan/SpriteKitComposition
Documentation is still lacking as I am playing around with function names but it has a test suites that demonstrates usage.