mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 15:45:24 +13:00
Use more screen dimension constants
This commit is contained in:
parent
e25a7148d0
commit
ef9e59101e
18 changed files with 88 additions and 85 deletions
|
|
@ -103,7 +103,7 @@ Func_610c2: ; 610c2 (18:50c2)
|
|||
call GetItemName
|
||||
hlCoord 2, 2
|
||||
ld a, [$ffdb]
|
||||
ld bc, $28
|
||||
ld bc, SCREEN_WIDTH * 2
|
||||
call AddNTimes
|
||||
ld de, wcd6d
|
||||
call PlaceString
|
||||
|
|
|
|||
|
|
@ -690,8 +690,8 @@ getTileSpriteStandsOn: ; 5207 (1:5207)
|
|||
ld a, [hl] ; c1x6: screen Y position
|
||||
srl a
|
||||
srl a
|
||||
srl a ; screen X tile
|
||||
add $14 ; screen X tile + 20
|
||||
srl a ; screen X tile
|
||||
add SCREEN_WIDTH ; screen X tile + 20
|
||||
ld d, $0
|
||||
ld e, a
|
||||
hlCoord 0, 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue