shithub: pokered

Download patch

ref: 795decd080dceed76c99bc16f044d50a696992be
parent: 93e1316e3db579cdbe95c86af09a97a9d7508308
author: yenatch <yenatch@gmail.com>
date: Tue Jan 21 14:15:48 EST 2014

Add text macros

Before text looked like:

_CeladonCityText2: ; a5a4b (29:5a4b)
	db $0, "Heheh! This GYM", $4f
	db "is great! It's", $55
	db "full of women!", $57

Now it looks like:

_CeladonCityText2: ; a5a4b (29:5a4b)
	text "Heheh! This GYM"
	line "is great! It's"
	next "full of women!"
	done

--- a/macros.asm
+++ b/macros.asm
@@ -1,4 +1,12 @@
 
+text   EQUS "db $00," ; Start writing text.
+line   EQUS "db $4f," ; Start writing at the bottom line.
+page   EQUS "db $51," ; Start a new page.
+next   EQUS "db $55," ; Scroll to the next line.
+done   EQUS "db $57"  ; End a text box.
+prompt EQUS "db $58"  ; Prompt the player to end a text box (initiating some other event).
+
+
 ;\1 = X
 ;\2 = Y
 FuncCoord: MACRO