2019-01-01 20:06:23 +00:00
|
|
|
TradeCenter_Script:
|
2014-05-18 18:19:10 +00:00
|
|
|
call EnableAutoTextBoxDrawing
|
2020-07-06 23:03:05 +00:00
|
|
|
ldh a, [hSerialConnectionStatus]
|
2016-10-29 17:32:03 +00:00
|
|
|
cp USING_INTERNAL_CLOCK
|
2015-07-18 15:17:29 +00:00
|
|
|
ld a, SPRITE_FACING_LEFT
|
|
|
|
jr z, .next
|
|
|
|
ld a, SPRITE_FACING_RIGHT
|
|
|
|
.next
|
2020-07-06 23:03:05 +00:00
|
|
|
ldh [hSpriteFacingDirection], a
|
2014-05-18 18:19:10 +00:00
|
|
|
ld a, $1
|
2020-07-06 23:03:05 +00:00
|
|
|
ldh [hSpriteIndex], a
|
2014-09-10 03:55:19 +00:00
|
|
|
call SetSpriteFacingDirection
|
2014-05-26 21:04:56 +00:00
|
|
|
ld hl, wd72d
|
2014-05-18 18:19:10 +00:00
|
|
|
bit 0, [hl]
|
|
|
|
set 0, [hl]
|
|
|
|
ret nz
|
2020-07-05 21:29:11 +00:00
|
|
|
ld hl, wSprite01StateData2MapY
|
2020-07-16 15:19:05 +00:00
|
|
|
ld a, 8 ; y
|
2014-05-18 18:19:10 +00:00
|
|
|
ld [hli], a
|
2020-07-16 15:19:05 +00:00
|
|
|
ld a, 10 ; x
|
2014-05-18 18:19:10 +00:00
|
|
|
ld [hl], a
|
2015-07-04 05:44:12 +00:00
|
|
|
ld a, SPRITE_FACING_LEFT
|
2020-07-05 21:29:11 +00:00
|
|
|
ld [wSprite01StateData1FacingDirection], a
|
2020-07-06 23:03:05 +00:00
|
|
|
ldh a, [hSerialConnectionStatus]
|
2016-10-29 17:32:03 +00:00
|
|
|
cp USING_INTERNAL_CLOCK
|
2014-05-18 18:19:10 +00:00
|
|
|
ret z
|
2020-07-16 15:19:05 +00:00
|
|
|
ld a, 7 ; x
|
2020-07-05 21:29:11 +00:00
|
|
|
ld [wSprite01StateData2MapX], a
|
2015-07-04 05:44:12 +00:00
|
|
|
ld a, SPRITE_FACING_RIGHT
|
2020-07-05 21:29:11 +00:00
|
|
|
ld [wSprite01StateData1FacingDirection], a
|
2014-05-18 18:19:10 +00:00
|
|
|
ret
|
|
|
|
|
2019-01-01 20:06:23 +00:00
|
|
|
TradeCenter_TextPointers:
|
2015-07-17 04:21:57 +00:00
|
|
|
dw TradeCenterText1
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
TradeCenterText1:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_far _TradeCenterText1
|
|
|
|
text_end
|