Tuesday, August 11, 2009

A framework!

I don't like procedural programming at all. It's chaotic. So I have spent a bunch of free hours to encapsulate some libnds' functions on a OO framework. I have thrown away something like 12 units full of spaghetti-code and now I have only 3 classes in an unit: TNDSApplication, TNDSScreen and TNDSBackground. I can attach backgrounds to screens and screens to application now, freeing things to release unused memory and switching from a screen to a completely different one in a single line of code :)

No comments:

Post a Comment