Search found 41 matches

by dovoto
Wed Feb 11, 2009 2:39 pm
Forum: DS/DSi Development
Topic: examples not compiling
Replies: 4
Views: 5583

Re: examples not compiling

I'm using windows xp pro sp2. i thought i had to make sure everything was in dos format, my friend said i would get lots of errors if i tried compiling with unix line endings. I don't notice a difference in the errors, so i guess it isn't that. I think you need a new friend to go to for programming...
by dovoto
Sun Feb 08, 2009 7:02 pm
Forum: DS/DSi Development
Topic: different versions of the makefile with the examples
Replies: 4
Views: 5225

Re: different versions of the makefile with the examples

The only change to a makefile that is needed for file system use to add libfat: #--------------------------------------------------------------------------------- # any extra libraries we wish to link with the project #---------------------------------------------------------------------------------...
by dovoto
Sun Feb 08, 2009 6:58 pm
Forum: DS/DSi Development
Topic: background map, how do i get a specific tilenumber
Replies: 1
Views: 2937

Re: background map, how do i get a specific tilenumber

Code: Select all

int bg = bgInit( ... ); 

u16 *map = bgGetMapPtr(bg);

int tile = map[x + y * bg_width_in_tiles];
background api documentation:
http://libnds.devkitpro.orga00101.html# ... 370e59b99c
by dovoto
Sat Feb 07, 2009 3:32 am
Forum: DS/DSi Development
Topic: sprite palettes, 256 colors[solved]?
Replies: 8
Views: 8394

Re: sprite palettes, 256 colors?

Sylus101 wrote:Looking at that example, doesn't this:

Code: Select all

videoSetMode(MODE_0_2D);
Need to be this?

Code: Select all

videoSetMode(MODE_0_2D | DISPLAY_SPR_EXT_PALETTE);
No. The sprite and bg api both handle the setting of the display control registers as needed.
by dovoto
Fri Feb 06, 2009 5:45 am
Forum: DS/DSi Development
Topic: chishm's bootloader in new libnds, tutorial?
Replies: 11
Views: 10532

Re: chishm's bootloader in new libnds, tutorial?

Chishm lent us an updated loader. I will ask him if he has a public link to it.
by dovoto
Fri Feb 06, 2009 5:44 am
Forum: DS/DSi Development
Topic: libnds documentation incomplete?
Replies: 7
Views: 8146

Re: libnds documentation incomplete?

hello everybody I've been looking in the libnds documentation for some time, and I noticed that there are some things that aren't in there. now it could be that they aren't included because they are very small and that is seems unnecesairy to put it in, but I think that it's very usefull to include...
by dovoto
Thu Feb 05, 2009 5:06 pm
Forum: DS/DSi Development
Topic: sprite palettes, 256 colors[solved]?
Replies: 8
Views: 8394

Re: sprite palettes, 256 colors?

In writing a quick example to address this question I found a few issues with libnds sprite ext palette handling. These have been repaired and uploaded to the svn. Here is an example for sprite ext palette usage via libnds (requires current svn of libnds as of 2-5-2009) /*---------------------------...
by dovoto
Sat Jan 31, 2009 12:27 am
Forum: DS/DSi Development
Topic: setting Vram I to Sub BG giving error
Replies: 5
Views: 5663

Re: setting Vram I to Sub BG giving error

You can use a sprites to render the 16 bit layer. Just set 2D mapping mode and built a bg with 12 64x64 sprites: This is from my 3D on both screens demo: 105 //------------------------------------------------------- 106 // set up a 2D layer construced of bitmap sprites 107 // this holds the image wh...
by dovoto
Sat Jan 31, 2009 12:20 am
Forum: DS/DSi Development
Topic: How to load a sprite table
Replies: 3
Views: 4877

Re: How to load a sprite table

I added an example to libnds which does nearly exactly this. It uses grit to parse the frames though. Its in the svn and will be out with next libnds release (which is forthcomming). examples/nds/Graphics/Sprites/animate_simple http://devkitpro.svn.sourceforge.net/viewvc/devkitpro/trunk/examples/nds...