2014-06-16 20:03:05 +00:00
|
|
|
EmotionBubble: ; 17c47 (5:7c47)
|
2014-05-26 21:04:56 +00:00
|
|
|
ld a, [wcd50]
|
2014-05-22 22:13:20 +00:00
|
|
|
ld c, a
|
|
|
|
ld b, $0
|
|
|
|
ld hl, EmotionBubblesPointerTable ; $7caf
|
|
|
|
add hl, bc
|
|
|
|
add hl, bc
|
|
|
|
ld e, [hl]
|
|
|
|
inc hl
|
|
|
|
ld d, [hl]
|
2014-05-29 08:31:46 +00:00
|
|
|
ld hl, vChars1 + $780
|
2014-05-22 22:13:20 +00:00
|
|
|
ld bc, (BANK(EmotionBubblesPointerTable) << 8) + $04
|
|
|
|
call CopyVideoData
|
2014-09-13 07:50:56 +00:00
|
|
|
ld a, [wUpdateSpritesEnabled]
|
2014-05-22 22:13:20 +00:00
|
|
|
push af
|
|
|
|
ld a, $ff
|
2014-09-13 07:50:56 +00:00
|
|
|
ld [wUpdateSpritesEnabled], a
|
2014-05-26 21:04:56 +00:00
|
|
|
ld a, [wd736]
|
2014-05-22 22:13:20 +00:00
|
|
|
bit 6, a
|
2014-05-26 21:04:56 +00:00
|
|
|
ld hl, wOAMBuffer + $8f
|
|
|
|
ld de, wOAMBuffer + $9f
|
2014-05-22 22:13:20 +00:00
|
|
|
jr z, .asm_17c7a
|
2014-05-26 21:04:56 +00:00
|
|
|
ld hl, wOAMBuffer + $7f
|
|
|
|
ld de, wOAMBuffer + $8f
|
2014-05-22 22:13:20 +00:00
|
|
|
.asm_17c7a
|
|
|
|
ld bc, $90
|
|
|
|
.asm_17c7d
|
|
|
|
ld a, [hl]
|
|
|
|
ld [de], a
|
|
|
|
dec hl
|
|
|
|
dec de
|
|
|
|
dec bc
|
|
|
|
ld a, c
|
|
|
|
or b
|
|
|
|
jr nz, .asm_17c7d
|
2014-05-26 21:04:56 +00:00
|
|
|
ld hl, wSpriteStateData1 + 4
|
|
|
|
ld a, [wcd4f]
|
2014-05-22 22:13:20 +00:00
|
|
|
swap a
|
|
|
|
ld c, a
|
|
|
|
ld b, $0
|
|
|
|
add hl, bc
|
|
|
|
ld a, [hli]
|
|
|
|
ld b, a
|
|
|
|
inc hl
|
|
|
|
ld a, [hl]
|
|
|
|
add $8
|
|
|
|
ld c, a
|
|
|
|
ld de, EmotionBubblesOAM ; $7cb5
|
|
|
|
xor a
|
|
|
|
call WriteOAMBlock
|
|
|
|
ld c, $3c
|
|
|
|
call DelayFrames
|
|
|
|
pop af
|
2014-09-13 07:50:56 +00:00
|
|
|
ld [wUpdateSpritesEnabled], a
|
2014-05-22 22:13:20 +00:00
|
|
|
call DelayFrame
|
|
|
|
jp UpdateSprites
|
|
|
|
|
|
|
|
EmotionBubblesPointerTable: ; 17caf (5:7caf)
|
|
|
|
dw EmotionBubbles
|
|
|
|
dw EmotionBubbles + $40
|
|
|
|
dw EmotionBubbles + $80
|
|
|
|
|
|
|
|
EmotionBubblesOAM: ; 17cb5 (5:7cb5)
|
|
|
|
db $F8,$00,$F9,$00
|
|
|
|
db $FA,$00,$FB,$00
|
|
|
|
|
|
|
|
EmotionBubbles: ; 17cbd (5:7cbd)
|
2014-05-30 08:30:10 +00:00
|
|
|
INCBIN "gfx/emotion_bubbles.2bpp"
|