; sets up object animation state
objanim_init:
+ ld de, st_null
+ ld hl, objanim
+ ld bc, st_size
+ call memcpy
+
+ ret
+
+ ; sets objanim to display a door
+ ; opening animation.
+ ; decides which animation to play based on the tile inex
+ ; supplied.
+ ; inputs:
+ ; a: tile flags
+ ; b: tile index
+objanim_door_open:
+ ld de, st_objanim_door_open
+ ld hl, objanim
+ ld bc, st_size
+ call memcpy
ret
+
+ ; state function for door opening animation
+ ; inputs:
+ ; de: objanim
+objanim_door_open_fn:
+ BREAK
+ ldnull bc
+ ret
+
+st_objanim_door_open:
+ st_def 0x08, objanim_door_open_fn, st_null