More actions
Space Invaders | |
---|---|
General | |
Author | Jeff Frohwein |
Type | Samples |
Version | 1.0 |
License | Mixed |
System | DMG (ASM) |
Last Updated | 1997/10/26 |
Links | |
Download | |
Website | |
Source | |
This is a programming demo showcases how to implement games with more than 40 moving objects on the Game Boy, which typically supports only 40 sprites on screen simultaneously.
Using Space Invaders as an example, a quick assembly suggested that they use separate tiles for each invader to achieve smooth movement. However, this approach consumes significant ROM and valuable tiles. An alternative method involves dynamic tiles, but it still requires considerable ROM.
The demo code introduces another method for smooth scrolling by modifying the Background X scroll register on a line-by-line basis, based on the LYC scan interrupt. It interrupts at every scan line allowing the scroll register to be modified.
Note: This is currently not a working game. It only demonstrates a scrolling method.
Compatibility
The demo ROM code will work on the real Game Boy, VGB 1.0 or later, and possibly other emulators. It does not work on VGB 0.71 and possibly others.
External links
- Author's website - http://www.devrs.com/