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.

Beginners > Does an up-to-date libgba tutorial actually exist?

#170437 - TheMagnitude - Thu Sep 24, 2009 10:08 pm

I really want to learn how to use libgba, as is, without using extra libraries such as tonc; and I have been looking around the internet for ages. If anyone knows of a libgba tutorial please give me a link or something.

Thanks

#170438 - Drovor - Fri Sep 25, 2009 12:03 am

I'm pretty sure the tonc tutorials are what your looking for. If you look at the first demo, you can see that it doesn't use any libraries.

http://www.coranac.com/tonc/text/first.htm

#170439 - TheMagnitude - Fri Sep 25, 2009 10:24 am

in parts of the code it says stuff like: "(from tonc_memmap.h)" and stuff, I do not want to use tonc I want to use libgba. Tonc uses different names and stuff for variables. It doesn't use libgba at all.

Maybe the done thing is to learn tonc, then switch to libgba? Or am I misunderstanding tonc?

#170440 - Dwedit - Fri Sep 25, 2009 1:00 pm

Most of Libgba is nothing more than names of hardware registers, and macros to help you set the correct bits.

So the real tutorial is figuring out what you intend on doing, and either looking up the bit patterns in GBATEK, or looking through the header files and seeing what the bits are named.


There is also other code in LibGBA too now, including the MaxMod sound library, the simple text console, and others.
_________________
"We are merely sprites that dance at the beck and call of our button pressing overlord."

#170441 - TheMagnitude - Fri Sep 25, 2009 4:51 pm

Ah I see, I shall learn the tonc tutorial then since that explains things in great depth. Thank you for your help.