diff options
author | ElectroDeoxys <ElectroDeoxys@gmail.com> | 2019-07-07 22:47:24 +0100 |
---|---|---|
committer | ElectroDeoxys <ElectroDeoxys@gmail.com> | 2019-07-07 22:48:54 +0100 |
commit | 281b96db02f69c558df57a5670b2b1dd3e609d00 (patch) | |
tree | a58c93bcaac5984ab9e34312fba743e35fa5794c /src | |
parent | c78bd6cf30cd0fa4863cc0981734b6395e99b1cd (diff) |
Label DrawInPlayArea_Icons
Diffstat (limited to 'src')
-rw-r--r-- | src/engine/bank02.asm | 35 |
1 files changed, 32 insertions, 3 deletions
diff --git a/src/engine/bank02.asm b/src/engine/bank02.asm index 30450a5..9566659 100644 --- a/src/engine/bank02.asm +++ b/src/engine/bank02.asm @@ -932,7 +932,7 @@ DrawYourOrOppPlayArea_Icons: ; 85aa (2:45aa) ld e, DUELVARS_NUMBER_OF_CARDS_IN_HAND ld a, [de] ld b, a - ld a, $d0 + ld a, $d0 ; hand icon, unused? call PrintsHandTextAndValue ; deck icon and value @@ -1045,8 +1045,37 @@ PlayAreaIconCoordinates ; 8635 (2:4635) db 0, 6 db 0, 4 -Func_864d: ; 864d (2:464d) - INCROM $864d, $8676 +; draws In Play Area icons +DrawInPlayArea_Icons: ; 864d (2:464d) + ldh a, [hWhoseTurn] + ld d, a + ld e, DUELVARS_NUMBER_OF_CARDS_IN_HAND + ld a, [de] + ld b, a + ld a, $d0 ; hand icon, unused? + call PrintsHandTextAndValue + +; deck + ldh a, [hWhoseTurn] + ld d, a + ld e, DUELVARS_NUMBER_OF_CARDS_NOT_IN_DECK + ld a, [de] + ld b, a + ld a, DECK_SIZE + sub b + ld b, a + ld a, $d4 ; deck tile + call DrawIconWithValue + +; discard pile + ldh a, [hWhoseTurn] + ld d, a + ld e, $ed + ld a, [de] + ld b, a + ld a, $d8 ; discard pile tile + call DrawIconWithValue + ret ; prints text HandText2 and a cross with ; decimal value of b |