mirror of
https://github.com/pret/poketcg.git
synced 2026-03-21 17:54:26 -05:00
Merge pull request #167 from Sha0den/master
Some checks failed
CI / build (push) Has been cancelled
Some checks failed
CI / build (push) Has been cancelled
Create text speed constants
This commit is contained in:
commit
d874acda62
|
|
@ -70,3 +70,10 @@ DEF NUM_CARDS_PROMOTIONAL EQU 20
|
|||
const START_MENU_CONTINUE_DUEL ; 3
|
||||
|
||||
DEF NUM_MAILS EQU 15
|
||||
|
||||
; TextDelaySettings constants
|
||||
DEF TEXT_SPEED_1 EQU 6
|
||||
DEF TEXT_SPEED_2 EQU 4
|
||||
DEF TEXT_SPEED_3 EQU 2
|
||||
DEF TEXT_SPEED_4 EQU 1
|
||||
DEF TEXT_SPEED_5 EQU 0
|
||||
|
|
|
|||
|
|
@ -147,7 +147,7 @@ DuelAnimationSettings:
|
|||
; text printing delay
|
||||
TextDelaySettings:
|
||||
; slow to fast
|
||||
db 6, 4, 2, 1, 0
|
||||
db TEXT_SPEED_1, TEXT_SPEED_2, TEXT_SPEED_3, TEXT_SPEED_4, TEXT_SPEED_5
|
||||
|
||||
UpdateConfigMenuCursor:
|
||||
push af
|
||||
|
|
|
|||
|
|
@ -116,7 +116,7 @@ InitSaveData:
|
|||
; saved configuration options
|
||||
ld a, 2
|
||||
ld [sPrinterContrastLevel], a
|
||||
ld a, $2
|
||||
ld a, TEXT_SPEED_3
|
||||
ld [sTextSpeed], a
|
||||
ld [wTextSpeed], a
|
||||
|
||||
|
|
|
|||
|
|
@ -135,9 +135,9 @@ PrintScrollableText::
|
|||
jr .go
|
||||
.nonzero_text_speed
|
||||
ld a, [wTextSpeed]
|
||||
cp 2
|
||||
cp TEXT_SPEED_3
|
||||
jr nc, .apply_delay
|
||||
; if text speed is 1, pressing b ignores it
|
||||
; if TEXT_SPEED_4, pressing B ignores the delay
|
||||
ldh a, [hKeysHeld]
|
||||
and PAD_B
|
||||
jr nz, .skip_delay
|
||||
|
|
@ -455,9 +455,9 @@ PrintText::
|
|||
ld b, a
|
||||
ld a, [wTextSpeed]
|
||||
inc a
|
||||
cp 3
|
||||
cp TEXT_SPEED_3 + 1
|
||||
jr nc, .apply_delay
|
||||
; if text speed is 1, pressing b ignores it
|
||||
; if TEXT_SPEED_4, pressing B ignores the delay
|
||||
bit B_PAD_B, b
|
||||
jr nz, .skip_delay
|
||||
jr .apply_delay
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user