mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-09-17 02:40:50 +12:00
sync tileset WRAM labels
This commit is contained in:
parent
2b2c6fefd3
commit
bcb251261d
|
@ -900,16 +900,16 @@ CableClub_Run:
|
||||||
call CableClub_DoBattleOrTrade
|
call CableClub_DoBattleOrTrade
|
||||||
ld hl, Club_GFX
|
ld hl, Club_GFX
|
||||||
ld a, h
|
ld a, h
|
||||||
ld [wTileSetGFXPtr + 1], a
|
ld [wTilesetGfxPtr + 1], a
|
||||||
ld a, l
|
ld a, l
|
||||||
ld [wTileSetGFXPtr], a
|
ld [wTilesetGfxPtr], a
|
||||||
ld a, Bank(Club_GFX)
|
ld a, Bank(Club_GFX)
|
||||||
ld [wTileSetBank], a
|
ld [wTilesetBank], a
|
||||||
ld hl, Club_Coll
|
ld hl, Club_Coll
|
||||||
ld a, h
|
ld a, h
|
||||||
ld [wTileSetCollisionPtr + 1], a
|
ld [wTilesetCollisionPtr + 1], a
|
||||||
ld a, l
|
ld a, l
|
||||||
ld [wTileSetCollisionPtr], a
|
ld [wTilesetCollisionPtr], a
|
||||||
xor a
|
xor a
|
||||||
ld [wGrassRate], a
|
ld [wGrassRate], a
|
||||||
inc a ; LINK_STATE_IN_CABLE_CLUB
|
inc a ; LINK_STATE_IN_CABLE_CLUB
|
||||||
|
|
|
@ -695,7 +695,7 @@ ItemUseSurfboard:
|
||||||
ld hl,TilePairCollisionsWater
|
ld hl,TilePairCollisionsWater
|
||||||
call CheckForTilePairCollisions
|
call CheckForTilePairCollisions
|
||||||
jr c,.cannotStopSurfing
|
jr c,.cannotStopSurfing
|
||||||
ld hl,wTileSetCollisionPtr ; pointer to list of passable tiles
|
ld hl,wTilesetCollisionPtr ; pointer to list of passable tiles
|
||||||
ld a,[hli]
|
ld a,[hli]
|
||||||
ld h,[hl]
|
ld h,[hl]
|
||||||
ld l,a ; hl now points to passable tiles
|
ld l,a ; hl now points to passable tiles
|
||||||
|
|
|
@ -589,9 +589,9 @@ CanWalkOntoTile:
|
||||||
and a
|
and a
|
||||||
ret
|
ret
|
||||||
.notScripted
|
.notScripted
|
||||||
ld a, [wTileSetCollisionPtr]
|
ld a, [wTilesetCollisionPtr]
|
||||||
ld l, a
|
ld l, a
|
||||||
ld a, [wTileSetCollisionPtr+1]
|
ld a, [wTilesetCollisionPtr+1]
|
||||||
ld h, a
|
ld h, a
|
||||||
.tilePassableLoop
|
.tilePassableLoop
|
||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
|
|
|
@ -854,13 +854,13 @@ INCLUDE "data/bike_riding_tilesets.asm"
|
||||||
|
|
||||||
; load the tile pattern data of the current tileset into VRAM
|
; load the tile pattern data of the current tileset into VRAM
|
||||||
LoadTilesetTilePatternData::
|
LoadTilesetTilePatternData::
|
||||||
ld a,[wTileSetGFXPtr]
|
ld a,[wTilesetGfxPtr]
|
||||||
ld l,a
|
ld l,a
|
||||||
ld a,[wTileSetGFXPtr + 1]
|
ld a,[wTilesetGfxPtr + 1]
|
||||||
ld h,a
|
ld h,a
|
||||||
ld de,vTileset
|
ld de,vTileset
|
||||||
ld bc,$600
|
ld bc,$600
|
||||||
ld a,[wTileSetBank]
|
ld a,[wTilesetBank]
|
||||||
jp FarCopyData2
|
jp FarCopyData2
|
||||||
|
|
||||||
; this loads the current maps complete tile map (which references blocks, not individual tiles) to C6E8
|
; this loads the current maps complete tile map (which references blocks, not individual tiles) to C6E8
|
||||||
|
@ -1100,7 +1100,7 @@ IsSpriteOrSignInFrontOfPlayer::
|
||||||
; check if the player is front of a counter in a pokemon center, pokemart, etc. and if so, extend the range at which he can talk to the NPC
|
; check if the player is front of a counter in a pokemon center, pokemart, etc. and if so, extend the range at which he can talk to the NPC
|
||||||
.extendRangeOverCounter
|
.extendRangeOverCounter
|
||||||
predef GetTileAndCoordsInFrontOfPlayer ; get the tile in front of the player in c
|
predef GetTileAndCoordsInFrontOfPlayer ; get the tile in front of the player in c
|
||||||
ld hl,wTileSetTalkingOverTiles ; list of tiles that extend talking range (counter tiles)
|
ld hl,wTilesetTalkingOverTiles ; list of tiles that extend talking range (counter tiles)
|
||||||
ld b,3
|
ld b,3
|
||||||
ld d,$20 ; talking range in pixels (long range)
|
ld d,$20 ; talking range in pixels (long range)
|
||||||
.counterTilesLoop
|
.counterTilesLoop
|
||||||
|
@ -1242,7 +1242,7 @@ CheckTilePassable::
|
||||||
predef GetTileAndCoordsInFrontOfPlayer ; get tile in front of player
|
predef GetTileAndCoordsInFrontOfPlayer ; get tile in front of player
|
||||||
ld a,[wTileInFrontOfPlayer] ; tile in front of player
|
ld a,[wTileInFrontOfPlayer] ; tile in front of player
|
||||||
ld c,a
|
ld c,a
|
||||||
ld hl,wTileSetCollisionPtr ; pointer to list of passable tiles
|
ld hl,wTilesetCollisionPtr ; pointer to list of passable tiles
|
||||||
ld a,[hli]
|
ld a,[hli]
|
||||||
ld h,[hl]
|
ld h,[hl]
|
||||||
ld l,a ; hl now points to passable tiles
|
ld l,a ; hl now points to passable tiles
|
||||||
|
@ -1354,7 +1354,7 @@ TilePairCollisionsWater::
|
||||||
LoadCurrentMapView::
|
LoadCurrentMapView::
|
||||||
ld a,[H_LOADEDROMBANK]
|
ld a,[H_LOADEDROMBANK]
|
||||||
push af
|
push af
|
||||||
ld a,[wTileSetBank] ; tile data ROM bank
|
ld a,[wTilesetBank] ; tile data ROM bank
|
||||||
ld [H_LOADEDROMBANK],a
|
ld [H_LOADEDROMBANK],a
|
||||||
ld [MBC1RomBank],a ; switch to ROM bank that contains tile data
|
ld [MBC1RomBank],a ; switch to ROM bank that contains tile data
|
||||||
ld a,[wCurrentTileBlockMapViewPointer] ; address of upper left corner of current map view
|
ld a,[wCurrentTileBlockMapViewPointer] ; address of upper left corner of current map view
|
||||||
|
@ -1784,9 +1784,9 @@ ScheduleWestColumnRedraw::
|
||||||
; Input: c = tile block ID, hl = destination address
|
; Input: c = tile block ID, hl = destination address
|
||||||
DrawTileBlock::
|
DrawTileBlock::
|
||||||
push hl
|
push hl
|
||||||
ld a,[wTileSetBlocksPtr] ; pointer to tiles
|
ld a,[wTilesetBlocksPtr] ; pointer to tiles
|
||||||
ld l,a
|
ld l,a
|
||||||
ld a,[wTileSetBlocksPtr + 1]
|
ld a,[wTilesetBlocksPtr + 1]
|
||||||
ld h,a
|
ld h,a
|
||||||
ld a,c
|
ld a,c
|
||||||
swap a
|
swap a
|
||||||
|
@ -1915,7 +1915,7 @@ CollisionCheckOnWater::
|
||||||
jr z,.noCollision ; keep surfing
|
jr z,.noCollision ; keep surfing
|
||||||
; check if the [land] tile in front of the player is passable
|
; check if the [land] tile in front of the player is passable
|
||||||
.checkIfNextTileIsPassable
|
.checkIfNextTileIsPassable
|
||||||
ld hl,wTileSetCollisionPtr ; pointer to list of passable tiles
|
ld hl,wTilesetCollisionPtr ; pointer to list of passable tiles
|
||||||
ld a,[hli]
|
ld a,[hli]
|
||||||
ld h,[hl]
|
ld h,[hl]
|
||||||
ld l,a
|
ld l,a
|
||||||
|
|
4
main.asm
4
main.asm
|
@ -2435,7 +2435,7 @@ GetTileTwoStepsInFrontOfPlayer:
|
||||||
|
|
||||||
CheckForCollisionWhenPushingBoulder:
|
CheckForCollisionWhenPushingBoulder:
|
||||||
call GetTileTwoStepsInFrontOfPlayer
|
call GetTileTwoStepsInFrontOfPlayer
|
||||||
ld hl, wTileSetCollisionPtr
|
ld hl, wTilesetCollisionPtr
|
||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
ld h, [hl]
|
ld h, [hl]
|
||||||
ld l, a
|
ld l, a
|
||||||
|
@ -2665,7 +2665,7 @@ LoadTilesetHeader:
|
||||||
ld e, a
|
ld e, a
|
||||||
ld hl, Tilesets
|
ld hl, Tilesets
|
||||||
add hl, de
|
add hl, de
|
||||||
ld de, wTileSetBank
|
ld de, wTilesetBank
|
||||||
ld c, $b
|
ld c, $b
|
||||||
.copyTilesetHeaderLoop
|
.copyTilesetHeaderLoop
|
||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
|
|
10
wram.asm
10
wram.asm
|
@ -2637,21 +2637,21 @@ wPlayerDirection:: ; d52a
|
||||||
; if the player is not moving, the last the direction in which the player moved
|
; if the player is not moving, the last the direction in which the player moved
|
||||||
ds 1
|
ds 1
|
||||||
|
|
||||||
wTileSetBank:: ; d52b
|
wTilesetBank:: ; d52b
|
||||||
ds 1
|
ds 1
|
||||||
|
|
||||||
wTileSetBlocksPtr:: ; d52c
|
wTilesetBlocksPtr:: ; d52c
|
||||||
; maps blocks (4x4 tiles) to tiles
|
; maps blocks (4x4 tiles) to tiles
|
||||||
ds 2
|
ds 2
|
||||||
|
|
||||||
wTileSetGFXPtr:: ; d52e
|
wTilesetGfxPtr:: ; d52e
|
||||||
ds 2
|
ds 2
|
||||||
|
|
||||||
wTileSetCollisionPtr:: ; d530
|
wTilesetCollisionPtr:: ; d530
|
||||||
; list of all walkable tiles
|
; list of all walkable tiles
|
||||||
ds 2
|
ds 2
|
||||||
|
|
||||||
wTileSetTalkingOverTiles:: ; d532
|
wTilesetTalkingOverTiles:: ; d532
|
||||||
ds 3
|
ds 3
|
||||||
|
|
||||||
wGrassTile:: ; d535
|
wGrassTile:: ; d535
|
||||||
|
|
Loading…
Reference in a new issue