#147560 - myersn024 - Sun Dec 23, 2007 7:15 am
I've been working on learning everything that I need to know to get started programming for the DS for the last two weeks. Tonight I wrote my first lines of DS homebrew code, and I've run into a problem regarding graphics files. Thus far, I've been unable to link any graphics files into my programs. I've tried using GraphicConverter for OSX to save as a byte-array and then use hConvert to convert them into .bin files, but I can't get them to link. Are there any special steps required in getting them to work?
I haven't had any problems creating my own tiles using something like this->
and then drawing them to the screen using colors manually specified by the BG_PALETTE[1] = RGB15(what ever color I want) command. Coming from coding PSP homebrew, the DS is a huge change. I always liked programming 2D games and the PSP was a bit of a bear to use to make 2D games since it has 3D hardware. The DS is the first system that I've used that has 2D hardware, and I LOVE IT thus far. It's almost like cheating compared to the PSP stuff.
Thanks in advance,
Nick
I haven't had any problems creating my own tiles using something like this->
Code: |
u8 myTile[64] = {
1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1 }; |
and then drawing them to the screen using colors manually specified by the BG_PALETTE[1] = RGB15(what ever color I want) command. Coming from coding PSP homebrew, the DS is a huge change. I always liked programming 2D games and the PSP was a bit of a bear to use to make 2D games since it has 3D hardware. The DS is the first system that I've used that has 2D hardware, and I LOVE IT thus far. It's almost like cheating compared to the PSP stuff.
Thanks in advance,
Nick