mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 15:45:24 +13:00
Consolidate coord macros
This commit is contained in:
parent
0ad1153f16
commit
148d3f3cf2
58 changed files with 528 additions and 539 deletions
|
|
@ -51,15 +51,15 @@ BikeShopText1: ; 1d745 (7:5745)
|
|||
ld [wTopMenuItemX], a
|
||||
ld hl, wd730
|
||||
set 6, [hl]
|
||||
hlCoord 0, 0
|
||||
coord hl, 0, 0
|
||||
ld b, $4
|
||||
ld c, $f
|
||||
call TextBoxBorder
|
||||
call UpdateSprites
|
||||
hlCoord 2, 2
|
||||
coord hl, 2, 2
|
||||
ld de, BikeShopMenuText
|
||||
call PlaceString
|
||||
hlCoord 8, 3
|
||||
coord hl, 8, 3
|
||||
ld de, BikeShopMenuPrice
|
||||
call PlaceString
|
||||
ld hl, BikeShopText_1d815
|
||||
|
|
|
|||
|
|
@ -480,32 +480,32 @@ CeladonGameCornerText_48f19: ; 48f19 (12:4f19)
|
|||
CeladonGameCornerScript_48f1e: ; 48f1e (12:4f1e)
|
||||
ld hl, wd730
|
||||
set 6, [hl]
|
||||
hlCoord 11, 0
|
||||
coord hl, 11, 0
|
||||
ld b, $5
|
||||
ld c, $7
|
||||
call TextBoxBorder
|
||||
call UpdateSprites
|
||||
hlCoord 12, 1
|
||||
coord hl, 12, 1
|
||||
ld b, $4
|
||||
ld c, $7
|
||||
call ClearScreenArea
|
||||
hlCoord 12, 2
|
||||
coord hl, 12, 2
|
||||
ld de, GameCornerMoneyText
|
||||
call PlaceString
|
||||
hlCoord 12, 3
|
||||
coord hl, 12, 3
|
||||
ld de, GameCornerBlankText1
|
||||
call PlaceString
|
||||
hlCoord 12, 3
|
||||
coord hl, 12, 3
|
||||
ld de, wPlayerMoney
|
||||
ld c, $a3
|
||||
call PrintBCDNumber
|
||||
hlCoord 12, 4
|
||||
coord hl, 12, 4
|
||||
ld de, GameCornerCoinText
|
||||
call PlaceString
|
||||
hlCoord 12, 5
|
||||
coord hl, 12, 5
|
||||
ld de, GameCornerBlankText2
|
||||
call PlaceString
|
||||
hlCoord 15, 5
|
||||
coord hl, 15, 5
|
||||
ld de, wPlayerCoins
|
||||
ld c, $82
|
||||
call PrintBCDNumber
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ CeladonMartRoofScript_4840c: ; 4840c (12:440c)
|
|||
dec l
|
||||
ld b, l
|
||||
ld c, $c
|
||||
hlCoord 0, 0
|
||||
coord hl, 0, 0
|
||||
call TextBoxBorder
|
||||
call UpdateSprites
|
||||
call CeladonMartRoofScript_48532
|
||||
|
|
@ -200,7 +200,7 @@ CeladonMartRoofScript_48532: ; 48532 (12:4532)
|
|||
push hl
|
||||
ld [wd11e], a
|
||||
call GetItemName
|
||||
hlCoord 2, 2
|
||||
coord hl, 2, 2
|
||||
ld a, [$ffdb]
|
||||
ld bc, SCREEN_WIDTH * 2
|
||||
call AddNTimes
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ VermilionDock_1db9b: ; 1db9b (7:5b9b)
|
|||
call DelayFrames
|
||||
ld b, $9c
|
||||
call CopyScreenTileBufferToVRAM
|
||||
hlCoord 0, 10
|
||||
coord hl, 0, 10
|
||||
ld bc, $0078
|
||||
ld a, $14
|
||||
call FillMemory
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue