Acmlm's Board - I2 Archive - Rom Hacking - Want to actually make GBA games from scratch...
User | Post |
Sokarhacd
Posts: 502/1757 |
havent really figured anything new out, but I have been a little busy, ill probably mess around with it and read up on the gba screen format, and probably look at a couple deom games sources availiable for ham, then I should have a better idea on how text stuff works, and the cool thing about ham, is if you want, and know how, you can use asm in with the C to make it faster...and with ham, I believe Mode 7 isnt too hard to get working for some cool effects. |
Nebetsu
Posts: 376/1574 |
Originally posted by Dcahrakos actually, im still trying to figure that out, I was trying to draw a line on top of text, and below text, but I couldnt, but also, the draw text function is mostly for debugging purpose, im not sure what a good way to make text with bitmaps is...I know ham comes with a charset generator...which makes bitmaps out of size and fonts....ill edit this post when I figure some things out.
Sounds cool. I'll look foreward it. Haha. I havnt progressed anywhere. I spent like a couple hours on doing stuff with this other tutorial and then I havnt found the time since to do any more GBA developement tutorials. Probably because the thing I'm working on is very intimidating. |
Sokarhacd
Posts: 496/1757 |
actually, im still trying to figure that out, I was trying to draw a line on top of text, and below text, but I couldnt, but also, the draw text function is mostly for debugging purpose, im not sure what a good way to make text with bitmaps is...I know ham comes with a charset generator...which makes bitmaps out of size and fonts....ill edit this post when I figure some things out. |
Xtreme984
Posts: 51/111 |
Dcahrakos, how can I draw text when the bg mode is either 4 or 5? |
Sokarhacd
Posts: 495/1757 |
well, I just figure out how to load bitmaps to the Background without it messing up...
and the code is in C and you can use C++ and the src for that image i just showed is 20 lines and looks like:
#include #include "gfx/test.raw.c" #include "gfx/test.pal.c"
int main() { ham_Init();
ham_SetBgMode(4);
ham_LoadBGPal((void*)test_Palette,256);
ham_LoadBitmap((void*)test_Bitmap);
ham_FlipBGBuffer();
while(1) {}
return 0; }
edit:
I made a little test game, it shows the ham slashscreen(mandatory), my splash screen(had to code myself, using the picture from that BG) and 2 sprites on screen(a blue ball with red dots, and there is no alpha blending, so it has a white box around it(dont know how to use alpha blending yet))
http://www.freewebs.com/gbadev/test3.zip (to lazy to get better hosting...lol)
Gavin
Posts: 254/799 |
ick, something about being 16 lines of code producing text on a screen turns me off. i want to see some assembly in there and not as inline |
Sokarhacd
Posts: 494/1757 |
a warning...kinda...when you get the newest version of HAM, goto http://console-dev.de/visualham/
and download the newest version of visual ham, along with the update (they are both at the bottom of the page)
that makes compiling the project alot faster, and adds more features.
something that took 5 minutes to do lol...
|
windwaker
Posts: 153/1797 |
What tools did you use for this? This looks like it'd be really awesome to try and do . |
Xtreme984
Posts: 50/111 |
Dcahrakos that HAM thing is actually pretty tight, nice find my friend. (hopes to get better at C and C++, doesn't know any) |
Sokarhacd
Posts: 493/1757 |
how about using HAM?, along with Visual HAM, and its very easy, the only thing is there is a created with ham splash screen when you make any rom, but that doesnt really matter, and HAM is really easy to use...at least I think its easy to use, an really easy to draw lines, print text, etc, except im having trouble with bitmaps...
http://www.ngine.de/site/index.php its a german url, but its english, so is HAM. |
Nebetsu
Posts: 366/1574 |
Originally posted by HyperHacker What language and program did you write it in? I managed to print some text in C, but that's just calling a library function.
Did it in C... |
HyperLamer
Posts: 1808/8210 |
What language and program did you write it in? I managed to print some text in C, but that's just calling a library function. |
Dylan
Posts: 1054/1407 |
Originally posted by Nebetsu
Originally posted by windwaker !!!
Sheesh, that was fast. Was it really that difficult?
Not really. Previous programming experiance helps.
I'm sure it would, but what you made doesn't require any programming.
Anyway, you're other option would be to program the game from scratch with assembly, but that would require a lot of heavy reading-up and likely some brainache, so that wouldn't be your option for quick results. Unless of course, you have some suitable programming experience in that area, in which case you may be able to learn a lot faster. |
Nebetsu
Posts: 365/1574 |
Originally posted by windwaker !!!
Sheesh, that was fast. Was it really that difficult?
Not really. Previous programming experiance helps.
EDIT: This would be fun!
http://www.jandaman.com/games.mvc?c=GBADEVKIT |
windwaker
Posts: 146/1797 |
!!!
Sheesh, that was fast. Was it really that difficult? |
Nebetsu
Posts: 364/1574 |
Originally posted by Chickenlump Damn, your fast...
Pretty good for a first try...within minutes of finding the resources...
2 minutes, no crashing for me.
I have had programming experiance before. Plus it was just a matter of drawing each pixel one by one...... It wasnt really that hard.
Maybe my computer just sucks. |
Chickenlump
Posts: 395/722 |
Damn, your fast...
Pretty good for a first try...within minutes of finding the resources...
2 minutes, no crashing for me. |
Nebetsu
Posts: 363/1574 |
Originally posted by Chickenlump I'm sure a mod will eventually move it if he or she thought that it did.
Chickenlump
Posts: 394/722 |
I'm sure a mod will eventually move it if he or she thought that it did. |
Ringodoggie
Posts: 124/281 |
Um, should this thread go in the programming forum? |
This is a long thread. Click here to view it. | | |
|