animation - Pixelize

import { animation } from "pixelize-engine";

const sprite1 = animation("code1");
const sprite2 = animation(["code1", "code2"]);
const sprite3 = animation(["code1", "code2"], 4);

animation creates a new AnimationSprite. It should be run once, outside of the Game methods. The sprite code(s) can be generated at sprite editor.

Parameters: