https://github.com/bbbbbr/gb-window-as-sprite
Demo using the video overlay Window as a huge pseudo-sprite for the original Game Boy (DMG/CGB)
https://github.com/bbbbbr/gb-window-as-sprite
game-boy gameboy gameboy-game retro-gaming
Last synced: about 1 year ago
JSON representation
Demo using the video overlay Window as a huge pseudo-sprite for the original Game Boy (DMG/CGB)
- Host: GitHub
- URL: https://github.com/bbbbbr/gb-window-as-sprite
- Owner: bbbbbr
- License: unlicense
- Created: 2019-06-29T01:29:44.000Z (almost 7 years ago)
- Default Branch: release_gbdk2020
- Last Pushed: 2021-06-12T06:13:45.000Z (almost 5 years ago)
- Last Synced: 2025-03-29T04:24:11.411Z (about 1 year ago)
- Topics: game-boy, gameboy, gameboy-game, retro-gaming
- Language: C
- Size: 409 KB
- Stars: 7
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Game Boy Window as a Giant Sprite
===========
The original Game Boy (DMG/CGB/etc) is limited to 8x8 and 8x16 sprites, or a larger meta-sprite composed from up to 40 of those smaller, individually managed sprites. There are some workarounds, but generally this limits the maximum size of sprites to a small size on an already small screen.
As an exercise, this demos using the video overlay Window as a huge pseudo-sprite (with some limitations). The priority feature and transparent pixels of regular sprites are used to create some foreground/background layering.
* Star sprites: S_PRIORITY flag set so they appear behind the Window sprite, except where it's pixels are set to color zero.
* Game Boy sprites: S_PRIORITY flag *not* set so it's above the Window sprite.
* Background layer: All pixels set to color zero.

Built with GBDK-2020 - https://github.com/gbdk-2020/gbdk-2020