Card Flip

This commit is contained in:
PikalaxALT 2015-12-11 16:59:40 -05:00
parent b65fe57db6
commit ecd277204a
22 changed files with 653 additions and 600 deletions

View File

@ -241,7 +241,7 @@ Functioncc220: ; cc220
ld [hBGMapAddress], a
ld a, (VBGMap0 tile $28) / $100
ld [hBGMapAddress + 1], a
call Function3200
call WaitBGMap2
ld a, $60
ld [hWY], a
xor a

View File

@ -8934,7 +8934,7 @@ DisplayLinkRecord: ; 3f836
xor a
ld bc, SCREEN_WIDTH * SCREEN_HEIGHT
call ByteFill
call Function3200
call WaitBGMap2
ld b, SCGB_08
call GetSGBLayout
call SetPalettes

File diff suppressed because it is too large Load Diff

View File

@ -556,13 +556,13 @@ Function109a95: ; 109a95 (42:5a95)
ld bc, $14
ld a, $1
call ByteFill
call Function3200
call WaitBGMap2
xor a
ld [hBGMapMode], a
ld [hBGMapAddress], a
hlcoord 0, 0
call Function109aff
call Function3200
call WaitBGMap2
ret
Function109aff: ; 109aff (42:5aff)

View File

@ -1149,7 +1149,7 @@ TilesetColorTest:
ld [hMapAnims], a
call ClearSprites
call OverworldTextModeSwitch
call Function3200
call WaitBGMap2
xor a
ld [hBGMapMode], a
ld de, DebugColorTestGFX + $10
@ -1184,7 +1184,7 @@ TilesetColorTest:
call Function821d2
call Function821f4
call Function8220f
call Function3200
call WaitBGMap2
ld [wJumptableIndex], a
ld a, $40
ld [hWY], a

View File

@ -1036,7 +1036,7 @@ StartTitleScreen: ; 6219
ld hl, rLCDC
res 2, [hl]
call ClearScreen
call Function3200
call WaitBGMap2
xor a
ld [hLCDStatCustom], a
ld [hSCX], a

View File

@ -15,7 +15,7 @@ LinkCommunications: ; 28000
call LoadStandardFont
call LoadFontsBattleExtra
callba Function16d69a
call Function3200
call WaitBGMap2
hlcoord 3, 8
ld b, $2
ld c, $c
@ -26,7 +26,7 @@ LinkCommunications: ; 28000
ld de, String28419
call PlaceString
call Function28eff
call Function3200
call WaitBGMap2
ld hl, wcf5d
xor a
ld [hli], a
@ -497,7 +497,7 @@ Function283b2: ; 283b2
call ClearScreen
ld b, SCGB_08
call GetSGBLayout
call Function3200
call WaitBGMap2
ret
; 283ed
@ -1311,7 +1311,7 @@ Function2888b: ; 2888b
ld [wcfa5], a
xor a
ld [wcfa6], a
call Function3200
call WaitBGMap2
Function288c5: ; 288c5
callba Function16d70c
@ -1602,7 +1602,7 @@ Function28b22: ; 28b22
call ClearScreen
ld b, SCGB_08
call GetSGBLayout
call Function3200
call WaitBGMap2
xor a
ld [wcfbb], a
xor a
@ -1721,7 +1721,7 @@ Function28b87: ; 28b87
call Function1bd3
push af
call Call_ExitMenu
call Function3200
call WaitBGMap2
pop af
bit 1, a
jr nz, .asm_28c33

View File

@ -388,7 +388,7 @@ Function49f16: ; 49f16
ld de, String_0x49fe9
hlcoord 1, 14
call PlaceString
call Function3200
call WaitBGMap2
call SetPalettes
call Function1bc9
ld hl, MenuSelection2
@ -1071,7 +1071,7 @@ Function4a4c4: ; 4a4c4 (12:64c4)
ld e, l
hlcoord 1, 16
call PlaceString
call Function3200
call WaitBGMap2
call SetPalettes
call Function1bc9
ld hl, MenuSelection2

View File

@ -379,7 +379,7 @@ Functionfb8c8: ; fb8c8
call LoadFontsExtra
call LoadStandardFont
callba Pokedex_PlaceFrontpicTopLeftCorner
call Function3200
call WaitBGMap2
callba GetEnemyMonDVs
ld a, [hli]
ld [TempMonDVs], a

View File

@ -31,7 +31,7 @@ _TownMap: ; 9191c
xor a
ld [hBGMapMode], a
call Function91a04
call Function3200
call WaitBGMap2
ld a, [wd002]
call Function9106a
ld a, [wd003]

View File

@ -150,7 +150,7 @@ endr
ld bc, AttrMap - TileMap
add hl, bc
call Function8aee9
call Function3200
call WaitBGMap2
call JoyWaitAorB
call PlayClickSFX
call WriteBackup

View File

@ -35,7 +35,7 @@ Script_Whiteout: ; 0x124ce
OverworldBGMap: ; 124fa
call ClearPalettes
call ClearScreen
call Function3200
call WaitBGMap2
call HideSprites
call RotateThreePalettesLeft
ret

View File

@ -542,7 +542,7 @@ WaitBGMap:: ; 31f6
ret
; 3200
Function3200:: ; 0x3200
WaitBGMap2:: ; 0x3200
ld a, [hCGB]
and a
jr z, .bg0

View File

@ -2033,7 +2033,7 @@ Function2b5c:: ; 2b5c
ld b, SCGB_09
call GetSGBLayout
callba Function49409
call Function3200
call WaitBGMap2
callba FadeInPalettes
call EnableSpriteUpdates
ret
@ -2053,7 +2053,7 @@ Function2b74:: ; 0x2b74
ld hl, VramState
set 0, [hl]
call UpdateSprites
call Function3200
call WaitBGMap2
ld b, SCGB_09
call GetSGBLayout
callba Function49409

View File

@ -220,6 +220,7 @@ endc
endm
depixel EQUS "ldpixel de,"
bcpixel EQUS "ldpixel bc,"
dbpixel: MACRO
if _NARG >= 4

View File

@ -769,7 +769,7 @@ Function8000: ; 8000
ld bc, AttrMapEnd - AttrMap
ld a, $7
call ByteFill
call Function3200
call WaitBGMap2
call SetPalettes
ret
; 8029
@ -7647,7 +7647,7 @@ ClearPCItemScreen: ; e58b
hlcoord 0,12
lb bc, 4, 18
call TextBox
call Function3200
call WaitBGMap2
call SetPalettes ; load regular palettes?
ret
; 0xe5bb
@ -13483,13 +13483,13 @@ InitGender: ; 48dcb (12:4dcb)
call Function48e14
call Function48e47
call Function48e64
call Function3200
call WaitBGMap2
call SetPalettes
ld hl, TextJump_AreYouABoyOrAreYouAGirl
call PrintText
ld hl, .MenuDataHeader
call LoadMenuDataHeader
call Function3200
call WaitBGMap2
call InterpretMenu2
call WriteBackup
ld a, [MenuSelection2]
@ -14814,13 +14814,13 @@ Function4d319: ; 4d319
callba Function4d354
callba Function16d673
callba Function28eff
call Function3200
call WaitBGMap2
ret
; 4d354
Function4d354: ; 4d354
call WaitBGMap
call Function3200
call WaitBGMap2
ret
; 4d35b
@ -16110,7 +16110,7 @@ Function4e881: ; 4e881
call EnableLCD
ld hl, .SavingRecordDontTurnOff
call PrintText
call Function3200
call WaitBGMap2
call SetPalettes
ret
; 4e8bd
@ -16150,7 +16150,7 @@ Function4e8c2: ; 4e8c2
ld [hSCY], a
ld [hSCX], a
call EnableLCD
call Function3200
call WaitBGMap2
call SetPalettes
ret
; 4e906
@ -20305,7 +20305,7 @@ Function1de247: ; 1de247
ld b, SCREEN_HEIGHT
hlcoord 19, 0, AttrMap
call Bank77_FillColumn
call Function3200
call WaitBGMap2
pop hl
ld a, l
ld [hBGMapAddress], a

View File

@ -112,7 +112,7 @@ InitMobileProfile: ; 4802f (12:402f)
ld de, String_48275
call PlaceString
call Function48187
call Function3200
call WaitBGMap2
call SetPalettes
call Function1bc9
ld hl, MenuSelection2

View File

@ -825,7 +825,7 @@ UnknownText_0x4ad51: ; 0x4ad51
Function4ad56: ; 4ad56
callba OpenPartyStats
call Function3200
call WaitBGMap2
ret
; 4ad60

View File

@ -1308,7 +1308,7 @@ Function89844: ; 89844
call Function894bb
call Function897af
push bc
call Function3200
call WaitBGMap2
call SetPalettes
pop bc
ret

View File

@ -1295,7 +1295,7 @@ Function118936:
ld a, $40
or [hl]
ld [hl], a
call Function3200
call WaitBGMap2
ld a, $1
ld [wcd4f], a
ld a, $1

View File

@ -1038,7 +1038,7 @@ Function16d6ce: ; 16d6ce
call Function16d6e1
callba Function87d
call Call_ExitMenu
call Function3200
call WaitBGMap2
ret
; 16d6e1
@ -1051,7 +1051,7 @@ Function16d6e1: ; 16d6e1
ld de, .Waiting
call PlaceString
call WaitBGMap
call Function3200
call WaitBGMap2
ld c, $32
jp DelayFrames
; 16d701

View File

@ -815,6 +815,9 @@ wDeck:: ds 24
wDeckEnd::
; c6e8
wCardFlipNumCardsPlayed:: ds 1
wCardFlipFaceUpCard:: ds 1
wDiscardPile:: ds 24
wDiscardPileEnd::
wCardFlipEnd::
ds wCardFlip - @
@ -1435,15 +1438,18 @@ wNrOfBeatenBattleTowerTrainers::
wMomBankDigitCursorPosition::
wIntroSceneFrameCounter::
wHoldingUnownPuzzlePiece::
wCardFlipCursorY::
wcf64:: ds 1
IF !DEF(CRYSTAL11)
wPokedexStatus::
ENDC
wTitleScreenTimerLo::
wUnownPuzzleCursorPosition::
wCardFlipCursorX::
wcf65:: ds 1
wTitleScreenTimerHi::
wUnownPuzzleHeldPiece::
wCardFlipWhichCard::
wcf66:: ds 1
Requested2bpp:: ; cf67