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

Space Invaders GB: Difference between revisions

From GameBrew
(Created page with "{{Infobox GB Homebrews |title=Space Invaders |image=spaceinvaderdemogb.png |description=Demonstrates how to use scan-line interrupt scrolling. |author=Jeff Frohwein |lastupdated=1997/10/26 |type=Samples |version=1.0 |format=DMG-ASM |license=Mixed |download=https://dlhb.gamebrew.org/gbhomebrews/spaceinvaderdemogb.7z |website=http://www.devrs.com/ |source=https://dlhb.gamebrew.org/gbhomebrews/spaceinvaderdemogb.7z |donation= }} {{#seo: |title= (Samples) - GameBrew |title_m...")
 
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 7: Line 7:
|type=Samples
|type=Samples
|version=1.0
|version=1.0
|format=DMG-ASM
|license=Mixed
|license=Mixed
|download=https://dlhb.gamebrew.org/gbhomebrews/spaceinvaderdemogb.7z
|format=DMG (ASM)
|download=https://dlhb.gamebrew.org/gbhomebrews/si.zip
|website=http://www.devrs.com/
|website=http://www.devrs.com/
|source=https://dlhb.gamebrew.org/gbhomebrews/spaceinvaderdemogb.7z
|source=https://dlhb.gamebrew.org/gbhomebrews/si.zip
|donation=
}}
}}
{{#seo:
{{#seo:
|title= (Samples) - GameBrew
|title=GameBrew
|title_mode=append
|title_mode=append
|image=spaceinvaderdemogb.png
|image=spaceinvaderdemogb.png
Line 32: Line 31:


==External links==
==External links==
*Author's website - [http://www.devrs.com/](http://www.devrs.com/)
*Author's website - http://www.devrs.com/

Latest revision as of 12:18, 2 August 2024

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: