Sync coordinate macros with pokecrystal

This commit is contained in:
Rangi 2020-07-07 11:30:10 -04:00
parent 45ed05decf
commit 13129459f1
75 changed files with 675 additions and 661 deletions

View file

@ -49,15 +49,15 @@ BikeShopText1:
ld [wTopMenuItemX], a
ld hl, wd730
set 6, [hl]
coord hl, 0, 0
hlcoord 0, 0
ld b, $4
ld c, $f
call TextBoxBorder
call UpdateSprites
coord hl, 2, 2
hlcoord 2, 2
ld de, BikeShopMenuText
call PlaceString
coord hl, 8, 3
hlcoord 8, 3
ld de, BikeShopMenuPrice
call PlaceString
ld hl, BikeShopText_1d815

View file

@ -64,7 +64,7 @@ CeladonMartRoofScript_GiveDrinkToGirl:
dec l
ld b, l
ld c, 12
coord hl, 0, 0
hlcoord 0, 0
call TextBoxBorder
call UpdateSprites
call CeladonMartRoofScript_PrintDrinksInBag
@ -194,7 +194,7 @@ CeladonMartRoofScript_PrintDrinksInBag:
push hl
ld [wd11e], a
call GetItemName
coord hl, 2, 2
hlcoord 2, 2
ldh a, [hItemCounter]
ld bc, SCREEN_WIDTH * 2
call AddNTimes

View file

@ -474,32 +474,32 @@ CeladonGameCornerText_48f19:
CeladonGameCornerScript_48f1e:
ld hl, wd730
set 6, [hl]
coord hl, 11, 0
hlcoord 11, 0
ld b, $5
ld c, $7
call TextBoxBorder
call UpdateSprites
coord hl, 12, 1
hlcoord 12, 1
ld b, 4
ld c, 7
call ClearScreenArea
coord hl, 12, 2
hlcoord 12, 2
ld de, GameCornerMoneyText
call PlaceString
coord hl, 12, 3
hlcoord 12, 3
ld de, GameCornerBlankText1
call PlaceString
coord hl, 12, 3
hlcoord 12, 3
ld de, wPlayerMoney
ld c, $a3
call PrintBCDNumber
coord hl, 12, 4
hlcoord 12, 4
ld de, GameCornerCoinText
call PlaceString
coord hl, 12, 5
hlcoord 12, 5
ld de, GameCornerBlankText2
call PlaceString
coord hl, 15, 5
hlcoord 15, 5
ld de, wPlayerCoins
ld c, $82
call PrintBCDNumber

View file

@ -52,7 +52,7 @@ VermilionDock_1db9b:
call DelayFrames
ld b, $9c
call CopyScreenTileBufferToVRAM
coord hl, 0, 10
hlcoord 0, 10
ld bc, SCREEN_WIDTH * 6
ld a, $14 ; water tile
call FillMemory
@ -184,7 +184,7 @@ VermilionDock_EraseSSAnne:
ld bc, (5 * BG_MAP_WIDTH) + SCREEN_WIDTH
ld a, $14 ; water tile
call FillMemory
ld hl, vBGMap0 + 10 * BG_MAP_WIDTH
hlbgcoord 0, 10
ld de, wVermilionDockTileMapBuffer
ld bc, (6 * BG_MAP_WIDTH) / 16
call CopyVideoData
@ -194,7 +194,7 @@ VermilionDock_EraseSSAnne:
; the blocks is unnecessary because the blocks the ship occupies are south of
; the player and won't be redrawn when the player automatically walks north and
; exits the map. This code could be removed without affecting anything.
overworldMapCoord hl, 5, 2, VERMILION_DOCK_WIDTH
hlowcoord 5, 2, VERMILION_DOCK_WIDTH
ld a, $d ; water block
ld [hli], a
ld [hli], a