xxxxxxxxxx
16
let guy;
let spr;
function preload(){
guy = loadAnimation("idle.jpeg", {width:80, height:74, frames: 4});
}
function setup() {
createCanvas(400, 400);
spr = new Sprite(200, 200);
spr.addAni("idle", guy);
}
function draw() {
}