Skip to content

Commit a99aa8f

Browse files
committed
Document TossCoin, other documentation improvements
1 parent 5356252 commit a99aa8f

File tree

5 files changed

+180
-147
lines changed

5 files changed

+180
-147
lines changed

src/constants/animation_constants.asm

Lines changed: 97 additions & 97 deletions
Original file line numberDiff line numberDiff line change
@@ -237,103 +237,103 @@ DEF NUM_SPRITE_ANIMS EQU const_value
237237

238238
const_def
239239
; Normal animations
240-
const DUEL_ANIM_NONE ; $00
241-
const DUEL_ANIM_GLOW ; $01
242-
const DUEL_ANIM_PARALYSIS ; $02
243-
const DUEL_ANIM_SLEEP ; $03
244-
const DUEL_ANIM_CONFUSION ; $04
245-
const DUEL_ANIM_POISON ; $05
246-
const DUEL_ANIM_SINGLE_HIT ; $06
247-
const DUEL_ANIM_HIT ; $07
248-
const DUEL_ANIM_BIG_HIT ; $08
249-
const DUEL_ANIM_SHOW_DAMAGE ; $09
250-
const DUEL_ANIM_THUNDER_SHOCK ; $0a
251-
const DUEL_ANIM_LIGHTNING ; $0b
252-
const DUEL_ANIM_BORDER_SPARK ; $0c
253-
const DUEL_ANIM_BIG_LIGHTNING ; $0d
254-
const DUEL_ANIM_SMALL_FLAME ; $0e
255-
const DUEL_ANIM_BIG_FLAME ; $0f
256-
const DUEL_ANIM_FIRE_SPIN ; $10
257-
const DUEL_ANIM_DIVE_BOMB ; $11
258-
const DUEL_ANIM_WATER_JETS ; $12
259-
const DUEL_ANIM_WATER_GUN ; $13
260-
const DUEL_ANIM_WHIRLPOOL ; $14
261-
const DUEL_ANIM_HYDRO_PUMP ; $15
262-
const DUEL_ANIM_BLIZZARD ; $16
263-
const DUEL_ANIM_PSYCHIC ; $17
264-
const DUEL_ANIM_LEER ; $18
265-
const DUEL_ANIM_BEAM ; $19
266-
const DUEL_ANIM_HYPER_BEAM ; $1a
267-
const DUEL_ANIM_ROCK_THROW ; $1b
268-
const DUEL_ANIM_STONE_BARRAGE ; $1c
269-
const DUEL_ANIM_PUNCH ; $1d
270-
const DUEL_ANIM_THUNDERPUNCH ; $1e
271-
const DUEL_ANIM_FIRE_PUNCH ; $1f
272-
const DUEL_ANIM_STRETCH_KICK ; $20
273-
const DUEL_ANIM_SLASH ; $21
274-
const DUEL_ANIM_WHIP ; $22
275-
const DUEL_ANIM_SONICBOOM ; $23
276-
const DUEL_ANIM_FURY_SWIPES ; $24
277-
const DUEL_ANIM_DRILL ; $25
278-
const DUEL_ANIM_POT_SMASH ; $26
279-
const DUEL_ANIM_BONEMERANG ; $27
280-
const DUEL_ANIM_SEISMIC_TOSS ; $28
281-
const DUEL_ANIM_NEEDLES ; $29
282-
const DUEL_ANIM_WHITE_GAS ; $2a
283-
const DUEL_ANIM_POWDER ; $2b
284-
const DUEL_ANIM_GOO ; $2c
285-
const DUEL_ANIM_BUBBLES ; $2d
286-
const DUEL_ANIM_STRING_SHOT ; $2e
287-
const DUEL_ANIM_BOYFRIENDS ; $2f
288-
const DUEL_ANIM_LURE ; $30
289-
const DUEL_ANIM_TOXIC ; $31
290-
const DUEL_ANIM_CONFUSE_RAY ; $32
291-
const DUEL_ANIM_SING ; $33
292-
const DUEL_ANIM_SUPERSONIC ; $34
293-
const DUEL_ANIM_PETAL_DANCE ; $35
294-
const DUEL_ANIM_PROTECT ; $36
295-
const DUEL_ANIM_BARRIER ; $37
296-
const DUEL_ANIM_SPEED ; $38
297-
const DUEL_ANIM_WHIRLWIND ; $39
298-
const DUEL_ANIM_CRY ; $3a
299-
const DUEL_ANIM_QUESTION_MARK ; $3b
300-
const DUEL_ANIM_SELFDESTRUCT ; $3c
301-
const DUEL_ANIM_BIG_SELFDESTRUCT_1 ; $3d
302-
const DUEL_ANIM_HEAL ; $3e
303-
const DUEL_ANIM_DRAIN ; $3f
304-
const DUEL_ANIM_DARK_GAS ; $40
305-
const DUEL_ANIM_BIG_SELFDESTRUCT_2 ; $41
306-
const DUEL_ANIM_UNUSED_42 ; $42
307-
const DUEL_ANIM_UNUSED_43 ; $43
308-
const DUEL_ANIM_BENCH_THUNDER ; $44
309-
const DUEL_ANIM_QUICKFREEZE ; $45
310-
const DUEL_ANIM_BENCH_GLOW ; $46
311-
const DUEL_ANIM_FIREGIVER_START ; $47
312-
const DUEL_ANIM_UNUSED_48 ; $48
313-
const DUEL_ANIM_HEALING_WIND ; $49
314-
const DUEL_ANIM_BENCH_WHIRLWIND ; $4a
315-
const DUEL_ANIM_EXPAND ; $4b
316-
const DUEL_ANIM_CAT_PUNCH ; $4c
317-
const DUEL_ANIM_THUNDER_WAVE ; $4d
318-
const DUEL_ANIM_FIREGIVER_PLAYER ; $4e
319-
const DUEL_ANIM_FIREGIVER_OPP ; $4f
320-
const DUEL_ANIM_UNUSED_50 ; $50
321-
const DUEL_ANIM_PLAYER_SHUFFLE ; $51
322-
const DUEL_ANIM_OPP_SHUFFLE ; $52
323-
const DUEL_ANIM_BOTH_SHUFFLE ; $53
324-
const DUEL_ANIM_UNUSED_54 ; $54
325-
const DUEL_ANIM_BOTH_DRAW ; $55
326-
const DUEL_ANIM_PLAYER_DRAW ; $56
327-
const DUEL_ANIM_OPP_DRAW ; $57
328-
const DUEL_ANIM_COIN_SPIN ; $58
329-
const DUEL_ANIM_COIN_TOSS1 ; $59
330-
const DUEL_ANIM_COIN_TOSS2 ; $5a
331-
const DUEL_ANIM_COIN_TAILS ; $5b
332-
const DUEL_ANIM_COIN_HEADS ; $5c
333-
const DUEL_ANIM_DUEL_WIN ; $5d
334-
const DUEL_ANIM_DUEL_LOSS ; $5e
335-
const DUEL_ANIM_DUEL_DRAW ; $5f
336-
const DUEL_ANIM_UNUSED_60 ; $60
240+
const DUEL_ANIM_NONE ; $00
241+
const DUEL_ANIM_GLOW ; $01
242+
const DUEL_ANIM_PARALYSIS ; $02
243+
const DUEL_ANIM_SLEEP ; $03
244+
const DUEL_ANIM_CONFUSION ; $04
245+
const DUEL_ANIM_POISON ; $05
246+
const DUEL_ANIM_SINGLE_HIT ; $06
247+
const DUEL_ANIM_HIT ; $07
248+
const DUEL_ANIM_BIG_HIT ; $08
249+
const DUEL_ANIM_SHOW_DAMAGE ; $09
250+
const DUEL_ANIM_THUNDER_SHOCK ; $0a
251+
const DUEL_ANIM_LIGHTNING ; $0b
252+
const DUEL_ANIM_BORDER_SPARK ; $0c
253+
const DUEL_ANIM_BIG_LIGHTNING ; $0d
254+
const DUEL_ANIM_SMALL_FLAME ; $0e
255+
const DUEL_ANIM_BIG_FLAME ; $0f
256+
const DUEL_ANIM_FIRE_SPIN ; $10
257+
const DUEL_ANIM_DIVE_BOMB ; $11
258+
const DUEL_ANIM_WATER_JETS ; $12
259+
const DUEL_ANIM_WATER_GUN ; $13
260+
const DUEL_ANIM_WHIRLPOOL ; $14
261+
const DUEL_ANIM_HYDRO_PUMP ; $15
262+
const DUEL_ANIM_BLIZZARD ; $16
263+
const DUEL_ANIM_PSYCHIC ; $17
264+
const DUEL_ANIM_LEER ; $18
265+
const DUEL_ANIM_BEAM ; $19
266+
const DUEL_ANIM_HYPER_BEAM ; $1a
267+
const DUEL_ANIM_ROCK_THROW ; $1b
268+
const DUEL_ANIM_STONE_BARRAGE ; $1c
269+
const DUEL_ANIM_PUNCH ; $1d
270+
const DUEL_ANIM_THUNDERPUNCH ; $1e
271+
const DUEL_ANIM_FIRE_PUNCH ; $1f
272+
const DUEL_ANIM_STRETCH_KICK ; $20
273+
const DUEL_ANIM_SLASH ; $21
274+
const DUEL_ANIM_WHIP ; $22
275+
const DUEL_ANIM_SONICBOOM ; $23
276+
const DUEL_ANIM_FURY_SWIPES ; $24
277+
const DUEL_ANIM_DRILL ; $25
278+
const DUEL_ANIM_POT_SMASH ; $26
279+
const DUEL_ANIM_BONEMERANG ; $27
280+
const DUEL_ANIM_SEISMIC_TOSS ; $28
281+
const DUEL_ANIM_NEEDLES ; $29
282+
const DUEL_ANIM_WHITE_GAS ; $2a
283+
const DUEL_ANIM_POWDER ; $2b
284+
const DUEL_ANIM_GOO ; $2c
285+
const DUEL_ANIM_BUBBLES ; $2d
286+
const DUEL_ANIM_STRING_SHOT ; $2e
287+
const DUEL_ANIM_BOYFRIENDS ; $2f
288+
const DUEL_ANIM_LURE ; $30
289+
const DUEL_ANIM_TOXIC ; $31
290+
const DUEL_ANIM_CONFUSE_RAY ; $32
291+
const DUEL_ANIM_SING ; $33
292+
const DUEL_ANIM_SUPERSONIC ; $34
293+
const DUEL_ANIM_PETAL_DANCE ; $35
294+
const DUEL_ANIM_PROTECT ; $36
295+
const DUEL_ANIM_BARRIER ; $37
296+
const DUEL_ANIM_SPEED ; $38
297+
const DUEL_ANIM_WHIRLWIND ; $39
298+
const DUEL_ANIM_CRY ; $3a
299+
const DUEL_ANIM_QUESTION_MARK ; $3b
300+
const DUEL_ANIM_SELFDESTRUCT ; $3c
301+
const DUEL_ANIM_BIG_SELFDESTRUCT_1 ; $3d
302+
const DUEL_ANIM_HEAL ; $3e
303+
const DUEL_ANIM_DRAIN ; $3f
304+
const DUEL_ANIM_DARK_GAS ; $40
305+
const DUEL_ANIM_BIG_SELFDESTRUCT_2 ; $41
306+
const DUEL_ANIM_UNUSED_42 ; $42
307+
const DUEL_ANIM_UNUSED_43 ; $43
308+
const DUEL_ANIM_BENCH_THUNDER ; $44
309+
const DUEL_ANIM_QUICKFREEZE ; $45
310+
const DUEL_ANIM_BENCH_GLOW ; $46
311+
const DUEL_ANIM_FIREGIVER_START ; $47
312+
const DUEL_ANIM_UNUSED_48 ; $48
313+
const DUEL_ANIM_HEALING_WIND ; $49
314+
const DUEL_ANIM_BENCH_WHIRLWIND ; $4a
315+
const DUEL_ANIM_EXPAND ; $4b
316+
const DUEL_ANIM_CAT_PUNCH ; $4c
317+
const DUEL_ANIM_THUNDER_WAVE ; $4d
318+
const DUEL_ANIM_FIREGIVER_PLAYER ; $4e
319+
const DUEL_ANIM_FIREGIVER_OPP ; $4f
320+
const DUEL_ANIM_UNUSED_50 ; $50
321+
const DUEL_ANIM_PLAYER_SHUFFLE ; $51
322+
const DUEL_ANIM_OPP_SHUFFLE ; $52
323+
const DUEL_ANIM_BOTH_SHUFFLE ; $53
324+
const DUEL_ANIM_UNUSED_54 ; $54
325+
const DUEL_ANIM_BOTH_DRAW ; $55
326+
const DUEL_ANIM_PLAYER_DRAW ; $56
327+
const DUEL_ANIM_OPP_DRAW ; $57
328+
const DUEL_ANIM_COIN_SPIN ; $58
329+
const DUEL_ANIM_COIN_TOSS_GOING_HEADS ; $59
330+
const DUEL_ANIM_COIN_TOSS_GOING_TAILS ; $5a
331+
const DUEL_ANIM_COIN_TAILS ; $5b
332+
const DUEL_ANIM_COIN_HEADS ; $5c
333+
const DUEL_ANIM_DUEL_WIN ; $5d
334+
const DUEL_ANIM_DUEL_LOSS ; $5e
335+
const DUEL_ANIM_DUEL_DRAW ; $5f
336+
const DUEL_ANIM_UNUSED_60 ; $60
337337

338338
DEF NUM_REGULAR_DUEL_ANIMS EQU const_value
339339

src/constants/duel_constants.asm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ DEF HP_BAR_LENGTH EQU MAX_HP / 10
55

66
DEF STARTING_HAND_SIZE EQU 7
77

8+
; coin result constants
9+
DEF TAILS EQU 0
10+
DEF HEADS EQU 1
11+
812
; hWhoseTurn constants
913
DEF PLAYER_TURN EQUS "HIGH(wPlayerDuelVariables)"
1014
DEF OPPONENT_TURN EQUS "HIGH(wOpponentDuelVariables)"

src/data/duel/animations/duel_animations.asm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -713,15 +713,15 @@ Animations:
713713
db SFX_STOP ; sfx id
714714
db NONE ; handler function
715715

716-
; DUEL_ANIM_COIN_TOSS1
716+
; DUEL_ANIM_COIN_TOSS_GOING_HEADS
717717
db SPRITE_DUEL_COIN ; sprite ID
718718
db PALETTE_92 ; palette ID
719719
db SPRITE_ANIM_168 ; anim ID
720720
db SPRITE_ANIM_FLAG_UNSKIPPABLE | SPRITE_ANIM_FLAG_3 | SPRITE_ANIM_FLAG_CENTERED ; anim flags
721721
db SFX_COIN_TOSS ; sfx id
722722
db NONE ; handler function
723723

724-
; DUEL_ANIM_COIN_TOSS2
724+
; DUEL_ANIM_COIN_TOSS_GOING_TAILS
725725
db SPRITE_DUEL_COIN ; sprite ID
726726
db PALETTE_92 ; palette ID
727727
db SPRITE_ANIM_169 ; anim ID

0 commit comments

Comments
 (0)