mirror of https://github.com/pret/pokecrystal.git
maskbits for NUM_FRAMES
This commit is contained in:
parent
163f3e0c3f
commit
2085ebcc61
|
@ -28,6 +28,7 @@ TEXT_DELAY_SLOW EQU 5
|
||||||
const FRAME_6 ; 5
|
const FRAME_6 ; 5
|
||||||
const FRAME_7 ; 6
|
const FRAME_7 ; 6
|
||||||
const FRAME_8 ; 7
|
const FRAME_8 ; 7
|
||||||
|
NUM_FRAMES EQU const_value
|
||||||
|
|
||||||
; TextBoxFlags:
|
; TextBoxFlags:
|
||||||
const_def
|
const_def
|
||||||
|
|
|
@ -172,7 +172,7 @@ _LoadFontsBattleExtra:: ; fb4be
|
||||||
|
|
||||||
LoadFrame: ; fb4cc
|
LoadFrame: ; fb4cc
|
||||||
ld a, [TextBoxFrame]
|
ld a, [TextBoxFrame]
|
||||||
and 7
|
maskbits NUM_FRAMES +- 1
|
||||||
ld bc, 6 * LEN_1BPP_TILE
|
ld bc, 6 * LEN_1BPP_TILE
|
||||||
ld hl, Frames
|
ld hl, Frames
|
||||||
call AddNTimes
|
call AddNTimes
|
||||||
|
|
|
@ -1033,17 +1033,17 @@ Function106464:: ; 106464
|
||||||
|
|
||||||
Function10649b: ; 10649b
|
Function10649b: ; 10649b
|
||||||
ld a, [TextBoxFrame]
|
ld a, [TextBoxFrame]
|
||||||
and $7
|
maskbits NUM_FRAMES +- 1
|
||||||
ld bc, 3 tiles
|
ld bc, 6 * LEN_1BPP_TILE
|
||||||
ld hl, Frames
|
ld hl, Frames
|
||||||
call AddNTimes
|
call AddNTimes
|
||||||
ld d, h
|
ld d, h
|
||||||
ld e, l
|
ld e, l
|
||||||
ld hl, vTiles2 tile $79
|
ld hl, vTiles2 tile "┌" ; $79
|
||||||
ld c, 6
|
ld c, 6 ; "┌" to "┘"
|
||||||
ld b, BANK(Frames)
|
ld b, BANK(Frames)
|
||||||
call Function1064c3
|
call Function1064c3
|
||||||
ld hl, vTiles2 tile $7f
|
ld hl, vTiles2 tile " " ; $7f
|
||||||
ld de, TextBoxSpaceGFX
|
ld de, TextBoxSpaceGFX
|
||||||
ld c, 1
|
ld c, 1
|
||||||
ld b, BANK(TextBoxSpaceGFX)
|
ld b, BANK(TextBoxSpaceGFX)
|
||||||
|
|
Loading…
Reference in New Issue