blob: db5ec54284c2989c575e06e0293892b010d674bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
; 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)
scrolling_text_normal: MACRO
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)
scrolling_text: MACRO
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.
scrolling_text_nopause: MACRO
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.
stationary_text: MACRO
db \1 + $40
db \2 * $10
dw \3
ENDM
|