#162364 - crazycrow - Mon Sep 01, 2008 9:26 am
hi,
I'am new in DS development.
I don't know if it is possible, but I want to know if I can write on screen with the console at the position what I want, not with the square, (0->31 on x and 0 -> 24 on b) but with the coordonate in Pixel (0 -> 256 on x and 0 -> 192 on y). Or should I create my own methode to do that ?
Thanks a lot for your answer .
PS: sorry for my bad English, but i'am French.
#162365 - eKid - Mon Sep 01, 2008 10:08 am
The console is shown using the 'tilemap' rendering hardware. You can offset the whole block of text by some pixels, but that's probably not really what you want in this case. My solution would be to create another method to render to a bitmap BG instead.
#162366 - crazycrow - Mon Sep 01, 2008 10:29 am
What do you mean by 'render to a bitmap BG instead' ?
#162368 - eKid - Mon Sep 01, 2008 10:36 am
The DS has multiple video modes, and in a few of them you can setup the BGs to display bitmap data (BGs = backgrounds = a few layers of graphics which compose what is displayed on the screen).
Video modes 3,4,5 allow BG 2 and/or 3 to display bitmap data. Check out the "Graphics" examples provided by devkitPro for a better understanding.
#162370 - crazycrow - Mon Sep 01, 2008 10:48 am
If I have understand,
I create de BackGround dedicated to all text, placed in foreground, and I copy letter by letter on it, like
Code: |
int i , j;
for(i= 0; i<16; i++)
for(j= 0;j < 16; j++)
VRAM_A[x+i + (y+j)*256] = MyFont[i + j*16];
|
With MyFont the Font in BMP without palette.
is it that ?
#162371 - elwing - Mon Sep 01, 2008 10:51 am
hum, it looks like you really should read tonc tutorial, it is simply great, describe all these gba/ds hardware specific things and even propose a great lib that allow you to simply output text on almost all modes using variable width font and such...
#162378 - crazycrow - Mon Sep 01, 2008 1:31 pm
Thanks, I will read that.
I Know this WebSite, but , I haven'r see that part .
#162380 - crazycrow - Mon Sep 01, 2008 2:40 pm
If I have understand the tonc ex, with the Bitmap text, it is the same as i have say before, but, Tonc use a FontData with the colorated pixel , colorize the pixel with the color in paramaters, and me , I use the color in the dataFont. My dataFont Contening le Color of each pixel .