Optimize explosion animation with loop