Make a base class first, a firecracker
Make a firecracker class, save multiple firecrackers
Generate the corresponding number of firecrackers at the position of the constructor
Tie the firecrackers to the rope and swing with the rope
Write the explosion event in the base class
Finally use Timer to call