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 > How can I put the BIG picture in a BG?

#6016 - tangl_99 - Thu May 15, 2003 7:08 am

I am writing a soccer game on GBA.
but the arena picture is too large for a BG.
How can I put the arena in a BG?

Thanks!

#6017 - Lord Graga - Thu May 15, 2003 8:44 am

Use BG mode 0, and make the BG 512x512 big, it's bit 14 and 15.

#6020 - niltsair - Thu May 15, 2003 2:07 pm

Or (to have more 'differents' tiles to display at once) pick mode 0 in 256x256 and load dynamicly the tiles you want to display.

#6046 - darkcloud - Thu May 15, 2003 8:28 pm

And if you need a larger map than 512x512, you can use a mode 1 or 2 rotational bg with a maximum size of 1024x1024.

Probably easier than having to deal with making a dynamic tile system.
_________________
Maybe in order to understand mankind, we have to look at the word itself: "Mankind". Basically, it's made up of two separate words - "mank" and "ind". What do these words mean ? It's a mystery, and that's why so is mankind.

#6095 - tangl_99 - Sat May 17, 2003 12:53 am

I have solved the problem.
I selected a 256x256 Text BG.Then dynamicly load the tiles from the ROM.

but in fact,256x256 BG should have 1024 'different' tiles,it will take up the whole VRAM. So,I loaded Tiles of BG of 256x160. Becase it was enough to cover the screen(240x160).