Questions tagged [libnds]

`libnds` is an open-source library for Nintendo DS development

libnds is an open-source library for Nintendo DS development. It is the most maintained and stable Nintendo DS homebrew library today and supports almost all of the hardware specific features of the Nintendo DS.

13 questions
5
votes
1 answer

Any way to execute DS code from cartridge?

From what I know, code to run on the DS has to be loaded into RAM, thus taking from the already-restrictive 4M. Is there any way to run DS code directly from the image?
FeepingCreature
  • 3,648
  • 2
  • 26
  • 25
4
votes
2 answers

Weird striping in tile graphics on Nintendo DS

I'm working on a pong game for the Nintendo DS. I'm using libnds to set things up and I've come across a very strange behaviour. So far I've only tried it out in emulators, but I use three different ones and they all exhibit this behaviour so I…
Skurmedel
  • 21,515
  • 5
  • 53
  • 66
4
votes
1 answer

Drawing an image on subscreen of nds

I am totally new to libdns. I try to change the sample Graphics\Backgrounds\256_color_bmp to display the background on the subscreen. Here is my code. Do you have any idea what is missing to display hey_typBitmap on the subscreen? I already managed…
Mathias F
  • 15,906
  • 22
  • 89
  • 159
3
votes
2 answers

5 Bit RGB (0, 31, 0) to 16 Bit RGB (0, 255, 0)

So I've been starting DS programming, and I notice that to draw a pixel the color must be a RGB(0, 31, 0). Is there any way to change that to something like RGB(0, 255, 0)?
NDSgrammer
  • 43
  • 1
  • 4
2
votes
2 answers

Nintendo DS using PAlib

I've been looking in to Nintendo DS development on behalf of my agency and begun using the devkitPro/libnds and PAlib, it seems ideal for our needs until we decide if it's a viable route for us and hopefully invest/apply for a development kit and…
antonmills
  • 171
  • 2
  • 15
1
vote
1 answer

How would one draw to the sub display of a ds as if it was a framebuffer?

I need to draw raw pixel data to the Nintendo DS's "sub" screen, such as if I was drawing to the main screen in "framebuffer" mode or "Extended Rotation" mode. How can I do this with the current version of libnds (which seems to place restrictions…
Adrian
  • 14,931
  • 9
  • 45
  • 70
1
vote
0 answers

Change color when printing using libnds for the nds, programing in C

I'm developing a game for a nintendo emulator using the libnds library from devkitpro and I'm trying to change the color of the text when printing. I initialize the console variable with consoleDemoInit() and then I try modifying several values but…
Mach1n3
  • 11
  • 1
1
vote
1 answer

Nintendo DS. Error Showing a simple sprite using NightFoxLib

I'm getting into simple NDS Development. I'm trying to build a simple game. I built like a button (that is handled like a sprite) and tried to show it on the screen. This is the result: here is what no$gba shows. I followed this tutorial:…
Rom7x
  • 56
  • 1
  • 6
1
vote
1 answer

How can I display sprites on screen on the Nintendo DS using nflib?

Documentation I find online is vague. The only forum I found that's good was https://gbatemp.net/threads/ds-programming-for-newbies.322106/page-8#post-4445495. I followed the code on screen, I made a sprite (16 x 16, 256 color palette) and wrote the…
JuanR4140
  • 85
  • 6
1
vote
2 answers

Why doesn't keysDownRepeat() in libnds seem to work when calling it multiple times?

I have code like this to move the player in my game left, right, up, and down: keysSetRepeat(20, 5); while (lives) { scanKeys(); if (keysDownRepeat() & (KEY_LEFT | KEY_RIGHT | KEY_UP | KEY_DOWN)) { u8 new_x = x; u8 new_y =…
Paige Ruten
  • 172,675
  • 36
  • 177
  • 197
1
vote
1 answer

Garbage on top of screen when displaying text over image in devkit pro

I am currently using the 16-bit libnds (Whith devkitpro) example as a basis and am trying to display text and the png background image on the same screen (in this example it is the top sceen). I am having a similar issue as this post. I have garbage…
Matthew D. Scholefield
  • 2,977
  • 3
  • 31
  • 42
1
vote
2 answers

Combining 3D and framebuffer mode on the DS

The documentation implies that you can either have 3D rendering or framebuffer mode, and each only to the active display. Is there any way to render 3D to one screen and framebuffer to the other?
FeepingCreature
  • 3,648
  • 2
  • 26
  • 25
0
votes
1 answer

Troubling displaying bitmap background using libnds

I'm having some issues getting a 16-bit (ARGB, 1-bit alpha, 5-bit colour channel) bitmap image which I converted using GRIT to display. I have the following image, smpte_colour_bars.png. I converted it with GRIT using the following command line:…