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 > Large Text Scrolling on both screens. LIBFB, PALIB or?

#103761 - heyyeah - Sun Sep 24, 2006 12:37 pm

hey, i'm trying to achieve a simple scrolling text however the text is quite large (each glyph being about half screen height) and i'm wanting scrolling in opposite directions on both screens over a long sentence.

should i approach this as map based tiling or use a dedicated text library or use maybe PALib to import the text as a bitmap and let it handle the processing.

could you recommend a tutorial for this?

side note: i thought it was looking easy with the nds-examples but compiling the libfb examples with current devkitpro/eclipse cdt threw me.. fixed paths, recompiled libfb to have same elf version, replaced DISP_SR references and got to:

/opt/local/devkitPro/devkitARM/bin/../lib/gcc/arm-eabi/4.1.1/../../../../arm-eabi/bin/ld: region iwram is full (build.elf section .rodata)
/opt/local/devkitPro/devkitARM/bin/../lib/gcc/arm-eabi/4.1.1/../../../../arm-eabi/bin/ld:
(summarised..)
section .init [03800000 -> 038000e7] overlaps section .ARM.extab [03800000 -> 038000fb]
section .ARM.exidx [038000fc -> 03800553] overlaps section .text [038000f0 -> 0380fa47]
section .ARM.extab lma 0x3800000 ..
section .text lma 0x38000f0 ..
section .ARM.exidx lma 0x38000fc ..
section .init_array lma 0x3800554 ..
section .fini_array lma 0x3800558 ..
section .eh_frame lma 0x380055c overlaps previous sections ..
section .jcr lma 0x3800560 ..
section .iwram lma 0x3800564 ..
section .data lma 0x3800620 ..

this is compiling http://www.dragonminded.com/?loc=ndsdev/LibFB happycat

#103763 - Sausage Boy - Sun Sep 24, 2006 12:43 pm

I'd use a tiled background.
_________________
"no offense, but this is the gayest game ever"

#103789 - josath - Sun Sep 24, 2006 5:04 pm

Is that error coming from compiling the arm7? arm7 has a limited amount of memory space, and it looks like you're putting too much in there.

#103795 - heyyeah - Sun Sep 24, 2006 6:01 pm

yeah, it's the ARM7 part of the code. i was just compiling the example..

i'll have a look at using tiled background PALib.. thanks Sausage Boy.

#107947 - heyyeah - Fri Nov 03, 2006 10:50 am

hey, thanks again for your help. I put the video via youtube on my site
http://www.boxc.net/newtv.php?id=isawtwothingshappening

it's the little nintendo ds that could..?? small motorised ds with scrolling text piece written in pa lib which was just too easy using the graphic tools for large backgrounds that come packaged