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.

Coding > text for GBA?

#160806 - Underscore - Tue Jul 22, 2008 9:36 pm

so when programming for the GBA in C++ text does not work.
i'm a beginner and and all i want to do is run simple programs
from the very little i know of C++.
although i dont think i can because i cant get plain text to work.
whats up with this? do i need to learn graphics in C++ and make
my own text?
_________________
<.-/--.->

#160809 - Dwedit - Tue Jul 22, 2008 10:03 pm

Look at the text console example program that comes with devkitpro
C:\devkitPro\examples\gba\graphics\ansi_console
_________________
"We are merely sprites that dance at the beck and call of our button pressing overlord."

#160826 - gauauu - Wed Jul 23, 2008 2:42 am

Slightly longer answer:

The gba doesn't have support for text directly, like a console or terminal from your pc's os does. Generally this means if you want text, you find or put together a library which writes textual graphics on the screen according to your text. A common way to do it is to use one 8x8 background tile for one character.

There are libraries out there which do a lot of that for you so you don't have to always worry about the details.

#160850 - ScottLininger - Wed Jul 23, 2008 4:29 pm

I'm a fan of AGBTTY by Tepples.

http://pineight.com/gba/

-Scott
_________________
Some of my GBA projects

#160854 - Underscore - Wed Jul 23, 2008 6:39 pm

so does the gbfs work the same as the
agbtty?
_________________
<.-/--.->

#160857 - Kyoufu Kawa - Wed Jul 23, 2008 6:44 pm

GBFS is a method to handle blocks of data. AGBTTY is a text output system.

#160868 - silent_code - Wed Jul 23, 2008 8:53 pm

GBFS = GAME BOY FILE SYSTEM...
_________________
July 5th 08: "Volumetric Shadow Demo" 1.6.0 (final) source released
June 5th 08: "Zombie NDS" WIP released!
It's all on my page, just click WWW below.

#160877 - Underscore - Wed Jul 23, 2008 11:07 pm

oh, that makes sense. Thanks everybody.
_________________
<.-/--.->

#160944 - Kyoufu Kawa - Thu Jul 24, 2008 7:44 pm

No problem. Just try not to make such silly mistakes too often. If those add up too much, helpfulness on the Intertubes tends to decrease.