#114873 - JessTicular - Thu Jan 11, 2007 6:01 am
Howdy :)
I'm not exactly new to DS development, but this one has me stumped!
I've set up and am using sprites (tall rotated, square rotated and just square), all of which display perfectly in Dualis, and function without any worries.
However, when I upload it to my DS (WiFiMe), the sprites simply wont show. All the game logic works, I can still press the buttons, and the touch-screen interface works fine, yet no Sprites...
some code:
main_arm9.cpp (main code)
sprites.cpp (sprite handling)
and a binary so you can check for yourself (to make sure it's not my DS :P)
xmas.nds (~723KB)
( The game-logic for the code and binary supplied have been removed to make sure none of that was interfering )
Thanks for any and all help that you can provide!
Jess.
[SOLUTION]
The problem was with the Alpha.
I had: sprites[0].attribute[2] = ATTR2_ALPHA(0)
When I should have had: sprites[0].attribute[2] = ATTR2_ALPHA(1)
I don't know why its different between hardware and emulator, but it is, and lesson learnt!
[/SOLUTION]
_________________
Nintendo DS & Dominos :: DS Dominos
http://jt0.org
Last edited by JessTicular on Sat Jan 13, 2007 8:35 am; edited 1 time in total
I'm not exactly new to DS development, but this one has me stumped!
I've set up and am using sprites (tall rotated, square rotated and just square), all of which display perfectly in Dualis, and function without any worries.
However, when I upload it to my DS (WiFiMe), the sprites simply wont show. All the game logic works, I can still press the buttons, and the touch-screen interface works fine, yet no Sprites...
some code:
main_arm9.cpp (main code)
sprites.cpp (sprite handling)
and a binary so you can check for yourself (to make sure it's not my DS :P)
xmas.nds (~723KB)
( The game-logic for the code and binary supplied have been removed to make sure none of that was interfering )
Thanks for any and all help that you can provide!
Jess.
[SOLUTION]
The problem was with the Alpha.
I had: sprites[0].attribute[2] = ATTR2_ALPHA(0)
When I should have had: sprites[0].attribute[2] = ATTR2_ALPHA(1)
I don't know why its different between hardware and emulator, but it is, and lesson learnt!
[/SOLUTION]
_________________
Nintendo DS & Dominos :: DS Dominos
http://jt0.org
Last edited by JessTicular on Sat Jan 13, 2007 8:35 am; edited 1 time in total