#119615 - Lupi - Sat Feb 24, 2007 8:16 pm
My situation:
I'm doing a text engine for my adventure game. I know I could make it with console.h functions, but I need more flexibility to work with the text.
I have taken the font from the libnds examples, the one in Graphics/2D/custom_font
I realized I had to transform the caracters into 16 bits words. My pallette number is also the first one (0) and I don't need to flip the tiles. So I get in bits:
Where ABCDEFGH is the code of the ASCII character.
Because of the problems I was having, I decided to do a SIMPLE example:
Load 6 characters in a line. The character is '!', this is 0000 0001 in my tiles...
This does work on emulators, but doesn't work on hardware
I have been a few days working an engine adapted for my game, it ALWAYS worked on any emulator, but today I decided to go and try on real Hardware, but strange symbols appeared. Every time I started the game, different symbols, some of them were correct, but most of them were not.
My question is, WHAT am I doing wrong?
Thanks in advance
EDIT
A copy of my .nds file:
http://www.megaupload.com/es/?d=BI6KG4W5
Now try on a emulator...
then try in DS hardware...
??
I'm doing a text engine for my adventure game. I know I could make it with console.h functions, but I need more flexibility to work with the text.
I have taken the font from the libnds examples, the one in Graphics/2D/custom_font
I realized I had to transform the caracters into 16 bits words. My pallette number is also the first one (0) and I don't need to flip the tiles. So I get in bits:
Code: |
0 0 0 0 0 0 0 0 A B C D E F G H
Pal Horiz. Verti. Tile index Flip Flip |
Where ABCDEFGH is the code of the ASCII character.
Because of the problems I was having, I decided to do a SIMPLE example:
Load 6 characters in a line. The character is '!', this is 0000 0001 in my tiles...
Code: |
u16 Admiraciones [6]= {0x01,0x01,0x01,0x01,0x01,0x01};
dmaCopy((void *)Admiraciones, (u16 *)BG_MAP_RAM(16), 6*2); |
This does work on emulators, but doesn't work on hardware
I have been a few days working an engine adapted for my game, it ALWAYS worked on any emulator, but today I decided to go and try on real Hardware, but strange symbols appeared. Every time I started the game, different symbols, some of them were correct, but most of them were not.
My question is, WHAT am I doing wrong?
Thanks in advance
EDIT
A copy of my .nds file:
http://www.megaupload.com/es/?d=BI6KG4W5
Now try on a emulator...
then try in DS hardware...
??