Search found 224 matches

by vuurrobin
Sun May 24, 2009 4:27 pm
Forum: DS Development
Topic: Using oamInit() to reset the OAM
Replies: 4
Views: 2201

Re: Using oamInit() to reset the OAM

or by setting the sprites visibility to false, which is what oamClear() does.

also, oamInit() calls oamAllocReset() in the end, so I think it would be ok.
by vuurrobin
Sat May 23, 2009 6:14 pm
Forum: Bug Reports
Topic: libnds: sprite functions and document bugs
Replies: 0
Views: 2033

libnds: sprite functions and document bugs

1. the dx parameter of the oamSetMosaic() function doesn't work (the dy parameter does work). 2. there is a function to set the mosaic for the main sprites, but there isn't a function to set the mosaic for the sub screen. I've created a function that you can copy, (modify) and paste to sprite.h. do ...
by vuurrobin
Fri May 22, 2009 11:58 pm
Forum: DS Development
Topic: Using oamInit() to reset the OAM
Replies: 4
Views: 2201

Re: Using oamInit() to reset the OAM

well, one of the first things oamInit() does is a call to dmaFillWords(), so my guess would be yes. I suggest you try it out and see if anything weard happens.

but why aren't you using oamClear() to clear/reset the oam?
by vuurrobin
Thu May 21, 2009 10:28 pm
Forum: DS Development
Topic: Help starting with libnds please?
Replies: 1
Views: 1584

Re: Help starting with libnds please?

the makefile is used to automate the entire proces of compiling and linking the code for the arm 7 and 9 binarys, adding those binarys together with a correct header ect. it can also convert images and other files automaticly. I have little to no experience with visual studio, so I cant say if its s...
by vuurrobin
Thu May 21, 2009 10:13 pm
Forum: DS Development
Topic: questions about libnds
Replies: 2
Views: 4277

Re: questions about libnds

thanks for all the anwsers, Sylus101. 1. if its taken care of by libnds, then I don't have to worry about it. I just wanted to make sure that I dont get undefined behavior later on. 2. I figured out how to get bmp sprites. you need to use 'SpriteColorFormat_Bmp' when specefying the bitdebth with oam...
by vuurrobin
Sat May 16, 2009 12:36 am
Forum: DS Development
Topic: questions about libnds
Replies: 2
Views: 4277

questions about libnds

hello everybody I have some questions about the libnds sprite functions, and some documentation 'bugs'. first the questions: 1. I always thought you needed to enable which background you want to use and if you want to use sprites when calling videoSetMode(). however, I found that it also works witho...
by vuurrobin
Fri May 15, 2009 8:03 am
Forum: DS Development
Topic: Bginit using registers
Replies: 3
Views: 2645

Re: Bginit using registers

sorry, you need to use BG_32x32 to specefy that you want to use a text background with 32*32 tiles (= 256*256 pixels) and BG_COLOR_256 for a 256 color text background.

if you look here, you can see al the different enums:
http://libnds.devkitpro.org/a00108.html ... 2ea5e90460
by vuurrobin
Thu May 14, 2009 10:32 am
Forum: DS Development
Topic: Bginit using registers
Replies: 3
Views: 2645

Re: Bginit using registers

if you look here, you see that background 3 is an extended rotation background in mode 5. it is already determent in hardware, so you don't have to specify it.

as for the size, I think you need to include BG_BMP8_256x256 when initialising REG_BG3CNT.
by vuurrobin
Wed May 13, 2009 9:03 pm
Forum: DS Development
Topic: RGB15 does not work
Replies: 6
Views: 2732

Re: RGB15 does not work

its ARGB16(), defined in sprite.h

sorry, my bad :oops:
by vuurrobin
Wed May 13, 2009 12:03 pm
Forum: DS Development
Topic: Random Number...
Replies: 6
Views: 3443

Re: Random Number...

time is just a function that a number. so srand will always use the time it was given when you called time().
however, you only have to call srand() once. when you call rand(), it will change the seed for you, so calling rand() twice should give you 2 different numbers.