gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > Sprites AND frame buffer info? (noob)

#38386 - Pacifist - Sun Mar 27, 2005 12:11 am

Is there a way to draw both sprites and line art to the primary display?

The idea is I want to be able to draw a line with the touchpad that a sprite will follow.

I've gotten sprites working in MODE_0_2D and line art working in MODE_FB0 but can I do both at the same time? If I attempt to set the mode to both simultaneously the line art works fine but only the edge of sprites are drawn. (this is with the dualis emulator)

Sorry, I'm very new to writing code this low-level.

#38395 - sgeos - Sun Mar 27, 2005 2:13 am

The the GBA ran in bitmapped mode, it could only use the upper half of the tile indexes. Try putting your sprite data at the end of the sprite tile VRAM area and see what happens. (Naturally, set up an OBJ to display the sprite data.)

-Brendan

#38412 - josath - Sun Mar 27, 2005 8:00 am

i don't believe you have any access to tiles or sprites in framebuffer mode, but i could be wrong. generally, framebuffer means you are writing directly to the screen itself, bypassing any graphics hardware. framebuffer is different than bitmap mode.

#38456 - Pacifist - Mon Mar 28, 2005 2:15 am

OK thanks.

I think I'll end up doing the yoshi touch and go thing of using sprites to draw lines.