Prev: CE22 Up: Map Next: D026
CF06: Animations
This is a sequence of variably-sized entries (type: anim_t).
If suffixed '_tl' the character faces top left of the screen, if suffixed '_br' the character faces bottom right of the screen, etc.
Animations (type: anim_t) have the following format:
Type Bytes Name Meaning
Byte 1 nframes Number of frames in this animation
direction_t 1 from Which direction to turn to when animation starts (when reversed)
direction_t 1 to Which direction to turn to when animation starts (when not reversed)
direction_t 1 map_direction Direction to move the map, or 255 to not move it
animframe_t nframes * 4 frames Animation frames
Animation frames (type: animframe_t) have the following format:
Type Bytes Name Meaning
Byte 1 dx How much this frame moves the character by on the X axis. Signed delta
Byte 1 dy How much this frame moves the character by on the Y axis. Signed delta
Byte 1 dh How much this frame moves the character by on the height axis. Signed delta
Byte 1 spriteindex Sprite index (relative to vischar's sprite base) + flip flag in top bit
Used by the routine at animate.
anim_crawlwait_tl CF06 DEFB $01,$04,$04,$FF,$00,$00,$00,$0A
anim_crawlwait_tr CF0E DEFB $01,$05,$05,$FF,$00,$00,$00,$8A
anim_crawlwait_br CF16 DEFB $01,$06,$06,$FF,$00,$00,$00,$88
anim_crawlwait_bl CF1E DEFB $01,$07,$07,$FF,$00,$00,$00,$08
anim_walk_tl CF26 DEFB $04,$00,$00,$02,$02,$00,$00,$00,$02,$00,$00,$01,$02,$00,$00,$02,$02,$00,$00,$03
anim_walk_tr CF3A DEFB $04,$01,$01,$03,$00,$02,$00,$80,$00,$02,$00,$81,$00,$02,$00,$82,$00,$02,$00,$83
anim_walk_br CF4E DEFB $04,$02,$02,$00,$FE,$00,$00,$04,$FE,$00,$00,$05,$FE,$00,$00,$06,$FE,$00,$00,$07
anim_walk_bl CF62 DEFB $04,$03,$03,$01,$00,$FE,$00,$84,$00,$FE,$00,$85,$00,$FE,$00,$86,$00,$FE,$00,$87
anim_wait_tl CF76 DEFB $01,$00,$00,$FF,$00,$00,$00,$00
anim_wait_tr CF7E DEFB $01,$01,$01,$FF,$00,$00,$00,$80
anim_wait_br CF86 DEFB $01,$02,$02,$FF,$00,$00,$00,$04
anim_wait_bl CF8E DEFB $01,$03,$03,$FF,$00,$00,$00,$84
anim_turn_tl CF96 DEFB $02,$00,$01,$FF,$00,$00,$00,$00,$00,$00,$00,$80
anim_turn_tr CFA2 DEFB $02,$01,$02,$FF,$00,$00,$00,$80,$00,$00,$00,$04
anim_turn_br CFAE DEFB $02,$02,$03,$FF,$00,$00,$00,$04,$00,$00,$00,$84
anim_turn_bl CFBA DEFB $02,$03,$00,$FF,$00,$00,$00,$84,$00,$00,$00,$00
anim_crawl_tl CFC6 DEFB $02,$04,$04,$02,$02,$00,$00,$0A,$02,$00,$00,$0B
anim_crawl_tr CFD2 DEFB $02,$05,$05,$03,$00,$02,$00,$8A,$00,$02,$00,$8B
anim_crawl_br CFDE DEFB $02,$06,$06,$00,$FE,$00,$00,$88,$FE,$00,$00,$89
anim_crawl_bl CFEA DEFB $02,$07,$07,$01,$00,$FE,$00,$08,$00,$FE,$00,$09
anim_crawlturn_tl CFF6 DEFB $02,$04,$05,$FF,$00,$00,$00,$0A,$00,$00,$00,$8A
anim_crawlturn_tr D002 DEFB $02,$05,$06,$FF,$00,$00,$00,$8A,$00,$00,$00,$88
anim_crawlturn_br D00E DEFB $02,$06,$07,$FF,$00,$00,$00,$88,$00,$00,$00,$08
anim_crawlturn_bl D01A DEFB $02,$07,$04,$FF,$00,$00,$00,$08,$00,$00,$00,$0A
Prev: CE22 Up: Map Next: D026