xxxxxxxxxx
17
let thing;
function setup() {
createCanvas(windowWidth, windowHeight);
thing = loadAni('assets/test0001.png', 'assets/test0002.png', 'assets/test0003.png', 'assets/test0004.png');
//thing.addAni('move', 'assets/test0001.png', 4); <- doesn't work :/
}
function draw() {
clear();
animation(thing, width/2, height/2);
//thing.vel.x = cos(frame); <- doesn't work :/
}