2022-09-09 13:27:17 +00:00
|
|
|
# An Almost-empty GBA Test Collection
|
|
|
|
NOTE: This only builds on stage1 due to unimplemented language features that ZigGBA relies on.
|
2022-05-13 14:28:05 +00:00
|
|
|
|
|
|
|
### `2d_sprites.gba`
|
2022-09-09 13:27:17 +00:00
|
|
|
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. <br />
|
|
|
|
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
|