#165753 - Echo49 - Mon Jan 05, 2009 9:57 pm
At the moment, iprintf can only print text onto specific blocks on the screen. I was wondering if it is possible to to modify the code so that I can print to any position on the screen I want?
#165754 - kusma - Mon Jan 05, 2009 10:02 pm
You already can, through ANSI escape sequences. See the ansi console example for details.
#165757 - Echo49 - Mon Jan 05, 2009 11:34 pm
With that, you can only print to specific blocks, eg. specifying (1, 1) prints to the position (8, 8). What I mean is printing to any position on the screen I want.
#165758 - kusma - Tue Jan 06, 2009 12:10 am
That's because the console uses text-mode, and thus operates in 8x8 blocks on the Nintendo DS. Modifying iprintf (and the rest of the console) to use bitmapped modes is not easy, and really beyond it's scope. Other people already wrote bitmap font-routines, check out the font-plotter in Tepples' LockJaw source code for an example.
#165762 - Dwedit - Tue Jan 06, 2009 2:19 am
You want a set of blit and sprite routines, either to work in a pixel mapped mode, or for a tile mapped mode.
_________________
"We are merely sprites that dance at the beck and call of our button pressing overlord."