diff options
author | dannye <33dannye@gmail.com> | 2021-01-06 22:24:05 -0600 |
---|---|---|
committer | dannye <33dannye@gmail.com> | 2021-01-06 22:24:05 -0600 |
commit | 6370bdeaeea201c215c1c667f06d72218c6da6a7 (patch) | |
tree | 3fb09b74ae3294f685133dfd25cc8567e68e2c30 /src/wram.asm | |
parent | 4b12dbdee2df014892bda9df2554e21d291c4ecf (diff) | |
parent | 0dc8af64aab2658a882f73d34bd7a5cc6563f7a1 (diff) |
Merge branch 'master' of https://github.com/pret/poketcg
Diffstat (limited to 'src/wram.asm')
-rw-r--r-- | src/wram.asm | 95 |
1 files changed, 71 insertions, 24 deletions
diff --git a/src/wram.asm b/src/wram.asm index 109f1d4..c8956d9 100644 --- a/src/wram.asm +++ b/src/wram.asm @@ -574,11 +574,11 @@ wTempSGBPacket:: ; cae0 ; temporary CGB palette data buffer to eventually save into BGPD registers. wBackgroundPalettesCGB:: ; caf0 - ds 8 palettes + ds NUM_BACKGROUND_PALETTES palettes ; temporary CGB palette data buffer to eventually save into OBPD registers. wObjectPalettesCGB:: ; cb30 - ds 8 palettes + ds NUM_OBJECT_PALETTES palettes ds $2 @@ -1206,17 +1206,20 @@ wDefaultYesOrNo:: ; cd9a wcd9b:: ; cd9b ds $1 -wcd9c:: ; cd9c +; stores the total number of coins to flip +wCoinTossTotalNum:: ; cd9c ds $1 ; this stores the result from a coin toss (number of heads) wCoinTossNumHeads:: ; cd9d ds $1 -wcd9e:: ; cd9e +; stores type of the duelist that is tossing coins +wCoinTossDuelistType:: ; cd9e ds $1 -wcd9f:: ; cd9f +; holds the number of coins that have already been tossed +wCoinTossNumTossed:: ; cd9f ds $1 ds $5 @@ -2154,7 +2157,12 @@ wd291:: ; d291 wd292:: ; d292 ds $1 - ds $90 + ds $4 + +wd297:: ; d297 + ds 8 palettes + + ds $4c wd323:: ; d323 ds $1 @@ -2282,7 +2290,8 @@ wd3b1:: ; d3b1 wd3b2:: ; d3b2 ds $1 -wd3b3:: ; d3b3 +; sprite ID of the NPC to load +wNPCSpriteID:: ; d3b3 ds $1 ds $2 @@ -2346,7 +2355,9 @@ wd41f:: ; d41f wd420:: ; d420 ds $1 -wd421:: ; d421 +; store settings for animation enabled/disabled +; 0 means enabled, 1 means disabled +wAnimationsDisabled:: ; d421 ds $1 ; holds an animation to play @@ -2362,7 +2373,7 @@ wAnimationQueue:: ; d423 wd42a:: ; d42a ds $1 -wd42b:: ; d42b +wAnimFlags:: ; d42b ds $1 wd42c:: ; d42c @@ -2374,7 +2385,12 @@ wd4ac:: ; d4ac wd4ad:: ; d4ad ds $1 -wd4ae:: ; d4ae +; used to know what coordinate offsets to use to place animations +; for use in GetAnimCoordsAndFlags +; DUEL_ANIM_SCREEN_MAIN_SCENE = main scene +; DUEL_ANIM_SCREEN_PLAYER_PLAY_AREA = Player's Play Area screen +; DUEL_ANIM_SCREEN_OPP_PLAY_AREA = Opponent's Play Area screen +wDuelAnimationScreen:: ; d4ae ds $1 wd4af:: ; d4af @@ -2392,12 +2408,25 @@ wd4b2:: ; d4b2 wd4b3:: ; d4b3 ds $1 - ds $5 +wd4b4:: ; d4b4 + ds $1 + + ds $2 + +wd4b7:: ; d4b7 + ds $1 + +wd4b8:: ; d4b8 + ds $1 wd4b9:: ; d4b9 + ds $2 + +wd4bb:: ; d4bb ds $1 - ds $4 +wd4bc:: ; d4bc + ds $2 wd4be:: ; d4be ds $1 @@ -2410,11 +2439,9 @@ wd4c0:: ; d4c0 ds $1 -wd4c2:: ; d4c2 - ds $1 - -wd4c3:: ; d4c3 - ds $1 +; pointer to address in VRAM +wVRAMPointer:: ; d4c2 + ds $2 ; these next 3 seem to be an address (bank @ end) for copying bg data wTempPointer:: ; d4c4 @@ -2423,14 +2450,19 @@ wTempPointer:: ; d4c4 wTempPointerBank:: ; d4c6 ds $1 -wd4c7:: ; d4c7 +; stores number of bytes per tile for current sprite +wCurSpriteTileSize:: ; d4c7 ds $1 -wd4c8:: ; d4c8 +; stores number of tiles that current sprite has +wCurSpriteNumTiles:: ; d4c8 ds $1 ds $1 +; stores tile offset in VRAM +wVRAMTileOffset:: ; d4ca + wd4ca:: ; d4ca ds $1 @@ -2486,11 +2518,26 @@ wd5d6:: ; d5d6 wd5d7:: ; d5d7 ds $1 -wd5d8:: ; d5d8 - ds $40 - -; seems to be the amount of entries in wd5d8 -wd618:: ; d618 +wSpriteVRAMBuffer:: ; d5d8 + sprite_vram_struct wSpriteVRAM1 + sprite_vram_struct wSpriteVRAM2 + sprite_vram_struct wSpriteVRAM3 + sprite_vram_struct wSpriteVRAM4 + sprite_vram_struct wSpriteVRAM5 + sprite_vram_struct wSpriteVRAM6 + sprite_vram_struct wSpriteVRAM7 + sprite_vram_struct wSpriteVRAM8 + sprite_vram_struct wSpriteVRAM9 + sprite_vram_struct wSpriteVRAM10 + sprite_vram_struct wSpriteVRAM11 + sprite_vram_struct wSpriteVRAM12 + sprite_vram_struct wSpriteVRAM13 + sprite_vram_struct wSpriteVRAM14 + sprite_vram_struct wSpriteVRAM15 + sprite_vram_struct wSpriteVRAM16 + +; seems to be the amount of entries in wSpriteVRAMBuffer +wSpriteVRAMBufferSize:: ; d618 ds $1 ds $2 |