I was just reading back and sketchbookgames also made a comment about your package structure, mayobutter:
I'd agree with this and would suggest even more fine grained, structured packaging. But I hear you saying:
Very valid, it's even more of a pain in the ass when you've got subdomains and .com.au etc to deal with on top. So anyway I'd propose a meet in the middle solution:
Structure your base classes using normal package conventions, but create convenience classes for commonly used objects (like you have done with shapes) in shallowly nested packages. This way you can provide convenience AND great code organisation all at once. 😉
sketchbookgames wrote:
Some improvements i would like to make.
wrap your code into com/sideroller
Including:
wrap your code into com/sideroller
Including:
- extras
- gravity
- misc
- shapes
- wck
- (and maybe Box2DAS)
I'd agree with this and would suggest even more fine grained, structured packaging. But I hear you saying:
mayobutter wrote:
I've seen other packages organized this way. Personally I find the deep folder hierarchy extremely cumbersome. That, and when defining symbols in Flash it is nicer to type "shapes.Box" as the base class rather than "com.sideroller.shapes.Box".
Very valid, it's even more of a pain in the ass when you've got subdomains and .com.au etc to deal with on top. So anyway I'd propose a meet in the middle solution:
Structure your base classes using normal package conventions, but create convenience classes for commonly used objects (like you have done with shapes) in shallowly nested packages. This way you can provide convenience AND great code organisation all at once. 😉