+player_anim_header:
+ anim_header 2, ANIM_HEAD_F_LOOP, 1, player_anim_table, NULL
+
+player_anim_table:
+ anim_ent 0x8C, 0x00, 0, 0
+ anim_ent 0x8C, 0x00, 0, 0
; calls unit's draw function
.se 0
.de action_st_action_ptr, 2
.de action_size, 0
+
+; animation header struct
+.se 0
+ ; how many objects can an animation draw
+ ; valid values are 1, 2, 3, 4
+.de anim_header_objs, 1
+.de anim_header_flags, 1
+.de anim_header_frames, 1
+.de anim_header_table, 1
+.de anim_header_next, 2 ; next animation if not looping
+
+; animation header flags
+.se 1
+ ; loop the animation
+ ; if set to 0 return to next animation
+.de ANIM_HEAD_F_LOOP, 1
+
+
+; animation entry struct
+.se 0
+.de anim_ent_oam_tile, 1
+.de anim_ent_oam_flags, 1
+.de anim_ent_x_offset, 1
+.de anim_ent_y_offset, 1
; special text commands
.def int DIRDOWN = BTNDOWN
.def int DIRLEFT = BTNLEFT
.def int DIRRIGHT = BTNRIGHT
+