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 > GFX2GBA Confused :S

#45859 - Toadhead - Wed Jun 15, 2005 10:00 pm

gfx2gba is confusing me ALOT!
I readed the readme like 30 times but it couldnt help me.

Look, I want to have 2 backgrounds for my game and I want 2 sprites.
How am I going to do this?

This is how I think everything needs to be done:

Background

If you have a 256 colors background you'll need to get 3 type of files: BG.pal.c and BG.raw.c and BG.map.c
(question one: why 3 different files? And what does every file do (what is it function)?
You get get this by typing: "gfx2gbx -x -fsrc -m BG.BMP" (right?)

Sprites

You'll need to get the following 2 (?) file types of your sprite.BMP:
sprite.pal.c and sprite.raw.c
(question 2: were do these files types stnad for? pallete is for colors or something and raw.c is for ...)

What if I want to create 2 sprites that look the same? Can I use the same sprite.pal.c file? And also the same sprite.raw.c??

And how do I MAKE these 2 sprite filetypes? The same way as with the background: "gfx2gbx -x -fsrc sprite.BMP" ?? Because I get some strange pixels colored on my screen when I try to run a program with these files. Some blocks with alot of colored pixels but they dont look like my sprites. (only the backgrounds work)

#45990 - headspin - Fri Jun 17, 2005 5:03 pm

pal = palette, raw = raw data.. what else could it be?

Personally, I use gifs2sprites from http://gbadev.org/tools.php?section=gfx . Might be less confusing for u 2. I do use gfx2gba (both versions) for everything else though ie. tiles/BGR15.
_________________
Warhawk DS | Manic Miner: The Lost Levels | The Detective Game