Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I turn individual pixels on & off (i.e. APA graphics) instead of drawing with tiles ?

0
Posted

How do I turn individual pixels on & off (i.e. APA graphics) instead of drawing with tiles ?

0

The ability to turn individual pixels on & off on the screen is often called APA (or All Points Addressable) graphics. On the GBC you can do this by putting a unique tile at each screen map location. Since the GBC can have 512 unique tiles, 360 of these are enough to cover the entire screen (20×18 tiles.) Then you can set individual screen pixels to any colo(u)r by writing to tile memory. On the other GBs (pocket, classic, super) you only have access to 256 tiles at one tile which is less than the 360 unique tiles required to fill the screen. But, by using a mid-screen LYC interrupt you can switch from tile set #1 to tile set #2 midscreen. This effectively allows you to display up to 384 unique tiles (since tile set #1 & #2 half overlap each other) which is enough to fill the screen to allow APA graphics.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123