Fordi / P2PPU

A NES-like Picture Processing Unit for the Pixel 2.0 by Rabid Prototypes
https://www.kickstarter.com/projects/rabidprototypes/pixel-20-the-arduino-compatible-smart-display
0 stars 0 forks source link

[Free-for-all] Add second background layer and foreground layer. #6

Closed Fordi closed 7 years ago

Fordi commented 7 years ago

Each layer occupies only 2050 bytes in memory (32x32 16 bit name table, plus x/y offset), so these are cheap additions to enhance the PPU's power. Drawing order would be:

1. (Furthest back) Background color (currently passed into `render`, but should probably be a property of the class)
2. Background 0
3. Background 1
4. Sprites
5. Foreground