mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-22 15:12:18 +13:00
Use more *Coord
also town map code relabelling YamaArashi just did town map relabelling but oh well I aleady made the changes and don't feel like redoing it
This commit is contained in:
parent
822bb2bd21
commit
b509b48a7f
32 changed files with 182 additions and 179 deletions
|
|
@ -1420,10 +1420,10 @@ LoadCurrentMapView:: ; 0caa (0:0caa)
|
|||
ld bc,$0002
|
||||
add hl,bc
|
||||
.copyToVisibleAreaBuffer
|
||||
ld de,wTileMap ; base address for the tiles that are directly transfered to VRAM during V-blank
|
||||
ld b,$12
|
||||
deCoord 0, 0 ; base address for the tiles that are directly transfered to VRAM during V-blank
|
||||
ld b, SCREEN_HEIGHT
|
||||
.rowLoop2
|
||||
ld c,$14
|
||||
ld c, SCREEN_WIDTH
|
||||
.rowInnerLoop2
|
||||
ld a,[hli]
|
||||
ld [de],a
|
||||
|
|
@ -2323,7 +2323,7 @@ LoadMapData:: ; 1241 (0:1241)
|
|||
call LoadTilesetTilePatternData
|
||||
call LoadCurrentMapView
|
||||
; copy current map view to VRAM
|
||||
ld hl,wTileMap
|
||||
hlCoord 0, 0
|
||||
ld de,vBGMap0
|
||||
ld b,18
|
||||
.vramCopyLoop
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue