Skip to content

Commit

Permalink
sprites: Update links to GBATEK
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonioND committed Nov 20, 2024
1 parent 6a9c46b commit f76fe95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manuscript/snippets/sprites/1/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ void initSprites(OAMTable *oam, SpriteInfo *spriteInfo) {
* tiles or palettes.
*
* OFFSET_MULTIPLIER is calculated based on the following formula from
* GBATEK (http://nocash.emubase.de/gbatek.htm#dsvideoobjs):
* GBATEK (https://problemkaputt.de/gbatek.htm#dsvideoobjs):
* TileVramAddress = TileNumber * BoundaryValue
* Since SPRITE_GFX is a uint16*, the compiler will increment the address
* it points to by 2 for each change in 1 of the array index into
Expand Down
2 changes: 1 addition & 1 deletion manuscript/sprites.md
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ We'll be using the same memory alignment (boundary) as the GBA uses for our
sprites. Tile VRAM addresses must be aligned to 32 bytes. If you feel shorted
by this, since you can't use all 1024 addressable tiles when using 256 color
tiles, for instance, then you can look up how to use other alignments at
<http://nocash.emubase.de/gbatek.htm#dsvideoobjs>. You'll have to set
<https://problemkaputt.de/gbatek.htm#dsvideoobjs>. You'll have to set
`REG_DISPCNT` (via `videoSetMode()`) with a value defined in
`libnds/include/nds/arm9/video.h` akin to `DISPLAY_SPR_1D_SIZE_XXX` (the
default, and the method the GBA and we use, is `DISPLAY_SPR_1D_SIZE_32`).
Expand Down

0 comments on commit f76fe95

Please sign in to comment.