mirror of
https://github.com/pret/pokepinball.git
synced 2026-04-25 07:19:49 -05:00
43 lines
1.2 KiB
NASM
43 lines
1.2 KiB
NASM
; 6-byte header for scrolling text in the bottom message box. See LoadScrollingText, and wScrollingText1 for documentation.
|
|
|
|
; \1: Pause offset (number of tiles from the left of the screen)
|
|
; \2: Number of steps to pause
|
|
; \3: Text index the bottom text buffer (wBottomMessageText)
|
|
; \4: Number of steps after the Pause (text disappears after these number of steps)
|
|
MACRO scrolling_text_normal
|
|
scrolling_text 5, 20, \1, \2, \3, \4
|
|
ENDM
|
|
|
|
; \1: Step delay (in frames)
|
|
; \2: Starting offset (number of tiles from the left of the screen)
|
|
; \3: Pause offset (stops scrolling in the middle of the screen)
|
|
; \4: Number of steps to pause
|
|
; \5: Text index the bottom text buffer (wBottomMessageText)
|
|
; \6: Number of steps after the Pause (text disappears after these number of steps)
|
|
MACRO scrolling_text
|
|
db \1
|
|
db \2 + $40
|
|
db \3 + $40
|
|
db \4
|
|
db \5 * $10
|
|
db \6 + \4 + (\2 - \3)
|
|
ENDM
|
|
|
|
; \1: Step delay (in frames)
|
|
; \2: Total number of steps before disappearing.
|
|
MACRO scrolling_text_nopause
|
|
db \1
|
|
db 20 + $40
|
|
db 0, 0, 0
|
|
db \2
|
|
ENDM
|
|
|
|
; \1: Offset (number of tiles from the left of the screen)
|
|
; \2: Raw text index the bottom text buffer (wBottomMessageText)
|
|
; \3: Number of frames to display the text.
|
|
MACRO stationary_text
|
|
db \1 + $40
|
|
db \2 * $10
|
|
dw \3
|
|
ENDM
|