I really like DevKitPro and the libraries and tools it comes with for most consoles, but it really seems the GBA is barely getting attention with libgba. It looks more like a collection of header files than a library to help homebrew development. Maybe it's because the system is old and less popular but the NDS has many helper functions to handle sprites and effects. The GBA with libgba has exactly ZERO functions to help you setting this up!! Maybe they removed it or because of the low memory they did not want to include too much or something, I don't know.
I thought...let's be helpful and contribute to the GBA examples by porting the simple ones from the NDS that just use the 2D engine and not require touch. Even the one called "simple" is very hard to get working because you have to setup the sprites yourself. To be fair there is also libtonc that seems to provide these functions, but the entire API is different and incompatible with libgba. I got TONS of errors and warnings because stuff gets declared twice by them. All I wanted is a way to initialize the OAM and reserve some VRAM for my sprite which in this example was just a single colour!
Is there really so little homebrew going on for the GBA these days that nobody cares or noticed this earlier? Or is it because of this that there is not much homebrew for the GBA????
Only these options are left I guess:
- make a fork of libgba to add the missing functions
- switch over to libtonc
- write my own helper functions
- "borrow" libtonc functions and modify to work in libgba
I am not really liking option 2 and 3 for a couple of reasons, and option 1 is going to take a bunch of time!! Option 4 is kind of evil but will get me further a lot sooner that doing it all on my own I think. The best way is to make it as compatibly as I can to the NDS so the examples are easily ported over. The reason for porting by the way is also to get experience with the GBA and the libraries. Helping others by providing the examples later is just a nice additional bonus.
Originally I had many ugly words planned towards libgba but I think I managed to keep myself under control. Right?
EDIT1: After considering a few options and testing stuff out....the first example called "simple" from the NDS examples has been ported to the GBA now
EDIT2: It took a while longer but the "Sprites" part of the "fire_and_sprites" example is ported too.
View attachment 214512View attachment 214544
NB: This is not WinXP (just to be clear) but a theme on XFCE
I thought...let's be helpful and contribute to the GBA examples by porting the simple ones from the NDS that just use the 2D engine and not require touch. Even the one called "simple" is very hard to get working because you have to setup the sprites yourself. To be fair there is also libtonc that seems to provide these functions, but the entire API is different and incompatible with libgba. I got TONS of errors and warnings because stuff gets declared twice by them. All I wanted is a way to initialize the OAM and reserve some VRAM for my sprite which in this example was just a single colour!
Is there really so little homebrew going on for the GBA these days that nobody cares or noticed this earlier? Or is it because of this that there is not much homebrew for the GBA????
Only these options are left I guess:
- make a fork of libgba to add the missing functions
- switch over to libtonc
- write my own helper functions
- "borrow" libtonc functions and modify to work in libgba
I am not really liking option 2 and 3 for a couple of reasons, and option 1 is going to take a bunch of time!! Option 4 is kind of evil but will get me further a lot sooner that doing it all on my own I think. The best way is to make it as compatibly as I can to the NDS so the examples are easily ported over. The reason for porting by the way is also to get experience with the GBA and the libraries. Helping others by providing the examples later is just a nice additional bonus.
Originally I had many ugly words planned towards libgba but I think I managed to keep myself under control. Right?
EDIT1: After considering a few options and testing stuff out....the first example called "simple" from the NDS examples has been ported to the GBA now
EDIT2: It took a while longer but the "Sprites" part of the "fire_and_sprites" example is ported too.
View attachment 214512View attachment 214544
NB: This is not WinXP (just to be clear) but a theme on XFCE