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 :)

Thursday, August 6, 2009

Quick updates

Haven't worked on the entry at all, because a lot of work to do before my 15 days of vacations. However, I have solved some problems I had with VRAM overlapping, but I'm in stuck with sprites now. I hope I'll be able to fix the sprite handling code in this week-end.