require("config.util") local mods = {} --[[ sounds 0 = 5b 1 = 5c 2 = 6c 3 = 236b ]]-- function mods.fix_frames(pat) for idx = 8 , 10 do pat:split_frame(0,0,0,6,6) end for idx = 0 , 10 do pat:update_frame(0,0,idx,function(frame) frame.tex_index = 808 + idx if (idx > 7) then frame.tex_index = 848 + (idx - 8) end frame.tex_w = 288 frame.tex_h = 192 frame.tex_offset_x = 144*2 frame.tex_offset_y = 160*2 end) end pat:split_frame(990,2,0,1,1) pat:update_frame(990,2,0,{ tex_index = 843 , tex_w = 288 , tex_h = 192 , tex_offset_x = 144 , tex_offset_y = 100 , scale_x = 200 , scale_y = 200 , blending_mode = 0 , angle_x = 0 , angle_y = 0 , angle_z = 0 , duration = 56 , color_a = 255}) pat:update_frame(990,2,1,{ tex_index = 843 , tex_w = 288 , tex_h = 192 , tex_offset_x = 144 , tex_offset_y = 100 , scale_x = 202 , scale_y = 202 , blending_mode = 0 , angle_x = 0 , angle_y = 0 , angle_z = 0 , duration = 4 , color_a = 255}) for idx = 1 , 29 do pat:split_frame(990,5,0,1,1) end for idx = 0 , 14 do pat:update_frame(990,5,idx,{ tex_index = 842 , tex_w = 288 , tex_h = 192 , tex_offset_x = 144 , tex_offset_y = 100 , scale_x = 200 , scale_y = 200 , blending_mode = 0 , angle_z = 0 , duration = 1 , color_a = 255 -2*idx }) end for idx = 15 , 29 do pat:update_frame(990,5,idx,{ tex_index = 842 , tex_w = 288 , tex_h = 192 , tex_offset_x = 144 , tex_offset_y = 100 , scale_x = 200 , scale_y = 200 , blending_mode = 0 , angle_z = 0 , duration = 1 , color_a = 225 +2*(idx-14) }) end for idx = 0 , 29 do pat:update_frame(990,5,idx,{ tex_index = 842 , tex_w = 288 , tex_h = 192 , tex_offset_x = 144 , tex_offset_y = 100 , scale_x = 200 , scale_y = 200 , blending_mode = 0 , angle_z = 0 , duration = 1 , color_a = 255 }) end for idx = 4 , 7 do pat:remove_frame(2,0,4) end baseDur = 5 pat:update_frame(2,0,0,{ tex_index = 839 , tex_w = 288 , tex_h = 192 ,tex_offset_x = 144*2 , tex_offset_y = 160*2 , duration = baseDur }) pat:update_frame(2,0,1,{ tex_index = 840 , tex_w = 288 , tex_h = 192 ,tex_offset_x = 144*2 , tex_offset_y = 160*2 , duration = baseDur }) pat:update_frame(2,0,2,{ tex_index = 841 , tex_w = 288 , tex_h = 192 ,tex_offset_x = 144*2 , tex_offset_y = 160*2 , duration = baseDur }) pat:update_frame(2,0,3,{ tex_index = 840 , tex_w = 288 , tex_h = 192 ,tex_offset_x = 144*2 , tex_offset_y = 160*2 , duration = baseDur }) end return function(pat) mods.fix_frames(pat) end