Basic Tempalte for GBA Test ROMS I write
Go to file
Rekai Nyangadzayi Musuka 4db52642bf chore: update README.md 2022-09-09 10:28:35 -03:00
assets/generic feat: implement vertical sprites 2022-05-13 11:28:05 -03:00
lib chore: update ZigGBA 2022-06-22 05:57:12 -03:00
src/sprite2d feat: implement selection between 4bpp and 8bpp sprites 2022-06-22 19:20:01 -03:00
.gitignore feat: disable unused sprites 2022-06-22 08:15:14 -03:00
.gitmodules chore: add build run command 2022-04-22 12:12:55 -03:00
README.md chore: update README.md 2022-09-09 10:28:35 -03:00
build.zig feat: disable unused sprites 2022-06-22 08:15:14 -03:00

README.md

An Almost-empty GBA Test Collection

NOTE: This only builds on stage1 due to unimplemented language features that ZigGBA relies on.

2d_sprites.gba

At some point during my initial PPU Implementation, I had problems with 2D-mapped vertical sprites. This is a ROM based on TONC's sprite_demo.gba That displays every kind of 2D-mapped sprite.

This ROM will display:

  • 4BPP
    • Square: 8x8, 16x16, 32x32, 64x64
    • Horizontal: 16x8, 32x8, 32x16, 64x32
    • Vertical: 8x16, 8x32, 16x32, 32x64
  • 8BPP
    • Square: 8x8, 16x16, 32x32, 64x64
    • Horizontal: 16x8, 32x8, 32x16, 64x32
    • Vertical: 8x16, 8x32, 16x32, 32x64

Keep in mind that all displayed sprites are 2D-mapped.

TODO: Do the same but for 1D mapped sprites.
TODO: Figure out how to communicate current configurations to the user.

Controls

Button Action
Start Toggle Between 8bpp and 4bpp
L, R Change the Size of the Sprite (Dimentions within the context of a Shape)
A, B Change the Shape of the Sprite (Square, Horizontal, Vertical)
D-Pad Move Sprite