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 > Mode 4 - drawing

#32943 - QuantumDoja - Wed Dec 29, 2004 1:33 pm

Hi, is it true that mode 4 only has one background for drawing?
_________________
Chris Davis

#32952 - ScottLininger - Wed Dec 29, 2004 5:14 pm

Sort of. It only has one "background", but it has two "pages" to write to. So you can draw offscreen then flip your page to display your updated graphics.

The pern tutorial does a good job of going over mode 4. http://www.thepernproject.com.

You can also simulate another background on top of your page by using a series of sprites that form one meta-background. You could, for example, stitch three 64x64 sprites together for a 192x64 floating dialog box.

-Scott