static int setup() { assert(anim = animation_load(path_to_data("mark.png"), 1,16,40)); animation_last_frame(anim)->trigger = frame_trigger; return 0; }
static int setup() { CRITICAL(grow = animation_load(path_to_data("whitesmoke.png"), 1,32,100)); animation_set_alpha(grow,128); //animation_set_alpha(dissolve,128); // animation_last_frame(grow)->next_frame = dissolve; animation_last_frame(grow)->trigger = frame_trigger; return 0; }
void animation_make_loop(animation_t *anim) { animation_last_frame(anim)->next_frame = anim; }