Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Space Invaders GB

From GameBrew
Revision as of 04:03, 10 September 2023 by HydeWing (talk | contribs)
Space Invaders
Spaceinvaderdemogb.png
General
AuthorJeff Frohwein
TypeSamples
Version1.0
LicenseMixed
SystemDMG (ASM)
Last Updated1997/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

Advertising: