aboutsummaryrefslogtreecommitdiffstats
path: root/engine/events/diploma.asm
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-08-31 10:23:19 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2020-08-31 10:23:19 -0400
commitbfd9f617c96af851ad4100b752ea967ef8989edc (patch)
tree078f667a596ee500839f21081c2371ade0ec7950 /engine/events/diploma.asm
parentFactor out data/tilesets/pair_collision_tile_ids.asm (diff)
downloadpokeyellow-bfd9f617c96af851ad4100b752ea967ef8989edc.tar.gz
pokeyellow-bfd9f617c96af851ad4100b752ea967ef8989edc.tar.xz
pokeyellow-bfd9f617c96af851ad4100b752ea967ef8989edc.zip
Use constants to delineate map types, and factor out more data
Diffstat (limited to 'engine/events/diploma.asm')
-rwxr-xr-xengine/events/diploma.asm21
1 files changed, 11 insertions, 10 deletions
diff --git a/engine/events/diploma.asm b/engine/events/diploma.asm
index c282b49b..91541f09 100755
--- a/engine/events/diploma.asm
+++ b/engine/events/diploma.asm
@@ -83,17 +83,18 @@ UnusedPlayerNameLengthFunc:
dec c
jr .loop
+diploma_text: MACRO
+ dw \3
+ dwcoord \1, \2
+ENDM
+
DiplomaTextPointersAndCoords:
- dw DiplomaText
- dwcoord 5, 2
- dw DiplomaPlayer
- dwcoord 3, 4
- dw DiplomaEmptyText
- dwcoord 15, 4
- dw DiplomaCongrats
- dwcoord 2, 6
- dw DiplomaGameFreak
- dwcoord 9, 16
+ ; x, y, text
+ diploma_text 5, 2, DiplomaText
+ diploma_text 3, 4, DiplomaPlayer
+ diploma_text 15, 4, DiplomaEmptyText
+ diploma_text 2, 6, DiplomaCongrats
+ diploma_text 9, 16, DiplomaGameFreak
DiplomaText:
db CIRCLE_TILE_ID, "Diploma", CIRCLE_TILE_ID, "@"