mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-07 16:15:23 +13:00
Rename map files, labels, and constants to be consistent and work with Polished Map
This commit is contained in:
parent
90430e6dee
commit
c779602459
1398 changed files with 6631 additions and 6166 deletions
38
scripts/TradeCenter.asm
Executable file
38
scripts/TradeCenter.asm
Executable file
|
|
@ -0,0 +1,38 @@
|
|||
TradeCenter_Script:
|
||||
call EnableAutoTextBoxDrawing
|
||||
ld a, [hSerialConnectionStatus]
|
||||
cp USING_INTERNAL_CLOCK
|
||||
ld a, SPRITE_FACING_LEFT
|
||||
jr z, .next
|
||||
ld a, SPRITE_FACING_RIGHT
|
||||
.next
|
||||
ld [hSpriteFacingDirection], a
|
||||
ld a, $1
|
||||
ld [H_SPRITEINDEX], a
|
||||
call SetSpriteFacingDirection
|
||||
ld hl, wd72d
|
||||
bit 0, [hl]
|
||||
set 0, [hl]
|
||||
ret nz
|
||||
ld hl, wSpriteStateData2 + $14
|
||||
ld a, $8
|
||||
ld [hli], a
|
||||
ld a, $a
|
||||
ld [hl], a
|
||||
ld a, SPRITE_FACING_LEFT
|
||||
ld [wSpriteStateData1 + $19], a
|
||||
ld a, [hSerialConnectionStatus]
|
||||
cp USING_INTERNAL_CLOCK
|
||||
ret z
|
||||
ld a, $7
|
||||
ld [wSpriteStateData2 + $15], a
|
||||
ld a, SPRITE_FACING_RIGHT
|
||||
ld [wSpriteStateData1 + $19], a
|
||||
ret
|
||||
|
||||
TradeCenter_TextPointers:
|
||||
dw TradeCenterText1
|
||||
|
||||
TradeCenterText1:
|
||||
TX_FAR _TradeCenterText1
|
||||
db "@"
|
||||
Loading…
Add table
Add a link
Reference in a new issue