{"size": 315, "ext": "js", "max_stars_repo_path": "src/animationHelpers.js", "max_stars_repo_name": "chris-bingham/phaser3-project-template", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/animationHelpers.js", "max_issues_repo_name": "chris-bingham/phaser3-project-template", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/animationHelpers.js", "max_forks_repo_name": "chris-bingham/phaser3-project-template", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 14.3181818182, "max_line_length": 51, "alphanum_fraction": 0.546031746}
export const createAnim = (
  anims,
  key,
  prefix,
  suffix,
  frameCount,
  repeat = -1
) => {
  return anims.create({
    key,
    frames: anims.generateFrameNames("allImages", {
      start: 1,
      end: frameCount,
      zeroPad: 1,
      prefix,
      suffix
    }),
    frameRate: 20,
    repeat
  });
};
